npm / ignore
ignore
What changed in ignore 5 to 7, from its official release notes, upgrade guides and advisories. Sources checked 2026-11-30.
3 breaking3 new APIs and options1 performance1 behavior and defaults
See which of these apply to your code, ranked, in your agent:
npx @unstale/cli initignore 75 changes
Breaking changes 2
A backslash makes the next character literal, matching git behavior; characters such as \d and \/ are plain characters rather than regular-expression escapes.
Only trailing spaces are stripped; tabs and other whitespace are preserved, and a line containing only tabs is treated as a pattern rather than a blank line.
New APIs and options 2
Allows passing an object with pattern and an optional mark to .add(), enabling check-ignore-style output.
Adds .checkIgnore(), which is most equivalent to git check-ignore -v.
Behavior and default changes 1
Adding an instance from a version earlier than 7.0.0 to a 7.0.0-or-later instance may break code.
ignore 53 changes
Breaking changes 1
throws if an invalid pathname is passed to ignores.
New APIs and options 1
Adds a new method for testing a pathname.
Performance 1
Performance improves by 26%.