aws / aws-sdk-js

AWS SDK for JavaScript in the browser and Node.js
https://aws.amazon.com/developer/language/javascript/
Apache License 2.0
7.59k stars 1.55k forks source link

Add upcoming end-of-support message in postinstall #4599

Closed trivikr closed 6 months ago

trivikr commented 6 months ago

Post-install version of https://github.com/aws/aws-sdk-js/pull/4597

This message will appear on post-install, which is enabled by default

$ npm install aws-sdk

...
> aws-sdk@VERSION postinstall /Users/trivikr/workspace/test/node_modules/aws-sdk
> node scripts/warn-maintenance-mode.js

╔═════════════════════════════════════════════════╗
║ The AWS SDK for JavaScript (v2) will reach      ║
║ -> maintenance mode on September 8, 2024.       ║
║ -> end-of-support on September 8, 2025.         ║
║                                                 ║
║ To continue receiving updates to AWS services,  ║
║ bug fixes, and security updates please upgrade  ║
║ to AWS SDK for JavaScript (v3).                 ║
║                                                 ║
║ More info: https://a.co/cUPnyil                 ║
╚═════════════════════════════════════════════════╝
...

Testing

$ node scripts/warn-maintenance-mode.js

╔═════════════════════════════════════════════════╗
║ The AWS SDK for JavaScript (v2) will reach      ║
║ -> maintenance mode on September 8, 2024.       ║
║ -> end-of-support on September 8, 2025.         ║
║                                                 ║
║ To continue receiving updates to AWS services,  ║
║ bug fixes, and security updates please upgrade  ║
║ to AWS SDK for JavaScript (v3).                 ║
║                                                 ║
║ More info: https://a.co/cUPnyil                 ║
╚═════════════════════════════════════════════════╝
Checklist