From 3dadb26ae72b0d339e77d31f492e4789f6163ada Mon Sep 17 00:00:00 2001 From: Trivikram Kamat <16024985+trivikr@users.noreply.github.com> Date: Wed, 3 Dec 2025 21:41:09 +0000 Subject: [PATCH 1/2] chore(core): emit warning for Node.js 18.x end-of-support --- .../client/emitWarningIfUnsupportedVersion.spec.ts | 4 ++-- .../submodules/client/emitWarningIfUnsupportedVersion.ts | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/packages/core/src/submodules/client/emitWarningIfUnsupportedVersion.spec.ts b/packages/core/src/submodules/client/emitWarningIfUnsupportedVersion.spec.ts index 6ba4f23c6a71..49766bbf8b74 100644 --- a/packages/core/src/submodules/client/emitWarningIfUnsupportedVersion.spec.ts +++ b/packages/core/src/submodules/client/emitWarningIfUnsupportedVersion.spec.ts @@ -39,12 +39,12 @@ describe("emitWarningIfUnsupportedVersion", () => { expect(process.emitWarning).toHaveBeenCalledTimes(1); expect(process.emitWarning).toHaveBeenCalledWith( `NodeDeprecationWarning: The AWS SDK for JavaScript (v3) will -no longer support Node.js 16.x on January 6, 2025. +no longer support Node.js ${unsupportedVersion} in January 2026. To continue receiving updates to AWS services, bug fixes, and security updates please upgrade to a supported Node.js LTS version. -More information can be found at: https://a.co/74kJMmI` +More information can be found at: https://a.co/c895JFp` ); // Verify that the warning emits only once. diff --git a/packages/core/src/submodules/client/emitWarningIfUnsupportedVersion.ts b/packages/core/src/submodules/client/emitWarningIfUnsupportedVersion.ts index 0c0406d8f351..306e55e32fed 100644 --- a/packages/core/src/submodules/client/emitWarningIfUnsupportedVersion.ts +++ b/packages/core/src/submodules/client/emitWarningIfUnsupportedVersion.ts @@ -12,16 +12,16 @@ export const state = { * @param version - The Node.js version string. */ export const emitWarningIfUnsupportedVersion = (version: string) => { - if (version && !state.warningEmitted && parseInt(version.substring(1, version.indexOf("."))) < 18) { + if (version && !state.warningEmitted && parseInt(version.substring(1, version.indexOf("."))) < 20) { state.warningEmitted = true; process.emitWarning( `NodeDeprecationWarning: The AWS SDK for JavaScript (v3) will -no longer support Node.js 16.x on January 6, 2025. +no longer support Node.js ${version} in January 2026. To continue receiving updates to AWS services, bug fixes, and security updates please upgrade to a supported Node.js LTS version. -More information can be found at: https://a.co/74kJMmI` +More information can be found at: https://a.co/c895JFp` ); } }; From 39e0cf8cfe2b37980e1ea0e3f57fa62a6b7f849e Mon Sep 17 00:00:00 2001 From: Trivikram Kamat <16024985+trivikr@users.noreply.github.com> Date: Wed, 3 Dec 2025 23:01:52 +0000 Subject: [PATCH 2/2] test(core): use 20.0.0 as supported version in emitWarningIfUnsupportedVersion --- .../submodules/client/emitWarningIfUnsupportedVersion.spec.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/core/src/submodules/client/emitWarningIfUnsupportedVersion.spec.ts b/packages/core/src/submodules/client/emitWarningIfUnsupportedVersion.spec.ts index 49766bbf8b74..e9b359661bb7 100644 --- a/packages/core/src/submodules/client/emitWarningIfUnsupportedVersion.spec.ts +++ b/packages/core/src/submodules/client/emitWarningIfUnsupportedVersion.spec.ts @@ -4,7 +4,7 @@ import { emitWarningIfUnsupportedVersion, state } from "./emitWarningIfUnsupport describe("emitWarningIfUnsupportedVersion", () => { const emitWarning = process.emitWarning; - const supportedVersion = "18.0.0"; + const supportedVersion = "20.0.0"; beforeEach(() => {});