Fully remote. Building everywhere.

Back to the journal
Release notes ·

exit-intent 1.0.2.Safer links, steadier modal.

A security and reliability update for our exit-intent package: unsafe button links are blocked, new-tab links are protected, and the modal copes with fast open and close. A drop-in update.

npm packageSecurityBug fixes
THE VERSION1.0.2 · patch
THE UPGRADEDrop-in · no API changes
01 · WHY UPGRADE

On an earlier version?
Update today.

@oblique-code/exit-intent notices when a visitor is about to leave and shows a friendly, accessible modal at the right moment. It is framework-agnostic and has zero runtime dependencies.

Version 1.0.2 closes two security gaps in the modal’s call-to-action button, so every site using it should update. It is a drop-in replacement.

npm i @oblique-code/exit-intent@1.0.2
02 · SECURITY

Two gaps
now closed.

  • Button links using javascript:, data: or vbscript: are now blocked. The button renders as a plain button and a console warning explains why.
  • Button links that open in a new tab now get rel="noopener noreferrer", which prevents reverse tabnabbing.
03 · THE FIXES

A steadier modal,
however it’s used.

  • Re-opening the modal within 220 ms of closing it no longer removes it while it’s open.
  • ExitModal#destroy() now removes the overlay immediately, as documented.
  • Closing or destroying the modal before its first animation frame no longer throws an error or moves focus into the closed dialog.
  • With mobile.backButton, repeated stop() and start() cycles no longer add extra history entries.
04 · FOR CONTRIBUTORS

Fresh tooling,
clean audit.

The development tools are upgraded and every npm audit advisory is resolved. These were development-only; the package itself has no runtime dependencies. Working on the package now needs Node.js 22.18 or later, and nothing changes for sites that use it. npm now links straight to the GitHub repository.

Read the full changelog (opens in a new tab)
Questions, ideas or a bug to report?

Join the conversation on GitHub. We read every reply, and it shapes what goes into the next version.

Join the discussion (opens in a new tab)
KEEP READING

More from the journal

All posts
GOOD THINGS START WITH A CONVERSATION

Have a little idea?
Let’s make it big.

Tell us what you’re thinking. We’ll help with what comes next.

A real builder replies within one working day.