Skip to content

Commit c7c010a

Browse files
authored
Add upcoming end-of-support message in postinstall (#4599)
1 parent a274bcf commit c7c010a

File tree

3 files changed

+21
-1
lines changed

3 files changed

+21
-1
lines changed
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
{
2+
"type": "feature",
3+
"category": "Support",
4+
"description": "Add upcoming end-of-support message in postinstall"
5+
}

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -145,6 +145,7 @@
145145
"translate-api-test": "mocha scripts/lib/translate-api.spec.js",
146146
"typings-generator-test": "mocha scripts/lib/prune-shapes.spec.js",
147147
"helper-test": "mocha scripts/lib/test-helper.spec.js",
148-
"csm-functional-test": "mocha test/publisher/functional_test"
148+
"csm-functional-test": "mocha test/publisher/functional_test",
149+
"postinstall": "node scripts/warn-maintenance-mode.js"
149150
}
150151
}

scripts/warn-maintenance-mode.js

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
console.warn(
2+
'\n╔═════════════════════════════════════════════════╗'
3+
+ '\n║ The AWS SDK for JavaScript (v2) will reach ║'
4+
+ '\n║ -> maintenance mode on September 8, 2024. ║'
5+
+ '\n║ -> end-of-support on September 8, 2025. ║'
6+
+ '\n║ ║'
7+
+ '\n║ To continue receiving updates to AWS services, ║'
8+
+ '\n║ bug fixes, and security updates please upgrade ║'
9+
+ '\n║ to AWS SDK for JavaScript (v3). ║'
10+
+ '\n║ ║'
11+
+ '\n║ More info: https://a.co/cUPnyil ║'
12+
+ '\n╚═════════════════════════════════════════════════╝'
13+
+ '\n'
14+
);

0 commit comments

Comments
 (0)