Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
ericcornelissen opened this issue Nov 5, 2024 · 1 comment · Fixed by #29
Assignees
Labels
question Further information is requested

Comments

@ericcornelissen
Copy link
Owner

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. ljharb/ls-engines#31 (comment)). 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 ericcornelissen added the question Further information is requested label Nov 5, 2024
@ericcornelissen ericcornelissen self-assigned this Nov 9, 2024
@ericcornelissen
Copy link
Owner Author

The configuration that we landed on is:

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant