Skip to content

feat!: add MappingSource to the refactor API #559

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

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

otaviomacedo
Copy link
Contributor

Introduce a new type, MappingSource, that allows the user to tell how they want the toolkit to get the mappings: computing it, using an explicitly provided one, or using the reverse of an explicitly provided one.

BREAKING CHANGE: This replaces three previous separate properties: exclude, mappings and revert with a single mappingSource.


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

Introduce a new type, `MappingSource`, that allows the user to tell how they want the toolkit to get the mappings: computing it, using an explicitly provided one, or using the reverse of an explicitly provided one.

This replaces three previous separate properties: `exclude`, `mappings` and `revert` with a single `mappingSource`.

This is a breaking change.
@aws-cdk-automation aws-cdk-automation requested a review from a team May 30, 2025 13:42
@github-actions github-actions bot added the p2 label May 30, 2025
Signed-off-by: github-actions <[email protected]>
@codecov-commenter
Copy link

codecov-commenter commented May 30, 2025

Codecov Report

Attention: Patch coverage is 8.33333% with 11 lines in your changes missing coverage. Please review.

Project coverage is 79.00%. Comparing base (a05a764) to head (534b488).
Report is 1 commits behind head on main.

Files with missing lines Patch % Lines
packages/aws-cdk/lib/cli/cdk-toolkit.ts 8.33% 11 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main     #559      +/-   ##
==========================================
- Coverage   79.09%   79.00%   -0.09%     
==========================================
  Files          47       47              
  Lines        7074     7082       +8     
  Branches      791      790       -1     
==========================================
  Hits         5595     5595              
- Misses       1460     1468       +8     
  Partials       19       19              
Flag Coverage Δ
suite.unit 79.00% <8.33%> (-0.09%) ⬇️

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.

Copy link
Contributor

@mrgrain mrgrain left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

just some small stuff

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