ericcornelissen / depreman

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

Convenient notation for ignoring "x-and-its-entire-tree" #26

Closed ericcornelissen closed 3 weeks ago

ericcornelissen commented 1 month ago

Sometimes you want to ignore a dependency and all its dependencies as well(example). The wildcard matcher (*) does not work for this scenario because it only allows for matching (grand)children of a dependency, not the dependency itself. Similarly, using "#ignore" on the top level dependency does not work because that would still report deprecations in its (grand)children.

Both of these are intentional:

I would prefer a solution that introduces an intuitive notation for ignoring a dependency and its entire tree, though I could be persuaded that an "#ignore" directive on a dependency should inherently ignore it's entire subtree.

ericcornelissen commented 3 weeks ago

The outcome of this issue was the following: