Skip to content

chore: release packages#1699

Merged
toddhainsworth merged 1 commit into
mainfrom
changeset-release/main
Jun 5, 2026
Merged

chore: release packages#1699
toddhainsworth merged 1 commit into
mainfrom
changeset-release/main

Conversation

@github-actions

@github-actions github-actions Bot commented May 31, 2026

Copy link
Copy Markdown
Contributor

This PR was opened by the Changesets release GitHub action. When you're ready to do a release, you can merge this and the packages will be published to npm automatically. If you're not ready to do a release yet, that's fine, whenever you add more changesets to main, this PR will be updated.

Releases

@aligent/cdk-aspects@0.6.4

Patch Changes

  • #1698 c9f490f Thanks @toddhainsworth! - Move aws-cdk-lib and constructs from dependencies to peerDependencies, matching the convention used by every @aligent/cdk-* construct package.

    As regular dependencies, a consumer whose own aws-cdk-lib resolved to a different version ended up with two copies in the tree. The aspects' instanceof CfnResource checks compared against the nested copy's class, so visit() returned early for every node — aspects silently became a no-op (no prefixes, no defaults, no checks) with a valid-but-untouched synth. Declaring them as peers guarantees a single shared instance with the consumer.

  • #1702 49f7a78 Thanks @toddhainsworth! - Fix ResourcePrefixAspect to skip CDK-managed singleton/framework resources (BucketDeployment handler, LogRetention, S3AutoDeleteObjects, and cr.Provider framework lambdas) and their nested children (IAM service roles, log groups) instead of pinning deterministic physical names onto them.

    These singletons share a fixed logical id across every stack, so a deterministic prefixed name collapses to one value per prefix scope. That removed CloudFormation's per-stack and per-creation uniqueness and caused two deploy failures:

    • Cross-stack IAM role collision — two BucketDeployment-using stacks in the same stage received the same account-global RoleName, so the second stack failed with ... already exists.
    • Orphaned /aws/lambda log group collision on retry — a failed deploy orphaned the service-created log group, and the deterministic function name regenerated the identical name, wedging every subsequent deploy on AWS::Logs::LogGroup ... already exists.

    The aspect now leaves these resources CloudFormation-named, matching the singleton-skip behaviour MicroserviceChecks already applies.

@github-actions github-actions Bot requested a review from a team as a code owner May 31, 2026 22:12
@github-actions github-actions Bot force-pushed the changeset-release/main branch from 7ae7d6d to 60a9cfb Compare June 5, 2026 05:13
@toddhainsworth toddhainsworth merged commit ba7735c into main Jun 5, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants