micromatch 3.0.3 → 3.0.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.

Potentially problematic release.


This version of micromatch might be problematic. Click here for more details.

package/CHANGELOG.md CHANGED
@@ -13,7 +13,7 @@ Changelog entries are classified using the following labels _(from [keep-a-chang
13
13
 
14
14
  ### [3.0.0] - 2017-04-11
15
15
 
16
- TODO
16
+ TODO. There should be no breaking changes. Please report any regressions. I will [reformat these release notes](https://github.com/micromatch/micromatch/pull/76) and add them to the changelog as soon as I have a chance.
17
17
 
18
18
  ### [1.0.1] - 2016-12-12
19
19
 
package/README.md CHANGED
@@ -1,4 +1,4 @@
1
- # micromatch [![NPM version](https://img.shields.io/npm/v/micromatch.svg?style=flat)](https://www.npmjs.com/package/micromatch) [![NPM monthly downloads](https://img.shields.io/npm/dm/micromatch.svg?style=flat)](https://npmjs.org/package/micromatch) [![NPM total downloads](https://img.shields.io/npm/dt/micromatch.svg?style=flat)](https://npmjs.org/package/micromatch) [![Linux Build Status](https://img.shields.io/travis/micromatch/micromatch.svg?style=flat&label=Travis)](https://travis-ci.org/micromatch/micromatch) [![Windows Build Status](https://img.shields.io/appveyor/ci/micromatch/micromatch.svg?style=flat&label=AppVeyor)](https://ci.appveyor.com/project/micromatch/micromatch)
1
+ # micromatch [![NPM version](https://img.shields.io/npm/v/micromatch.svg?style=flat)](https://www.npmjs.com/package/micromatch) [![NPM monthly downloads](https://img.shields.io/npm/dm/micromatch.svg?style=flat)](https://npmjs.org/package/micromatch) [![NPM total downloads](https://img.shields.io/npm/dt/micromatch.svg?style=flat)](https://npmjs.org/package/micromatch) [![Linux Build Status](https://img.shields.io/travis/micromatch/micromatch.svg?style=flat&label=Travis)](https://travis-ci.org/micromatch/micromatch) [![Windows Build Status](https://img.shields.io/appveyor/ci/micromatch/micromatch.svg?style=flat&label=AppVeyor)](https://ci.appveyor.com/project/micromatch/micromatch)
2
2
 
3
3
  > Glob matching for javascript/node.js. A drop-in replacement and faster alternative to minimatch and multimatch.
4
4
 
@@ -326,7 +326,7 @@ console.log(mm.not(['a.a', 'b.b', 'c.c'], '*.a'));
326
326
  //=> ['b.b', 'c.c']
327
327
  ```
328
328
 
329
- ### [.contains](index.js#L377)
329
+ ### [.contains](index.js#L378)
330
330
 
331
331
  Returns true if the given `string` contains the given pattern. Similar to [.isMatch](#isMatch) but the pattern can match any part of the string.
332
332
 
@@ -349,7 +349,7 @@ console.log(mm.contains('aa/bb/cc', '*d'));
349
349
  //=> false
350
350
  ```
351
351
 
352
- ### [.matchKeys](index.js#L433)
352
+ ### [.matchKeys](index.js#L434)
353
353
 
354
354
  Filter the keys of the given object with the given `glob` pattern and `options`. Does not attempt to match nested keys. If you need this feature, use [glob-object](https://github.com/jonschlinkert/glob-object) instead.
355
355
 
@@ -371,7 +371,7 @@ console.log(mm.matchKeys(obj, '*b'));
371
371
  //=> { ab: 'b' }
372
372
  ```
373
373
 
374
- ### [.matcher](index.js#L462)
374
+ ### [.matcher](index.js#L463)
375
375
 
376
376
  Returns a memoized matcher function from the given glob `pattern` and `options`. The returned function takes a string to match as its only argument and returns true if the string is a match.
377
377
 
@@ -394,7 +394,7 @@ console.log(isMatch('a.b'));
394
394
  //=> true
395
395
  ```
396
396
 
397
- ### [.makeRe](index.js#L534)
397
+ ### [.makeRe](index.js#L535)
398
398
 
399
399
  Create a regular expression from the given glob `pattern`.
400
400
 
@@ -414,7 +414,7 @@ console.log(mm.makeRe('*.js'));
414
414
  //=> /^(?:(\.[\\\/])?(?!\.)(?=.)[^\/]*?\.js)$/
415
415
  ```
416
416
 
417
- ### [.braces](index.js#L581)
417
+ ### [.braces](index.js#L582)
418
418
 
419
419
  Expand the given brace `pattern`.
420
420
 
@@ -435,7 +435,7 @@ console.log(mm.braces('foo/{a,b}/bar', {expand: true}));
435
435
  //=> ['foo/(a|b)/bar']
436
436
  ```
437
437
 
438
- ### [.create](index.js#L648)
438
+ ### [.create](index.js#L649)
439
439
 
440
440
  Parses the given glob `pattern` and returns an array of abstract syntax trees (ASTs), with the compiled `output` and optional source `map` on each AST.
441
441
 
@@ -477,7 +477,7 @@ console.log(mm.create('abc/*.js'));
477
477
  // idx: 6 }]
478
478
  ```
479
479
 
480
- ### [.parse](index.js#L695)
480
+ ### [.parse](index.js#L696)
481
481
 
482
482
  Parse the given `str` with the given `options`.
483
483
 
@@ -510,7 +510,7 @@ console.log(ast);
510
510
  // { type: 'eos', val: '' } ] }
511
511
  ```
512
512
 
513
- ### [.compile](index.js#L748)
513
+ ### [.compile](index.js#L749)
514
514
 
515
515
  Compile the given `ast` or string with the given `options`.
516
516
 
@@ -544,7 +544,7 @@ console.log(mm.compile(ast));
544
544
  // parsingErrors: [] }
545
545
  ```
546
546
 
547
- ### [.clearCache](index.js#L769)
547
+ ### [.clearCache](index.js#L770)
548
548
 
549
549
  Clear the regex cache.
550
550
 
@@ -832,7 +832,7 @@ Micromatch also supports extended globbing features.
832
832
 
833
833
  Extended globbing, as described by the bash man page:
834
834
 
835
- | **pattern** | **regex equivalent** | **description** |
835
+ | **pattern** | **regex equivalent** | **description** |
836
836
  | --- | --- | --- |
837
837
  | `?(pattern)` | `(pattern)?` | Matches zero or one occurrence of the given patterns |
838
838
  | `*(pattern)` | `(pattern)*` | Matches zero or more occurrences of the given patterns |
@@ -953,7 +953,7 @@ npm i -d && npm run benchmark
953
953
 
954
954
  ### Latest results
955
955
 
956
- As of June 02, 2017 (longer bars are better):
956
+ As of July 11, 2017 (longer bars are better):
957
957
 
958
958
  ```sh
959
959
  # braces-globstar-large-list
@@ -1016,7 +1016,7 @@ multimatch ███████████████ (2,970 ops/sec)
1016
1016
  * [expand-brackets](https://www.npmjs.com/package/expand-brackets): Expand POSIX bracket expressions (character classes) in glob patterns. | [homepage](https://github.com/jonschlinkert/expand-brackets "Expand POSIX bracket expressions (character classes) in glob patterns.")
1017
1017
  * [extglob](https://www.npmjs.com/package/extglob): Extended glob support for JavaScript. Adds (almost) the expressive power of regular expressions to glob… [more](https://github.com/jonschlinkert/extglob) | [homepage](https://github.com/jonschlinkert/extglob "Extended glob support for JavaScript. Adds (almost) the expressive power of regular expressions to glob patterns.")
1018
1018
  * [fill-range](https://www.npmjs.com/package/fill-range): Fill in a range of numbers or letters, optionally passing an increment or `step` to… [more](https://github.com/jonschlinkert/fill-range) | [homepage](https://github.com/jonschlinkert/fill-range "Fill in a range of numbers or letters, optionally passing an increment or `step` to use, or create a regex-compatible range with `options.toRegex`")
1019
- * [nanomatch](https://www.npmjs.com/package/nanomatch): Fast, minimal glob matcher for node.js. Similar to micromatch, minimatch and multimatch, but complete Bash… [more](https://github.com/jonschlinkert/nanomatch) | [homepage](https://github.com/jonschlinkert/nanomatch "Fast, minimal glob matcher for node.js. Similar to micromatch, minimatch and multimatch, but complete Bash 4.3 wildcard support only (no support for exglobs, posix brackets or braces)")
1019
+ * [nanomatch](https://www.npmjs.com/package/nanomatch): Fast, minimal glob matcher for node.js. Similar to micromatch, minimatch and multimatch, but complete Bash… [more](https://github.com/micromatch/nanomatch) | [homepage](https://github.com/micromatch/nanomatch "Fast, minimal glob matcher for node.js. Similar to micromatch, minimatch and multimatch, but complete Bash 4.3 wildcard support only (no support for exglobs, posix brackets or braces)")
1020
1020
 
1021
1021
  ### Contributing
1022
1022
 
@@ -1026,19 +1026,19 @@ Please read the [contributing guide](.github/contributing.md) for advice on open
1026
1026
 
1027
1027
  ### Contributors
1028
1028
 
1029
- | **Commits** | **Contributor** |
1030
- | --- | --- |
1031
- | 423 | [jonschlinkert](https://github.com/jonschlinkert) |
1032
- | 12 | [es128](https://github.com/es128) |
1033
- | 3 | [paulmillr](https://github.com/paulmillr) |
1034
- | 2 | [TrySound](https://github.com/TrySound) |
1035
- | 2 | [doowb](https://github.com/doowb) |
1036
- | 2 | [MartinKolarik](https://github.com/MartinKolarik) |
1037
- | 2 | [tunnckoCore](https://github.com/tunnckoCore) |
1038
- | 1 | [amilajack](https://github.com/amilajack) |
1039
- | 1 | [DianeLooney](https://github.com/DianeLooney) |
1040
- | 1 | [UltCombo](https://github.com/UltCombo) |
1041
- | 1 | [tomByrer](https://github.com/tomByrer) |
1029
+ | **Commits** | **Contributor** |
1030
+ | --- | --- |
1031
+ | 429 | [jonschlinkert](https://github.com/jonschlinkert) |
1032
+ | 12 | [es128](https://github.com/es128) |
1033
+ | 4 | [doowb](https://github.com/doowb) |
1034
+ | 3 | [paulmillr](https://github.com/paulmillr) |
1035
+ | 2 | [TrySound](https://github.com/TrySound) |
1036
+ | 2 | [MartinKolarik](https://github.com/MartinKolarik) |
1037
+ | 2 | [tunnckoCore](https://github.com/tunnckoCore) |
1038
+ | 1 | [amilajack](https://github.com/amilajack) |
1039
+ | 1 | [DianeLooney](https://github.com/DianeLooney) |
1040
+ | 1 | [UltCombo](https://github.com/UltCombo) |
1041
+ | 1 | [tomByrer](https://github.com/tomByrer) |
1042
1042
 
1043
1043
  ### Building docs
1044
1044
 
@@ -1072,4 +1072,4 @@ Released under the [MIT License](LICENSE).
1072
1072
 
1073
1073
  ***
1074
1074
 
1075
- _This file was generated by [verb-generate-readme](https://github.com/verbose/verb-generate-readme), v0.6.0, on June 02, 2017._
1075
+ _This file was generated by [verb-generate-readme](https://github.com/verbose/verb-generate-readme), v0.6.0, on July 11, 2017._
package/index.js CHANGED
@@ -344,7 +344,8 @@ micromatch.not = function(list, patterns, options) {
344
344
  var ignore = opts.ignore;
345
345
  delete opts.ignore;
346
346
 
347
- list = utils.arrayify(list);
347
+ var unixify = utils.unixify(opts);
348
+ list = utils.arrayify(list).map(unixify);
348
349
 
349
350
  var matches = utils.diff(list, micromatch(list, patterns, opts));
350
351
  if (ignore) {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "micromatch",
3
3
  "description": "Glob matching for javascript/node.js. A drop-in replacement and faster alternative to minimatch and multimatch.",
4
- "version": "3.0.3",
4
+ "version": "3.0.4",
5
5
  "homepage": "https://github.com/micromatch/micromatch",
6
6
  "author": "Jon Schlinkert (https://github.com/jonschlinkert)",
7
7
  "contributors": [