-
Notifications
You must be signed in to change notification settings - Fork 4k
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
Change Alpha module versioning to support declaring version ranges #28558
Comments
Yes it could be painful when we Thank you for your feedback and we welcome more thoughts from the community. |
To add 5c to discussion. Current naming with |
Hi @humanzz, We can do this, but you are aware that we reserve the right to break That's the entire purpose of Yes, we could also bump major versions, but we have concerns that a large part of our audience might not entirely understand how CDK is at |
@rix0rrr oh yes of course am aware of that. I do have snapshot tests for my cdk app. So, the typical case I want to be able to do - for staying up to date
So, I do get alpha modules can introduce breaking changes - that's why they're not part of stable aws-cdk-lib. My sense is that given alpha is already part of the package name, and that documentation is clearly differentiating between the expectations of stable vs. alpha, that the alpha versioning scheme as it currently stands, does not provide much additional value. |
@rix0rrr One more addendum: dependabot doesn't allow pre-release version updates. So plus one for switching the versioning. See dependabot/dependabot-core#8161 |
Linking this issue up with the new dependabot issue since this is still an issue. |
+1 to reconsidering this. It's really painful when dealing with third-party constructs that rely on alpha packages. You're pretty much locked to a specific version of CDK because From the options originally posed in #15581 (comment), I'd love to see the |
Describe the feature
This is a request to change the versioning scheme for alpha modules to enable declaring version ranges to facilitate package updates.
Use Case
In my
package.json
, I declare the required CDK package versions using ranges to facilitate my later updates using commands likenpm outdated
andnpm update --save
(either manually or using automated tools e.g. Dependabot that do those updates).For example,
package.json
would have entries likeand then running
npm outdated
, I'd getProposed Solution
I did come across a previous discussion about this in #15581 and it seems like the decision was made to use
2.x.y-alpha.z
.As I saw in the comments that the team considered this as a 2-way door, I'm opening this request, to maybe have a new discussion, now that those alpha packages have been out there in the wild for a while, and that there might be additional insights.
My proposed solution - for the simple version range declaration I wanted to do - is to use
2.x.y
versioning scheme (even if they're not the same asaws-cdk-lib
).Other Information
No response
Acknowledgements
CDK version used
2.114.1
Environment details (OS name and version, etc.)
macOS
The text was updated successfully, but these errors were encountered: