committed by
GitHub
parent
20d2b4f98d
commit
e4f3964f67
109
node_modules/micromatch/CHANGELOG.md
generated
vendored
109
node_modules/micromatch/CHANGELOG.md
generated
vendored
@ -1,109 +0,0 @@
|
||||
# Release history
|
||||
|
||||
All notable changes to this project will be documented in this file.
|
||||
|
||||
The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/)
|
||||
and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html).
|
||||
|
||||
<details>
|
||||
<summary><strong>Guiding Principles</strong></summary>
|
||||
|
||||
- Changelogs are for humans, not machines.
|
||||
- There should be an entry for every single version.
|
||||
- The same types of changes should be grouped.
|
||||
- Versions and sections should be linkable.
|
||||
- The latest version comes first.
|
||||
- The release date of each versions is displayed.
|
||||
- Mention whether you follow Semantic Versioning.
|
||||
|
||||
</details>
|
||||
|
||||
<details>
|
||||
<summary><strong>Types of changes</strong></summary>
|
||||
|
||||
Changelog entries are classified using the following labels _(from [keep-a-changelog](http://keepachangelog.com/)_):
|
||||
|
||||
- `Added` for new features.
|
||||
- `Changed` for changes in existing functionality.
|
||||
- `Deprecated` for soon-to-be removed features.
|
||||
- `Removed` for now removed features.
|
||||
- `Fixed` for any bug fixes.
|
||||
- `Security` in case of vulnerabilities.
|
||||
|
||||
</details>
|
||||
|
||||
## [4.0.0] - 2019-03-20
|
||||
|
||||
### Added
|
||||
|
||||
- Adds support for `options.onMatch`. See the readme for details
|
||||
- Adds support for `options.onIgnore`. See the readme for details
|
||||
- Adds support for `options.onResult`. See the readme for details
|
||||
|
||||
|
||||
### Breaking changes
|
||||
|
||||
- Require Node.js >= 8.6
|
||||
- Removed support for passing an array of brace patterns to `micromatch.braces()`.
|
||||
- To strictly enforce closing brackets (for `{`, `[`, and `(`), you must now use `strictBrackets=true` instead of `strictErrors`.
|
||||
- `cache` - caching and all related options and methods have been removed
|
||||
- `options.unixify` was renamed to `options.windows`
|
||||
- `options.nodupes` Was removed. Duplicates are always removed by default. You can override this with custom behavior by using the `onMatch`, `onResult` and `onIgnore` functions.
|
||||
- `options.snapdragon` was removed, as snapdragon is no longer used.
|
||||
- `options.sourcemap` was removed, as snapdragon is no longer used, which provided sourcemap support.
|
||||
|
||||
## [3.0.0] - 2017-04-11
|
||||
|
||||
Complete overhaul, with 36,000+ new unit tests validated against actual output generated by Bash and minimatch. More specifically, 35,000+ of the tests:
|
||||
|
||||
- micromatch results are directly compared to bash results
|
||||
- in rare cases, when micromatch and bash disagree, micromatch's results are compared to minimatch's results
|
||||
- micromatch is much more accurate than minimatch, so there were cases where I had to make assumptions. I'll try to document these.
|
||||
|
||||
This refactor introduces a parser and compiler that are supersets of more granular parsers and compilers from other sub-modules. Each of these sub-modules has a singular responsibility and focuses on a certain type of matching that aligns with a specific part of the Bash "expansion" API.
|
||||
|
||||
These sub-modules work like plugins to seamlessly create the micromatch parser/compiler, so that strings are parsed in one pass, an [AST is created](https://gist.github.com/jonschlinkert/099c8914f56529f75bc757cc9e5e8e2a), then a new string is generated by the compiler.
|
||||
|
||||
Here are those sub-modules with links to related prs on those modules if you want to see how they contribute to this code:
|
||||
|
||||
[nanomatch](https://github.com/jonschlinkert/nanomatch) (new library) - glob expansion (`*`, `**`, `?` and `[...]`))
|
||||
[braces](https://github.com/jonschlinkert/braces/pull/10) - brace expansion (`{1..10}`, `{a,b,c}`, etc)
|
||||
[extglob](https://github.com/jonschlinkert/extglob/pull/5) - extended globs (`!(a|b)`, `@(!(foo|bar))`, etc)
|
||||
[expand-brackets](https://github.com/jonschlinkert/expand-brackets/pull/5) - POSIX character classes `[[:alpha:][:digit:]]`
|
||||
|
||||
**Added**
|
||||
|
||||
- source map support (optionally created when using parse or compile - I have no idea what the use case is yet, but they come for free) (note that source maps are not generated for brace expansion at present, since the braces compiler uses a different strategy. I'll update if/when this changes).
|
||||
- parser is exposed, so that implementors can customize or override specific micromatch parsers if necessary
|
||||
- compiler is exposed, so that implementors can customize or override specific micromatch compilers if necessary
|
||||
|
||||
**Fixed**
|
||||
|
||||
- more accurate matching (passes 100% of Bash 4.3 of the brace expansion and extglob unit tests, as well as all Bash glob tests that are relevant to node.js usage, all minimatch tests, all brace-expansion tests, and also passes a couple of tests that bash fails)
|
||||
- even safer - micromatch has always generated optimized patterns so it's not subject to DoS exploits like minimatch (completely different than the regex DoS issue, minimatch and multimatch are still openly exposed to being used for DoS attacks), but more safeguards were built into this refactor
|
||||
|
||||
**Changed**
|
||||
|
||||
- the public API of this library did not change in this version and should be safe to upgrade without changing implentor code. However, we have released this as a major version for the following reasons:
|
||||
- out of an abundance of caution due to the large amount of code changed in this release
|
||||
- we have improved parser accuracy to such a degree that some implementors using invalid globs have noted change in behavior. If this is the case for you, please check that you are using a valid glob expression before logging a bug with this library
|
||||
|
||||
## [1.0.1] - 2016-12-12
|
||||
|
||||
**Added**
|
||||
|
||||
- Support for windows path edge cases where backslashes are used in brackets or other unusual combinations.
|
||||
|
||||
## [1.0.0] - 2016-12-12
|
||||
|
||||
Stable release.
|
||||
|
||||
## [0.1.0] - 2016-10-08
|
||||
|
||||
First release.
|
||||
|
||||
|
||||
[Unreleased]: https://github.com/jonschlinkert/micromatch/compare/0.1.0...HEAD
|
||||
[0.2.0]: https://github.com/jonschlinkert/micromatch/compare/0.1.0...0.2.0
|
||||
|
||||
[keep-a-changelog]: https://github.com/olivierlacan/keep-a-changelog
|
21
node_modules/micromatch/README.md
generated
vendored
21
node_modules/micromatch/README.md
generated
vendored
@ -1,4 +1,4 @@
|
||||
# micromatch [](https://www.npmjs.com/package/micromatch) [](https://npmjs.org/package/micromatch) [](https://npmjs.org/package/micromatch) [](https://travis-ci.org/micromatch/micromatch)
|
||||
# micromatch [](https://www.npmjs.com/package/micromatch) [](https://npmjs.org/package/micromatch) [](https://npmjs.org/package/micromatch) [](https://github.com/micromatch/micromatch/actions/workflows/test.yml)
|
||||
|
||||
> Glob matching for javascript/node.js. A replacement and faster alternative to minimatch and multimatch.
|
||||
|
||||
@ -54,7 +54,7 @@ Please consider following this project's author, [Jon Schlinkert](https://github
|
||||
|
||||
## Install
|
||||
|
||||
Install with [npm](https://www.npmjs.com/):
|
||||
Install with [npm](https://www.npmjs.com/) (requires [Node.js](https://nodejs.org/en/) >=8.6):
|
||||
|
||||
```sh
|
||||
$ npm install --save micromatch
|
||||
@ -103,7 +103,7 @@ console.log(micromatch.isMatch('foo', ['b*', 'f*'])) //=> true
|
||||
|
||||
* Support for multiple glob patterns (no need for wrappers like multimatch)
|
||||
* Wildcards (`**`, `*.js`)
|
||||
* Negation (`'!a/*.js'`, `'*!(b).js']`)
|
||||
* Negation (`'!a/*.js'`, `'*!(b).js'`)
|
||||
* [extglobs](#extglobs) (`+(x|y)`, `!(a|b)`)
|
||||
* [POSIX character classes](#posix-bracket-expressions) (`[[:alpha:][:digit:]]`)
|
||||
* [brace expansion](https://github.com/micromatch/braces) (`foo/{1..5}.md`, `bar/{a,b,c}.js`)
|
||||
@ -419,7 +419,7 @@ Parse a glob pattern to create the source string for a regular expression.
|
||||
|
||||
```js
|
||||
const mm = require('micromatch');
|
||||
const state = mm(pattern[, options]);
|
||||
const state = mm.parse(pattern[, options]);
|
||||
```
|
||||
|
||||
### [.braces](index.js#L446)
|
||||
@ -845,7 +845,7 @@ $ npm run bench
|
||||
|
||||
### Latest results
|
||||
|
||||
As of April 10, 2021 (longer bars are better):
|
||||
As of March 24, 2022 (longer bars are better):
|
||||
|
||||
```sh
|
||||
# .makeRe star
|
||||
@ -963,17 +963,18 @@ You might also be interested in these projects:
|
||||
|
||||
| **Commits** | **Contributor** |
|
||||
| --- | --- |
|
||||
| 508 | [jonschlinkert](https://github.com/jonschlinkert) |
|
||||
| 512 | [jonschlinkert](https://github.com/jonschlinkert) |
|
||||
| 12 | [es128](https://github.com/es128) |
|
||||
| 9 | [danez](https://github.com/danez) |
|
||||
| 8 | [doowb](https://github.com/doowb) |
|
||||
| 6 | [paulmillr](https://github.com/paulmillr) |
|
||||
| 5 | [mrmlnc](https://github.com/mrmlnc) |
|
||||
| 4 | [danez](https://github.com/danez) |
|
||||
| 3 | [DrPizza](https://github.com/DrPizza) |
|
||||
| 2 | [TrySound](https://github.com/TrySound) |
|
||||
| 2 | [mceIdo](https://github.com/mceIdo) |
|
||||
| 2 | [Glazy](https://github.com/Glazy) |
|
||||
| 2 | [MartinKolarik](https://github.com/MartinKolarik) |
|
||||
| 2 | [antonyk](https://github.com/antonyk) |
|
||||
| 2 | [Tvrqvoise](https://github.com/Tvrqvoise) |
|
||||
| 1 | [amilajack](https://github.com/amilajack) |
|
||||
| 1 | [Cslove](https://github.com/Cslove) |
|
||||
@ -981,11 +982,13 @@ You might also be interested in these projects:
|
||||
| 1 | [DianeLooney](https://github.com/DianeLooney) |
|
||||
| 1 | [UltCombo](https://github.com/UltCombo) |
|
||||
| 1 | [frangio](https://github.com/frangio) |
|
||||
| 1 | [joyceerhl](https://github.com/joyceerhl) |
|
||||
| 1 | [juszczykjakub](https://github.com/juszczykjakub) |
|
||||
| 1 | [muescha](https://github.com/muescha) |
|
||||
| 1 | [sebdeckers](https://github.com/sebdeckers) |
|
||||
| 1 | [tomByrer](https://github.com/tomByrer) |
|
||||
| 1 | [fidian](https://github.com/fidian) |
|
||||
| 1 | [curbengh](https://github.com/curbengh) |
|
||||
| 1 | [simlu](https://github.com/simlu) |
|
||||
| 1 | [wtgtybhertgeghgtwtg](https://github.com/wtgtybhertgeghgtwtg) |
|
||||
| 1 | [yvele](https://github.com/yvele) |
|
||||
@ -1000,9 +1003,9 @@ You might also be interested in these projects:
|
||||
|
||||
### License
|
||||
|
||||
Copyright © 2021, [Jon Schlinkert](https://github.com/jonschlinkert).
|
||||
Copyright © 2022, [Jon Schlinkert](https://github.com/jonschlinkert).
|
||||
Released under the [MIT License](LICENSE).
|
||||
|
||||
***
|
||||
|
||||
_This file was generated by [verb-generate-readme](https://github.com/verbose/verb-generate-readme), v0.8.0, on April 10, 2021._
|
||||
_This file was generated by [verb-generate-readme](https://github.com/verbose/verb-generate-readme), v0.8.0, on March 24, 2022._
|
6
node_modules/micromatch/index.js
generated
vendored
6
node_modules/micromatch/index.js
generated
vendored
@ -155,10 +155,10 @@ micromatch.not = (list, patterns, options = {}) => {
|
||||
items.push(state.output);
|
||||
};
|
||||
|
||||
let matches = micromatch(list, patterns, { ...options, onResult });
|
||||
let matches = new Set(micromatch(list, patterns, { ...options, onResult }));
|
||||
|
||||
for (let item of items) {
|
||||
if (!matches.includes(item)) {
|
||||
if (!matches.has(item)) {
|
||||
result.add(item);
|
||||
}
|
||||
}
|
||||
@ -408,7 +408,7 @@ micromatch.scan = (...args) => picomatch.scan(...args);
|
||||
*
|
||||
* ```js
|
||||
* const mm = require('micromatch');
|
||||
* const state = mm(pattern[, options]);
|
||||
* const state = mm.parse(pattern[, options]);
|
||||
* ```
|
||||
* @param {String} `glob`
|
||||
* @param {Object} `options`
|
||||
|
10
node_modules/micromatch/package.json
generated
vendored
10
node_modules/micromatch/package.json
generated
vendored
@ -1,7 +1,7 @@
|
||||
{
|
||||
"name": "micromatch",
|
||||
"description": "Glob matching for javascript/node.js. A replacement and faster alternative to minimatch and multimatch.",
|
||||
"version": "4.0.4",
|
||||
"version": "4.0.5",
|
||||
"homepage": "https://github.com/micromatch/micromatch",
|
||||
"author": "Jon Schlinkert (https://github.com/jonschlinkert)",
|
||||
"contributors": [
|
||||
@ -37,14 +37,14 @@
|
||||
"test": "mocha"
|
||||
},
|
||||
"dependencies": {
|
||||
"braces": "^3.0.1",
|
||||
"picomatch": "^2.2.3"
|
||||
"braces": "^3.0.2",
|
||||
"picomatch": "^2.3.1"
|
||||
},
|
||||
"devDependencies": {
|
||||
"fill-range": "^7.0.1",
|
||||
"gulp-format-md": "^2.0.0",
|
||||
"minimatch": "^3.0.4",
|
||||
"mocha": "^7.2.0",
|
||||
"minimatch": "^5.0.1",
|
||||
"mocha": "^9.2.2",
|
||||
"time-require": "github:jonschlinkert/time-require"
|
||||
},
|
||||
"keywords": [
|
||||
|
Reference in New Issue
Block a user