jest-changed-files
npmv30.5.1TypeScriptA module used internally by Jest to check which files have changed since you last committed in git or hg.
Safe to adopt
Yes — jest-changed-files scores well across adoption, maintenance, weight, supply chain, and licensing. 41.9M downloads per week and 1 known dependents. Last published 9 days ago. 16 releases in the last 2 years.
- AAdoption: grade A, Excellent.
41.9M downloads per week and 1 known dependents.
- AMaintenance: grade A, Excellent.
Last published 9 days ago. 16 releases in the last 2 years.
- BWeight: grade B, Good.
Pulls in 20 transitive packages, about 2.9 MB installed (at least — some of the tree is still being crawled).
- ASupply chain: grade A, Excellent.
No install scripts, 5 maintainers, and a contained dependency surface.
- ALicense: grade A, Excellent.
MIT — permissive, with no copyleft found in the dependency tree.
Grades are computed deterministically from registry metadata collected by PackageGraph — downloads, dependents, publish dates, the resolved dependency tree, maintainer count, and declared licenses. No third-party scores are used.
Install cost
What you actually take on by adding jest-changed-files to a project.
Runtime packages this one declares itself.
Distinct packages in the full runtime tree, deduplicated the way a package manager would.
Unpacked size of this package plus its entire runtime tree.
Longest resolved dependency chain below this package.
Part of this dependency tree has not been crawled yet, so these figures are a lower bound rather than a final total.
Licenses in the dependency tree
Every license you inherit by installing jest-changed-files, not just its own. Check this before a legal review, not after.
Compatibility
- Node.js
- node ^18.14.0 || ^20.0.0 || ^22.0.0 || >=24.0.0
- Module format
- ESM + CommonJS
- TypeScript
- Types included
- Install scripts
- None
Quick start
A usage example from the jest-changed-files README.
import {getChangedFilesForRoots} from 'jest-changed-files';
getChangedFilesForRoots(['/path/to/test'], {
lastCommit: true,
withAncestor: true,
}).then(files => {
/*
{
repos: [],
changedFiles: []
}
*/
});Dependencies
Declared by jest-changed-files v30.5.1. Runtime dependencies are installed with the package; dev dependencies are not.
Runtime (3)
Used by
Popular packages that depend on jest-changed-files.
Relationship graph
Dependencies (left) and dependents (right) of jest-changed-files.
Frequently installed together
deterministic `JSON.stringify()` - a faster version of substack's json-stable-strigify without jsonify
This packages is a collection of utilities and helper functions
No description provided.
Generic configuration validation tool that helps you with warnings, errors and deprecation messages as well as showing users examples of correct configuration.
No description provided.
Jest's reporters
No description provided.
No description provided.
A Node.js module for sending notifications on native Mac, Windows (post and pre 8) and Linux (or Growl as fallback)
Convert Windows backslash paths to slash paths
No description provided.
Stringify any JavaScript value.
Release history
16 releases in the last two years, typically about 18 days apart.
| Version | Published | Size | License |
|---|---|---|---|
| 30.5.1latest | 9 days ago | 17 KB | MIT |
| 30.5.0 | 12 days ago | 17 KB | MIT |
| 30.4.1 | 4 months ago | 17 KB | MIT |
| 30.4.0 | 4 months ago | 17 KB | MIT |
| 30.3.0 | 6 months ago | 17 KB | MIT |
| 30.2.0 | 11 months ago | 18 KB | MIT |
| 30.0.5 | 1 year ago | 18 KB | MIT |
| 30.0.2 | 1 year ago | 17 KB | MIT |
| 30.0.1 | 1 year ago | 17 KB | MIT |
| 30.0.0 | 1 year ago | 17 KB | MIT |
| 30.0.0-rc.1 | 1 year ago | 17 KB | MIT |
| 30.0.0-beta.8 | 1 year ago | 17 KB | MIT |
| 30.0.0-beta.7 | 1 year ago | 17 KB | MIT |
| 30.0.0-beta.6 | 1 year ago | 17 KB | MIT |
| 30.0.0-beta.3 | 1 year ago | 17 KB | MIT |
Overview
jest-changed-files is an npm package that a module used internally by Jest to check which files have changed since you last committed in git or hg. It is extremely widely used, with about 41.9M downloads per week and 1 known dependents in the graph. The latest version is 30.5.1, released under the MIT license.
Who should use it
Teams working in the npm ecosystem who need a module used internally by Jest to check which files have changed since you last committed in git or hg and value a battle-tested, widely-adopted solution.
When not to use it
Consider an alternative if you need to or if a more actively-maintained option better fits your npm stack.
Pros
- Large, well-established user base (41.9M weekly downloads).
- Ships TypeScript type definitions.
- Clear open-source license (MIT).
- Lean dependency tree (3 direct dependencies).
Cons
- No significant drawbacks detected from available metadata.
Auto-generated from collected registry metadata. No external claims are inferred.
Frequently asked questions
Should I use jest-changed-files?
Yes — jest-changed-files scores well across adoption, maintenance, weight, supply chain, and licensing. 41.9M downloads per week and 1 known dependents. Last published 9 days ago. 16 releases in the last 2 years.
How do I install jest-changed-files?
Run `npm install jest-changed-files` to add jest-changed-files to your npm project.
How many dependencies does jest-changed-files have?
jest-changed-files declares 3 direct dependencies and pulls in 20 packages in total once its runtime tree is resolved totalling about 2.9 MB on disk.
What license is jest-changed-files released under?
jest-changed-files is distributed under the MIT license. Its dependency tree also includes: ISC, MIT.
How popular is jest-changed-files?
jest-changed-files has approximately 41,899,064 downloads per week and 1 known dependent packages.
Is jest-changed-files still maintained?
The most recent release of jest-changed-files (v30.5.1) was published 9 days ago.
Does jest-changed-files run install scripts?
No. jest-changed-files does not define preinstall, install, or postinstall scripts, so installing it does not execute publisher-supplied code.