Skip to content

Conversation

@mrgrain
Copy link
Contributor

@mrgrain mrgrain commented Nov 9, 2025

This PR adds a prominent deprecation warning for legacy exports from the aws-cdk package. These exports were never officially supported and are scheduled for removal after 2026-03-01.

Changes

The warning uses ANSI color codes to create a visually prominent yellow banner that clearly communicates the deprecation timeline and migration path.


By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license

Add a prominent warning message when legacy exports from the aws-cdk package are imported. The warning informs users that these exports were never officially supported and will be removed after 2026-03-01, directing them to migrate to the official CDK Toolkit Library.

The warning can be disabled by setting CDK_DISABLE_LEGACY_EXPORT_WARNING=1.
@codecov-commenter
Copy link

codecov-commenter commented Nov 9, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 83.01%. Comparing base (742ccfc) to head (e43eda9).
⚠️ Report is 1 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #931      +/-   ##
==========================================
- Coverage   83.44%   83.01%   -0.44%     
==========================================
  Files          71       71              
  Lines       10401    10401              
  Branches     1314     1302      -12     
==========================================
- Hits         8679     8634      -45     
- Misses       1684     1729      +45     
  Partials       38       38              
Flag Coverage Δ
suite.unit 83.01% <ø> (-0.44%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 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.

@mrgrain mrgrain changed the title feat(aws-cdk): add deprecation warning for legacy exports fix(aws-cdk): add deprecation warning for legacy exports Nov 9, 2025
@mrgrain mrgrain changed the title fix(aws-cdk): add deprecation warning for legacy exports fix(aws-cdk): warn when legacy exports are used Nov 9, 2025
@aws-cdk-automation aws-cdk-automation added this pull request to the merge queue Nov 10, 2025
Merged via the queue into main with commit 8758f3c Nov 10, 2025
40 checks passed
@aws-cdk-automation aws-cdk-automation deleted the mrgrain/feat/aws-cdk/legacy-export-deprecation-warning branch November 10, 2025 09:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants