focus-trap breaking changes
focus-trap 8.0.0 (January 28, 2026) is its newest release with breaking changes. The first: Behavior changed onPostActivate. Every breaking API change we have recorded in focus-trap on npm: 8 breaking changes in 3 versions. Below, its 3 versions with breaking changes, newest first, removals and renames first, each with its source.
Updated December 4, 2026
On this page
Latest version 8.2.6, released November 22, 2026. Source repository
Packages on npm run on Node.js. Node.js end of life dates.
- From 7.0.0 to 8.0.0: 1 breaking change in 1 version.
- From 6.0.0 to 8.0.0: 3 breaking changes in 2 versions.
focus-trap 8.0.0 breaking changes
- Behavior changed
onPostActivate
onPostActivate() is now called only after the initial focus node has been focused and the trap fully activated. Code that assumed the initial focus node was not yet focused inside onPostActivate() must be updated, and tests may need delays... github.com
focus-trap 7.0.0 breaking changes
- Removed
Internet Explorer support has been removed entirely. Code that must run in IE will no longer be supported. github.com - Behavior changed
The tabbable dependency moved to v6.0.0, which changes behavior for detached nodes under its default displayCheck setting. Check code that relies on focus trapping with detached nodes. github.com
focus-trap 6.0.0 breaking changes
- Removed
"focus-trap"
"focus-trap" was removed in focus-trap 6.0.0 npmjs.com - Renamed
"focus-trap".FocusTarget
Use 'focus-trap'.FocusTarget instead. npmjs.com - Renamed
"focus-trap".FocusTrap
Use 'focus-trap'.FocusTrap instead. npmjs.com - Renamed
"focus-trap".Options
Use 'focus-trap'.Options instead. npmjs.com - Signature changed
"focus-trap".Options.allowOutsideClick
Was allowOutsideClick?: (event: MouseEvent) => boolean; now allowOutsideClick?: boolean | MouseEventToBoolean. npmjs.com
Check your code
These are the changes. To see which of them reach your code, scan a public repository, or have your coding agent call check_code with your manifest or lockfile over MCP. The API reads every change in every version. A fix pull request opens for the changes that reach a connected repository. Nothing merges or deploys.

Put your code on continuous maintenance.
Scan a public repository now, or give your agent one line.
See how out of date your code is.
Tell your agent what changed since it was trained.
claude mcp add --transport http since https://api.since.dev/mcpCodex, Cursor and any MCP client use https://api.since.dev/mcp.