Node Ignore Versions Save

🔍 node-ignore is the manager and filter for .gitignore rules, the one used by eslint, prettier and many others.

5.3.0

6 months ago

5.3.0

  • MINOR export 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'

5.2.4

1 year ago
  • PATCH fixes normal single asterisk and normal consecutive asterisks defined in gitignore spec (#57)
  • PATCH invalid trailing backslash will not throw unexpectedly

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 `\`

5.2.0

2 years ago
  • PATCH support readonly arrays of typescript. (#70)
  • MINOR bring backward compatibility with relative paths. (#75)

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')

5.1.9

2 years ago
  • PATCH fixes ignorecase when internal cache is hit. (#74)

An upgrade is recommended for all dependents.

5.1.5

3 years ago
  • PATCH fixes escaping for square brackets (#59)

An upgrade is recommended for all dependents.

5.1.3

4 years ago

An upgrade is recommended for all dependents.

5.1.1

5 years ago
  • PATCH fixes 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.

5.1.0

5 years ago
  • FEATURE: Typescript: export interface Ignore (#53)

5.0.4

5 years ago
  • PATCH: fixes isPathValid in windows (#47)

5.0.1

5 years ago
  • PATCH: fixes for windows.
  • PATCH: improves tests for typescript and windows.