unstale

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 init

@unstale/cli on npm

ignore 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.

    7.0.8release notes

  • 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.

    7.0.8release notes

New APIs and options 2

  • Allows passing an object with pattern and an optional mark to .add(), enabling check-ignore-style output.

    7.0.0release notes

  • Adds .checkIgnore(), which is most equivalent to git check-ignore -v.

    7.0.0release notes

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.

    7.0.0release notes

ignore 53 changes

Breaking changes 1

  • throws if an invalid pathname is passed to ignores.

    5.0.0release notes

New APIs and options 1

Performance 1