ericcornelissen / depreman

Manage npm deprecations
https://www.npmjs.com/package/depreman
GNU Affero General Public License v3.0
0 stars 0 forks source link

Adjust & improve wildcard behavior #29

Closed ericcornelissen closed 3 weeks ago

ericcornelissen commented 3 weeks ago

Relates to #22 Closes #26 Closes #27

Summary

Update the * to match 0-or-more in the sense that it also ignores the dependency in which it is present. Add + to match 1-or-more.

This adds a convenient notation for ignoring "x-and-its-entire-tree", namely:

{
  "foobar@1.0.0": {
    "*": {
      "#ignore": "ignore deprecation warnings in foo@1.0.0 and all its transitive dependencies"
    }
  }
}

It also enables a very simple configuration to ignore deprecation warnings for all transitive dependencies:

{
  "+": {
    "+": {
      "#ignore": "ignore deprecation warnings in all its transitive dependencies"
    }
  }
}