npm · npm:diff
diff active
A JavaScript text diff implementation.
The latest stable version of diff is 9.0.0, published on 2026-04-13. Verified by Vigia on 2026-11-12.
| Latest stable version | 9.0.0 |
|---|---|
| Published | 2026-04-13 12:39:24 UTC |
| Install | npm install diff@latest |
| Requires (engines) | {"node":">=0.3.1"} |
| Peer dependencies | — |
| Dist-tags | tmp: 3.5.1 latest: 9.0.0 |
| License | BSD-3-Clause |
| Advisories on latest version | none known |
| Last verified | 2026-11-12 13:43:57 UTC |
| Sources | api.deps.dev, registry.npmjs.org, registry.npmjs.org |
Ask your AI assistant to check this
AI models are trained up to a date, so they can be wrong about versions, deprecations and vulnerabilities. Paste this into Claude, ChatGPT, Perplexity or Cursor and it will answer with the verified data on this page:
Before answering about the npm package "diff", check Vigia (verified, dated facts): https://vigia.coredls.cloud/v1/packages/npm/diff . For my whole project use https://vigia.coredls.cloud/context
Using an AI coding agent every day? Connect Vigia once and it checks this by itself.
Maintenance
| Activity | slowing down |
|---|---|
| Last stable release | 2026-04-13 12:39:24 UTC · 213 days ago |
| Stable releases in the last 12 months | 8 |
| Published versions | 56 |
Heuristic based only on release dates; it does not measure issue or security response times.
Version history
| Version | Published |
|---|---|
9.0.0 | 2026-04-13 12:39:24 UTC |
8.0.4 | 2026-03-23 11:24:30 UTC |
3.5.1 | 2026-01-28 12:20:04 UTC |
4.0.4 | 2026-01-20 13:14:09 UTC |
4.0.3 withdrawn | 2026-01-20 13:11:46 UTC |
5.2.2 | 2026-01-20 13:06:48 UTC |
5.2.1 withdrawn | 2026-01-20 12:58:02 UTC |
8.0.3 | 2026-01-12 15:01:26 UTC |
8.0.2 | 2025-05-22 13:42:28 UTC |
8.0.1 | 2025-05-13 13:30:07 UTC |
8.0.0 | 2025-05-12 11:02:06 UTC |
7.0.0 | 2024-09-06 22:07:05 UTC |
6.0.0 | 2024-09-02 19:04:04 UTC |
5.2.0 | 2024-02-12 16:02:01 UTC |
5.1.0 | 2022-05-23 02:22:24 UTC |
5.0.0 | 2020-11-08 02:45:37 UTC |
4.0.2 | 2020-01-13 04:49:04 UTC |
4.0.1 | 2019-01-07 02:49:48 UTC |
4.0.0 | 2019-01-06 03:24:40 UTC |
3.5.0 | 2018-03-05 04:22:54 UTC |
Showing the 20 most recent of 54 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 | 9.0.0 |
node 18 | 9.0.0 |
node 20 | 9.0.0 |
node 22 | 9.0.0 |
node 24 | 9.0.0 |
Upgrade guides for this package
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 diff?
The latest stable version of diff is 9.0.0, published on 2026-04-13. Verified by Vigia on 2026-11-12.
How do I install the latest version of diff?
Run npm install diff@latest. The latest stable version is 9.0.0 (verified 2026-11-12).
Is diff deprecated?
No. diff is not marked as deprecated in the registry.
Which Node.js version does diff require?
diff 9.0.0 declares this requirement: {"node":">=0.3.1"}.
Does diff 9.0.0 have known vulnerabilities?
No known advisories affect diff 9.0.0 according to the data Vigia checks.
Is diff still maintained?
diff published 8 stable releases in the last 12 months; the most recent was 213 days ago. Activity: slowing down.
Observed changes
No changes observed yet since Vigia started tracking this package.
Related packages
- jackspeak
- wrappy
- baseline-browser-mapping
- has-tostringtag
- raw-body
- deep-is
- json-buffer
- foreground-child
- side-channel-list
- @eslint/js
- anymatch
- @rolldown/pluginutils
Badges for your README
Show the latest version, maintenance status and deprecation status of this package. Copy the Markdown:
[](https://vigia.coredls.cloud/npm/diff) [](https://vigia.coredls.cloud/npm/diff) [](https://vigia.coredls.cloud/npm/diff)
For agents
GET https://vigia.coredls.cloud/v1/packages/npm/diff
GET https://vigia.coredls.cloud/v1/packages/npm/diff/versions/{version}