diff --git a/packages/core/src/submodules/client/emitWarningIfUnsupportedVersion.spec.ts b/packages/core/src/submodules/client/emitWarningIfUnsupportedVersion.spec.ts index 6ba4f23c6a714..e9b359661bb73 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(() => {}); @@ -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 0c0406d8f3512..306e55e32fed2 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` ); } };