Skip to content

Commit 9ef72e8

Browse files
committed
Changelog.
1 parent cb143fe commit 9ef72e8

File tree

1 file changed

+7
-17
lines changed

1 file changed

+7
-17
lines changed

README.md

+7-17
Original file line numberDiff line numberDiff line change
@@ -7,32 +7,22 @@ allowing a very flexible user-defined config to define things like file paths.
77

88
__Note: This module has Bash-parity, please be aware that Windows-style backslashes are not supported as separators. See https://github.com/micromatch/micromatch#backslashes for more information.__
99

10-
[![NPM](https://nodei.co/npm/anymatch.png?downloads=true&downloadRank=true&stars=true)](https://nodei.co/npm/anymatch/)
11-
[![NPM](https://nodei.co/npm-dl/anymatch.png?height=3&months=9)](https://nodei.co/npm-dl/anymatch/)
1210

1311
Usage
1412
-----
1513
```sh
16-
npm install anymatch --save
14+
npm install anymatchx
1715
```
1816

19-
#### anymatch (matchers, testString, [returnIndex], [startIndex], [endIndex])
17+
#### anymatch (matchers, testString, [returnIndex])
2018
* __matchers__: (_Array|String|RegExp|Function_)
2119
String to be directly matched, string with glob patterns, regular expression
2220
test, function that takes the testString as an argument and returns a truthy
2321
value if it should be matched, or an array of any number and mix of these types.
24-
* __testString__: (_String|Array_) The string to test against the matchers. If
25-
passed as an array, the first element of the array will be used as the
26-
`testString` for non-function matchers, while the entire array will be applied
27-
as the arguments for function matchers.
22+
* __testString__: (_String) The string to test against the matchers.
2823
* __returnIndex__: (_Boolean [optional]_) If true, return the array index of
2924
the first matcher that that testString matched, or -1 if no match, instead of a
3025
boolean result.
31-
* __startIndex, endIndex__: (_Integer [optional]_) Can be used to define a
32-
subset out of the array of provided matchers to test against. Can be useful
33-
with bound matcher functions (see below). When used with `returnIndex = true`
34-
preserves original indexing. Behaves the same as `Array.prototype.slice` (i.e.
35-
includes array members up to, but not including endIndex).
3626

3727
```js
3828
var anymatch = require('anymatch');
@@ -72,7 +62,7 @@ anymatch('**/node_modules/**', '/absolute/path/to/node_modules/somelib/index.js'
7262
#### anymatch (matchers)
7363
You can also pass in only your matcher(s) to get a curried function that has
7464
already been bound to the provided matching criteria. This can be used as an
75-
`Array.prototype.filter` callback.
65+
`Array#filter` callback.
7666

7767
```js
7868
var matcher = anymatch(matchers);
@@ -88,9 +78,9 @@ Change Log
8878
----------
8979
[See release notes page on GitHub](https://github.com/micromatch/anymatch/releases)
9080

91-
NOTE: As of v2.0.0, [micromatch](https://github.com/jonschlinkert/micromatch) moves away from minimatch-parity and inline with Bash. This includes handling backslashes differently (see https://github.com/micromatch/micromatch#backslashes for more information).
92-
93-
NOTE: As of v1.2.0, anymatch uses [micromatch](https://github.com/jonschlinkert/micromatch)
81+
- **v3.0:**: Removed startIndex and endIndex arguments. Made function more strict.
82+
- **v2.0:** [micromatch](https://github.com/jonschlinkert/micromatch) moves away from minimatch-parity and inline with Bash. This includes handling backslashes differently (see https://github.com/micromatch/micromatch#backslashes for more information).
83+
- **v1.2:** anymatch uses [micromatch](https://github.com/jonschlinkert/micromatch)
9484
for glob pattern matching. Issues with glob pattern matching should be
9585
reported directly to the [micromatch issue tracker](https://github.com/jonschlinkert/micromatch/issues).
9686

0 commit comments

Comments
 (0)