Skip to content

Commit

Permalink
7.0.0
Browse files Browse the repository at this point in the history
  • Loading branch information
kaelzhang committed Dec 23, 2024
1 parent 65c18e2 commit 079e1b0
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ ig.filter(['.abc\\a.js', '.abc\\d\\e.js'])

## .add(pattern: string | Ignore): this
## .add(patterns: Array<string | Ignore>): this
## .add({pattern: string, mark?: string}): this since 6.1.0
## .add({pattern: string, mark?: string}): this since 7.0.0

- **pattern** `string | Ignore` An ignore pattern string, or the `Ignore` instance
- **patterns** `Array<string | Ignore>` Array of ignore patterns.
Expand Down Expand Up @@ -271,7 +271,7 @@ interface TestResult {
rule?: IgnoreRule
}

// Since 6.1.0
// Since 7.0.0
interface IgnoreRule {
// The original pattern
pattern: string
Expand All @@ -288,7 +288,7 @@ interface IgnoreRule {

## .checkIgnore(target: string): TestResult

> new in 6.1.0
> new in 7.0.0
Debugs gitignore / exclude files, which is equivalent to `git check-ignore -v`. Usually this method is used for other packages to implement the function of `git check-ignore -v` upon `node-ignore`

Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "ignore",
"version": "6.1.0",
"version": "7.0.0",
"description": "Ignore is a manager and filter for .gitignore rules, the one used by eslint, gitbook and many others.",
"main": "index.js",
"module": "index.mjs",
Expand Down

0 comments on commit 079e1b0

Please sign in to comment.