aws / aws-pdk

The AWS PDK provides building blocks for common patterns together with development tools to manage and build your projects.
https://aws.github.io/aws-pdk/
Apache License 2.0
387 stars 77 forks source link

[BUG] constructs version is locked in the pdk peerDependencies #886

Closed varma415 closed 16 hours ago

varma415 commented 23 hours ago

Describe the bug

Since constructs version is locked in the pdk peerDependencies, this is causing version conflicts in our monorepo.

PDK should allow users to choose constructs version of their choice based on the semver convention like ~, ^ etc.,

Expected Behavior

"peerDependencies": { "@aws-cdk/aws-cognito-identitypool-alpha": "^2.163.1-alpha.0", "aws-cdk-lib": "^2.163.1", "cdk-nag": "2.31.0", "constructs": "^10.4.2", "projen": "^0.82.8" },

Current Behavior

"peerDependencies": { "@aws-cdk/aws-cognito-identitypool-alpha": "^2.163.1-alpha.0", "aws-cdk-lib": "^2.163.1", "cdk-nag": "2.31.0", "constructs": "10.4.2", "projen": "^0.82.8" },

Reproduction Steps

Open node_modules/@aws/pdk/package.json

Possible Solution

No response

Additional Information/Context

No response

PDK version used

0.25.8

What languages are you seeing this issue on?

Typescript

Environment details (OS name and version, etc.)

Amazon Linux 2

koduruprasanth commented 23 hours ago

This is similar to #830.

I observed that the fix implemented in #830 primarily addresses concerns with aws-cdk-lib, making it simpler to update its version. However, it seems that the version of constructs is still locked at 10.4.2, which may lead to similar limitations as highlighted in #830.