ericcornelissen / depreman

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

Is there a simple configuration to ignore deprecations in all transitive dependencies #27

Closed ericcornelissen closed 3 weeks ago

ericcornelissen commented 1 month ago

I think a quite reasonable approach to managing deprecations is to worry only about deprecations in direct dependencies and not worry about deprecations in transitive dependencies (e.g. https://github.com/ljharb/ls-engines/pull/31#issuecomment-2453602215). So, is there a simple depreman configuration that can support this?

Intuitively I feel like the following configuration should achieve this goal (but I'm not sure it does as of v0.3.1):

{
  // for any direct dependency...
  "*": {
    // ...any transitive dependency is out of scope
    "*": {
      "#ignore": "don't worry about deprecation warnings in transitive dependencies"
    }
  }
}
ericcornelissen commented 3 weeks ago

The configuration that we landed on is:

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