Can somebody explain to me why AWS moved away from...
# general
a
Can somebody explain to me why AWS moved away from scoped name like
@aws-cdk
to
aws-cdk-lib
? and also, why some other packages still uses
@aws-cdk
convention? Like
@aws-cdk/aws-apigatewayv2-authorizers-alpha
. Also, how they decide what to put inside
aws-cdk-lib
and what to put outside? It’s hard to track imports from the SST docs due this package segregation. Some examples doesn’t have all the
import
on top. I’m migrating from SST v0.55 to v1.1.1 and it’s driving me crazy 😂 .
t
I think the idea was if you just have a single package with all the CDK constructs it's simpler so people just need to install one thing and have access to everything
unfortunately for "alpha" packages they still isolate them in their own packages
a
I see, yes, should be easier having all into 1.
t
we do have an
sst add-cdk
command to add the right version but it's hard to keep that updated with all the different package manager setups people have
a
But why they are not using the standard
@
thing?
t
yeah idk why they didn't do
@aws-cdk/core
or whatever
a
Yeah.
t
and somehow they claimed the
constructs
package as well, I prefer scoped it's way mroe organized
a
Yes, that’s so weird.
Why would they create a top-level package like that?
Maybe they want that separated from AWS and CDK?
Due
constructs
has their own website and all… maybe like something bigger than just CDK.
Wish there is a place where all those decisions are shared… maybe there is.
t
I think they have plans for
constructs
to become an industry standard so people use that library to make their own cdk based constructs
for things outside of aws
I think terraform-cdk is already using it
a
Yes, I think the same thing.
Still would prefer
@constructs
😂
d
I'm glad I'm not the only that questions the aesthetics here.
a
@Dennis Dang haha, same feeling.