Skip to content

v41.0.0

Compare
Choose a tag to compare
@github-actions github-actions released this 11 Apr 12:20
· 1882 commits to main since this release
e9087eb

41.0.0 (2022-04-11)

BREAKING CHANGES

  • Update AWS CDK to v2

To update existing projects:

  • Update package.json:

    • Replace all @aws-cdk/* dependencies with the single aws-cdk-lib dependency
    • Add constructs dependency
    • Upgrade your aws-cdk version so that it matches the version of aws-cdk-lib
    • See peerDependencies for version numbers
  • Fix imports npx -p aws-cdk-migration rewrite-imports-v2 **/*.ts

  • Update cdk.json, removing deprecated feature flags such as @aws-cdk/core:enableStackNameDuplicates

  • Update snapshot tests:

    From:

    import { SynthUtils } from "@aws-cdk/assert";
    expect(SynthUtils.toCloudFormation(stack)).toMatchSnapshot();

    To:

    import { Template } from "aws-cdk-lib/assertions";
    expect(Template.fromStack(stack).toJSON()).toMatchSnapshot();