🆕 CDK Library Versions #112
jamie-lynch
started this conversation in
Architecture Decisions
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
The AWS CDK is provided through a number of libraries. To play nicely together, the same version of each library must be imported and when this is not the case, the error messages can be quite cryptic. Those libraries are included in two places - both in this library and (in most cases) in any projects that implement this library. Whilst the maintainers of this library are likely to be aware of the requirements and recognise any errors, users of the library may not be.
This may need two different approaches for each situation.
For contributors to this library, it should be easier to keep all of the AWS CDK library versions in line and if that is not the case, have a more explicit error message.
For users of this library, any AWS CDK libraries installed must be the same version used in the version of this library that they have installed. Currently this would require them to check the
package.json
of this project to get the version number.Further to this, the default behaviour when adding new libraries via either
npm
oryarn
is for it to add the most recent (stable) version, which may not align with the existing libraries.Can we improve the developer experience in this area?
Beta Was this translation helpful? Give feedback.
All reactions