Commit 8758f3c
authored
fix(aws-cdk): warn when legacy exports are used (#931)
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
- Added a warning message that displays when legacy exports are imported
- The warning directs users to migrate to the official CDK Toolkit
Library
- Includes an environment variable `CDK_DISABLE_LEGACY_EXPORT_WARNING=1`
to disable the warning if needed
- References issue #310 for more information
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 license1 parent dd641b0 commit 8758f3c
1 file changed
+21
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
86 | 86 | | |
87 | 87 | | |
88 | 88 | | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
0 commit comments