Comparing version 3.0.13 to 3.0.14
{ | ||
"name": "ignore", | ||
"version": "3.0.13", | ||
"version": "3.0.14", | ||
"description": "Ignore is a manager and filter for .gitignore rules.", | ||
@@ -5,0 +5,0 @@ "main": "./ignore.js", |
@@ -53,12 +53,12 @@ [![Build Status](https://travis-ci.org/kaelzhang/node-ignore.svg?branch=master)](https://travis-ci.org/kaelzhang/node-ignore) | ||
2. `ignore` only contains utility methods to filter paths according to the specified ignore rules, so | ||
- `ignore` never try to find out ignore rules by traversing directories or fetching from git configurations. | ||
- `ignore` don't cares about sub-modules of git projects. | ||
- `ignore` never try to find out ignore rules by traversing directories or fetching from git configurations. | ||
- `ignore` don't cares about sub-modules of git projects. | ||
3. Exactly according to [gitignore man page](http://git-scm.com/docs/gitignore), fixes some known matching issues of fstream-ignore, such as: | ||
- '`/*.js`' should only match '`a.js`', but not '`abc/a.js`'. | ||
- '`**/foo`' should match '`foo`' anywhere. | ||
- '`/*.js`' should only match '`a.js`', but not '`abc/a.js`'. | ||
- '`**/foo`' should match '`foo`' anywhere. | ||
- prevent re-including a file if a parent directory of that file is excluded. | ||
- handle trailing whitespaces. | ||
- handle trailing whitespaces: | ||
- `'a '`(one space) should not match `'a '`(two spaces). | ||
- `'a \ '` matches `'a '` | ||
@@ -159,1 +159,9 @@ ## Methods | ||
Returns `function(path)` the filter function. | ||
**** | ||
## Upgrade 2.x -> 3.x | ||
- All `options` of 2.x are unnecessary and removed, so just remove them. | ||
- `ignore()` instance is no longer an [`EventEmitter`](nodejs.org/api/events.html), and all events are unnecessary and removed. | ||
- `.addIgnoreFile()` is removed, see the [.addIgnoreFile](#addignorefilepath) section for details. |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
17193
166