npm · npm:focus-trap
focus-trap active
Trap focus within a DOM node.
The latest stable version of focus-trap is 8.2.4, published on 2026-10-26. Verified by Vigia on 2026-11-12.
| Latest stable version | 8.2.4 |
|---|---|
| Published | 2026-10-26 23:25:38 UTC |
| Install | npm install focus-trap@latest |
| Requires (engines) | none declared |
| Peer dependencies | — |
| Dist-tags | beta: 6.8.0-beta.2 latest: 8.2.4 tabbable-i905: 7.2.1-tabbable-i905.2 |
| License | MIT |
| Advisories on latest version | none known |
| Last verified | 2026-11-12 23:53:02 UTC |
| Sources | api.deps.dev, registry.npmjs.org, registry.npmjs.org |
Maintenance
| Activity | active |
|---|---|
| Last stable release | 2026-10-26 23:25:38 UTC · 17 days ago |
| Stable releases in the last 12 months | 11 |
| Published versions | 98 |
Heuristic based only on release dates; it does not measure issue or security response times.
Version history
| Version | Published |
|---|---|
8.2.4 | 2026-10-26 23:25:38 UTC |
8.2.3 | 2026-10-04 22:26:18 UTC |
8.2.2 | 2026-06-22 00:15:10 UTC |
8.2.1 | 2026-05-16 18:24:23 UTC |
8.2.0 | 2026-05-04 00:25:17 UTC |
8.1.0 | 2026-04-24 14:34:37 UTC |
8.0.1 | 2026-03-21 19:10:57 UTC |
8.0.0 | 2026-01-28 17:24:50 UTC |
7.8.0 | 2026-01-10 22:24:14 UTC |
7.7.1 | 2025-12-31 17:54:48 UTC |
7.7.0 | 2025-12-20 20:17:21 UTC |
7.6.6 | 2025-10-26 23:51:08 UTC |
7.6.5 | 2025-05-27 20:55:22 UTC |
7.6.4 | 2025-01-10 20:00:24 UTC |
7.6.3 | 2025-01-10 18:32:23 UTC |
7.6.2 | 2024-11-16 18:50:33 UTC |
7.6.1 | 2024-11-10 16:46:39 UTC |
7.6.0 | 2024-09-11 22:52:40 UTC |
7.5.4 | 2023-10-12 16:26:50 UTC |
7.5.3 | 2023-09-25 14:37:42 UTC |
Showing the 20 most recent of 92 versions. JSON
Version compatibility
Newest stable version that declares support for each runtime version (from the requirements published with each version).
| Runtime | Newest compatible version |
|---|---|
node 16 | 8.2.4 |
node 18 | 8.2.4 |
node 20 | 8.2.4 |
node 22 | 8.2.4 |
node 24 | 8.2.4 |
Give your AI agent these facts
Vigia is a free MCP server: your coding agent checks versions, breaking changes and vulnerabilities before it writes code. No signup, no API key.
claude mcp add --transport http vigia https://vigia.coredls.cloud/mcp
Add to CursorAdd to VS Code★ Star on GitHub
Any other MCP client
{ "mcpServers": { "vigia": { "url": "https://vigia.coredls.cloud/mcp" } } }Agent skill (SKILL.md): tells the agent when to use Vigia · GitHub Action for pull requests
Frequently asked questions
What is the latest version of focus-trap?
The latest stable version of focus-trap is 8.2.4, published on 2026-10-26. Verified by Vigia on 2026-11-12.
How do I install the latest version of focus-trap?
Run npm install focus-trap@latest. The latest stable version is 8.2.4 (verified 2026-11-12).
Is focus-trap deprecated?
No. focus-trap is not marked as deprecated in the registry.
Which Node.js version does focus-trap require?
focus-trap 8.2.4 does not declare a Node.js version requirement.
Does focus-trap 8.2.4 have known vulnerabilities?
No known advisories affect focus-trap 8.2.4 according to the data Vigia checks.
Is focus-trap still maintained?
focus-trap published 11 stable releases in the last 12 months; the most recent was 17 days ago. Activity: active.
Observed changes
- Mon Oct 26 2026 23:43:51 GM +0000 (Coordinated Universal Time) — released 8.2.3 → 8.2.4
- Sun Oct 04 2026 23:36:33 GM +0000 (Coordinated Universal Time) — released 8.2.2 → 8.2.3
Related packages
- @keyv/bigmap
- @expo/fingerprint
- precinct
- @react-navigation/native-stack
- @graphql-tools/documents
- react-intersection-observer
- @storybook/csf-plugin
- detective-es6
- @nestjs/axios
- remove-trailing-spaces
- dockerode
- screenfull
Badges for your README
Show the latest version, maintenance status and deprecation status of this package. Copy the Markdown:
[](https://vigia.coredls.cloud/npm/focus-trap) [](https://vigia.coredls.cloud/npm/focus-trap) [](https://vigia.coredls.cloud/npm/focus-trap)
For agents
GET https://vigia.coredls.cloud/v1/packages/npm/focus-trap
GET https://vigia.coredls.cloud/v1/packages/npm/focus-trap/versions/{version}