aws-cdk: deprecation notices and module funding
See original GitHub issue❓ General Issue
deprecated deprecated deprecated
npm WARN deprecated @aws-cdk/yaml-cfn@1.98.0: This module is no longer supported and will be removed in a future release.
npm WARN deprecated request-promise-native@1.0.9: request-promise-native has been deprecated because it extends the now deprecated request package, see https://github.com/request/request/issues/3142
npm WARN deprecated urix@0.1.0: Please see https://github.com/lydell/urix#deprecated
npm WARN deprecated har-validator@5.1.5: this library is no longer supported
npm WARN deprecated resolve-url@0.2.1: https://github.com/lydell/resolve-url#deprecated
npm WARN deprecated request@2.88.2: request has been deprecated, see https://github.com/request/request/issues/3142
The Question
We aim to only use aws-cdk modules or nodejs native modules, however each time we do an npm install there is always some module that is either deprecated, or has a coder asking for funding.
Moving forward could you please include npm WARN deprecated
in your tests and try not to release code that generates warnings.
Also, and this is a bigger issue, when you use external (non aws) modules, could you please make sure that you can provide payments to go from AWS to any 3rd party devs who are looking for funding for their repos. It is a bad look not only for AWS to exploit the good will of non AWS coders, but also especially given the disparity between AWS cashflow and many independent coders. Indeed when an Enterprise wants to use the aws cdk cli, and presents a demo to a production board for PoC/Review, npm i with warnings and funding requests doesn’t go down well.
Environment
- **CDK CLI Version:all
- **Module Version:all
- **Node.js Version:all
- **OS:all
- **Language (Version):ts
Other information
Issue Analytics
- State:
- Created 2 years ago
- Reactions:3
- Comments:6 (2 by maintainers)
Top GitHub Comments
Closing a ticket before User Acceptance Testing is not desired behaviour.
As it stands the main feature for recommending the enterprise use of CDK is the ability to test constructs and stacks. The work around, means that the production use case for CDK is removed, along with a compelling reason to recommend CDK.
To encourage the type of behavior we require, what we will do moving forward is attempt to include AWS CDK/Cfn team KPIs in our enterprise SLA to encourage the following outcomes:
Regards,
Here are some sample dependency paths for each of the above:
Both
resolve-url
andurix
share a common path fromjest
tosource-map-resolve
.As @kayuapi mentioned (thanks for the research!), the remainder are brought in by
jsdom
, as well asnodeunit
andlerna
(vianode-gyp
). Thejsdom
PR looks to be well on its way. I’d love to finish the work to get rid of ournodeunit
dependency.lerna
might be a longer wait; it looks likenode-gyp@8
removes the dependency onrequest
, but it’s nested pretty far down the dependency chain.In short, I don’t think there’s an immediate “quick fix” to remove all deprecated dependencies, but we can take some steps to get incrementally closer, most immediate probably being removing our dependency on
nodeunit
throughout. However, this on its own won’t actually fix any of the above warnings.