NewYour coding agent can read the release notes before it upgrades.Set up the MCP server →
npm · #41 most downloaded on npm
Ignore is a manager and filter for .gitignore rules, the one used by eslint, gitbook and many others.
Last release 2 days ago
02 Oct 2026
Ships unpredictably
gaps range from 8 days to 1.1 years
Some releases are documented
notes for 20 of the last 60 stable releases
44 versions withdrawn
withdrawn after publishing
13 years old
105 releases · first in 2013
bump version 7.0.12, #170 , #171
Nothing published for this version
Nothing published for this version
One column per quarter.
#166 : bump version 7.0.9
#166: bump version 7.0.9
PATCH Brings pattern matching closer to git :
PATCH Brings pattern matching closer to git:
git does: \* matches a literal * rather than acting as a wildcard, \? matches a literal ?, and \d, \b, \/ and the like are the plain characters instead of regular-expression escapes.git.An upgrade is recommended for all dependents.
Nothing published for this version
Nothing published for this version
7.0.5: fixes #152
7.0.5: fixes #152
PATCH Allows files named .{3,} , such as ... for Linux / macOS
.{3,}, such as ... for Linux / macOS (#68)ig.ignores('...')
ig.ignores('....')
// It will throw a RangeError in versions prior to 7.0.4, but it is ok if >= 7.0.4An upgrade is recommended for all dependents
7.0.3: #146 , #147 : adds more test cases and temporarily adds ignore.d…
Nothing published for this version
#146 : only tests module resolution 16 if not windows
#146: only tests module resolution 16 if not windows
The primary feature introduced by 7.0.0 is the .checkIgnore() method, which is most equivalent to git check-ignore -v . And also it allows to pass {pa
The primary feature introduced by 7.0.0 is the .checkIgnore() method, which is most equivalent to git check-ignore -v. And also it allows to pass {pattern, mark?} as the parameter of .add() so that we could imitate the mechanism of git check-ignore as:
ig.add({
pattern: 'foo/*',
mark: '60'
})
const {
ignored,
rule
} = checkIgnore('foo/')
if (ignored) {
console.log(`.gitignore:${result}:${rule.mark}:${rule.pattern} foo/`)
}
// .gitignore:60:foo/* foo/The only situation that 7.0.0 might bring incompatibility is to .add() a < 7.0.0 instance into a >= 7.0.0 instance, which might occur when the current workspace has multiple node-ignore versions installed, please be careful.
const {anotherIgnoreInstance} = require('./ignore-6.0-instance')
// A 7.0.0 instance
ignore().add(anotherIgnoreInstance)
// It will break your codeOtherwise, in most cases, if you never do something above or there is only one version of node-ignore installed in the current workspace, it is quite safe to upgrade to 7.0.0.
Nothing published for this version
The release of 6.x is due to a mistake.
6.x is due to a mistake.5.x to 6.x for now actually changes nothing and does no harm, everyone could just upgrade or ignore the version.
6.0.2 is 5.3.27.0.06.0.0: #96 : try to fix typescript moduleResolution Node16
6.0.0: #96: try to fix typescript moduleResolution Node16
The release of 6.x is due to a mistake.
6.x is due to a mistake.5.x to 6.x for now actually changes nothing and does no harm, everyone could just upgrade or ignore the version.
6.0.2 is 5.3.27.0.05.3.1: #108 : remove BOM before processing .gitignore rules
5.3.1: #108: remove BOM before processing .gitignore rules
An upgrade is safe for all dependents
Options interface (#105)An upgrade is safe for all dependents
It allows typing external methods which expect Options as a param, by importing the Options interface.
import {Options} from 'ignore'
PATCH fixes normal single asterisk and normal consecutive asterisks defined in gitignore spec
An upgrade is recommended for all dependents
The following rules could be not properly parsed with previous ignore versions
**foo
*bar
qu*ux
abc\ # `ignore` would throw if no whitespace after `\`
Nothing published for this version
Nothing published for this version
Nothing published for this version
PATCH support readonly arrays of typescript.
An upgrade is recommended for all dependents.
ignore().ignores('../foo/bar.js') // will throw
And the code below will not throw, however it is not recommended
ignore({
allowRelativePaths: true
}).ignores('../foo/bar.js')
Recommend:
ignore().ignores('foo/bar.js')
PATCH fixes ignorecase when internal cache is hit.
ignorecase when internal cache is hit. (#74)An upgrade is recommended for all dependents.
Nothing published for this version
Nothing published for this version
Nothing published for this version
PATCH fixes escaping for square brackets
An upgrade is recommended for all dependents.
Nothing published for this version
PATCH apply the changes of gitignore rules 2.22.1 and fix #56
An upgrade is recommended for all dependents.
Nothing published for this version
PATCH fixes isPathValid on Windows
isPathValid on Windows (#54)On Windows, if path is an absolute path, ig.ignores(path), ig.test(path) and related methods will now throw an error as expected.
FEATURE: Typescript: export interface Ignore
Nothing published for this version
Nothing published for this version
PATCH: fixes isPathValid in windows
Nothing published for this version
Nothing published for this version
PATCH: improves tests for typescript and windows.
SEMVER-MAJOR: #20: it will throw if an invalid pathname passes into .ignores(pathname), see Upgrade 4.x -> 5.x.
.ignores(pathname), see Upgrade 4.x -> 5.x..test(pathname).PATCH: Object.prototype methods will not ruin the result any more.
Object.prototype methods will not ruin the result any more.Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Your coding agent can read these notes before it upgrades. Set up the MCP server →