npm · npm:invariant
invariant active
invariant
The latest stable version of invariant is 2.2.4, published on 2018-03-13. Verified by Vigia on 2026-11-12.
| Latest stable version | 2.2.4 |
|---|---|
| Published | 2018-03-13 18:36:10 UTC |
| Install | npm install invariant@latest |
| Requires (engines) | none declared |
| Peer dependencies | — |
| Dist-tags | latest: 2.2.4 |
| License | MIT |
| Advisories on latest version | none known |
| Last verified | 2026-11-12 13:19:08 UTC |
| Sources | api.deps.dev, registry.npmjs.org, registry.npmjs.org |
Maintenance
| Activity | dormant |
|---|---|
| Last stable release | 2018-03-13 18:36:10 UTC · 3166 days ago |
| Stable releases in the last 12 months | 0 |
| Published versions | 13 |
Heuristic based only on release dates; it does not measure issue or security response times.
Version history
| Version | Published |
|---|---|
2.2.4 | 2018-03-13 18:36:10 UTC |
2.2.3 | 2018-02-19 21:14:18 UTC |
2.2.2 | 2016-11-15 12:02:03 UTC |
2.2.1 | 2016-03-09 06:18:41 UTC |
2.2.0 | 2015-11-17 16:45:40 UTC |
2.1.3 | 2015-11-17 16:41:12 UTC |
2.1.2 | 2015-10-27 23:34:30 UTC |
2.1.1 | 2015-09-21 05:44:39 UTC |
2.1.0 | 2015-06-03 20:04:01 UTC |
2.0.0 | 2015-02-21 21:00:56 UTC |
1.0.2 | 2014-09-24 15:11:55 UTC |
1.0.1 | 2014-09-24 04:52:41 UTC |
1.0.0 | 2014-09-24 04:46:06 UTC |
Showing the 13 most recent of 13 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 | 2.2.4 |
node 18 | 2.2.4 |
node 20 | 2.2.4 |
node 22 | 2.2.4 |
node 24 | 2.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 invariant?
The latest stable version of invariant is 2.2.4, published on 2018-03-13. Verified by Vigia on 2026-11-12.
How do I install the latest version of invariant?
Run npm install invariant@latest. The latest stable version is 2.2.4 (verified 2026-11-12).
Is invariant deprecated?
No. invariant is not marked as deprecated in the registry.
Which Node.js version does invariant require?
invariant 2.2.4 does not declare a Node.js version requirement.
Does invariant 2.2.4 have known vulnerabilities?
No known advisories affect invariant 2.2.4 according to the data Vigia checks.
Is invariant still maintained?
invariant published 0 stable releases in the last 12 months; the most recent was 3166 days ago. Activity: dormant.
Observed changes
No changes observed yet since Vigia started tracking this package.
Related packages
- jake
- csso
- at-least-node
- @babel/plugin-bugfix-safari-class-field-initializer-scope
- crc32-stream
- bare-fs
- @smithy/uuid
- cookie-es
- filelist
- lodash.defaults
- @babel/plugin-transform-optional-catch-binding
- asn1
Badges for your README
Show the latest version, maintenance status and deprecation status of this package. Copy the Markdown:
[](https://vigia.coredls.cloud/npm/invariant) [](https://vigia.coredls.cloud/npm/invariant) [](https://vigia.coredls.cloud/npm/invariant)
For agents
GET https://vigia.coredls.cloud/v1/packages/npm/invariant
GET https://vigia.coredls.cloud/v1/packages/npm/invariant/versions/{version}