Skip to content

Warn about deprecated module on import - #3038

Open
toinehartman wants to merge 2 commits into
mainfrom
fix/warn-deprecated-module-on-import
Open

toinehartman wants to merge 2 commits into
mainfrom
fix/warn-deprecated-module-on-import

Conversation

@toinehartman

@toinehartman toinehartman commented Dec 4, 2026 •

Copy link
Copy Markdown
Member

Currently, a deprecated module only shows a warning on its own header. However, no warning is shown at the import/extend of such a module. This is especially unfortunate in the case of deprecated library modules; how should the user know they are deprecated?

Example (util::Progress)
afbeelding

This PR adds a warning when importing/extending a deprecated module.

Found while removing deprecated declarations from the standard library: #3037

@sonarqubecloud

sonarqubecloud Bot commented Dec 4, 2026

Copy link
Copy Markdown

@codecov

codecov Bot commented Dec 4, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 46%. Comparing base (b9b8b45) to head (f6d3a92).

Additional details and impacted files
@@           Coverage Diff           @@
##              main   #3038   +/-   ##
=======================================
- Coverage       46%     46%   -1%     
+ Complexity    6933    6930    -3     
=======================================
  Files          852     852           
  Lines        69363   69363           
  Branches     10112   10112           
=======================================
- Hits         32173   32162   -11     
- Misses       34756   34768   +12     
+ Partials      2434    2433    -1     

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@jurgenvinju

Copy link
Copy Markdown
Member

Cool. Can you also remove the warning from the deprecated module itself? It's not wrong to deprecate a module.

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants