@aws-sdk/core 3.974.6 → 3.974.8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist-cjs/index.js CHANGED
@@ -19,15 +19,24 @@ const state = {
19
19
  warningEmitted: false,
20
20
  };
21
21
  const emitWarningIfUnsupportedVersion = (version) => {
22
- if (version && !state.warningEmitted && parseInt(version.substring(1, version.indexOf("."))) < 20) {
23
- state.warningEmitted = true;
24
- process.emitWarning(`NodeDeprecationWarning: The AWS SDK for JavaScript (v3) will
25
- no longer support Node.js ${version} in January 2026.
22
+ if (version && !state.warningEmitted) {
23
+ if (process.env.AWS_SDK_JS_NODE_VERSION_SUPPORT_WARNING_DISABLED === "true") {
24
+ state.warningEmitted = true;
25
+ return;
26
+ }
27
+ const userMajorVersion = parseInt(version.substring(1, version.indexOf(".")));
28
+ const vv = 22;
29
+ if (userMajorVersion < vv) {
30
+ state.warningEmitted = true;
31
+ process.emitWarning(`NodeVersionSupportWarning: The AWS SDK for JavaScript (v3)
32
+ versions published after the first week of January 2027
33
+ will require node >=${vv}. You are running node ${version}.
26
34
 
27
- To continue receiving updates to AWS services, bug fixes, and security
28
- updates please upgrade to a supported Node.js LTS version.
35
+ To continue receiving updates to AWS services, bug fixes,
36
+ and security updates please upgrade to node >=${vv}.
29
37
 
30
38
  More information can be found at: https://a.co/c895JFp`);
39
+ }
31
40
  }
32
41
  };
33
42
 
@@ -6,15 +6,24 @@ const state = {
6
6
  warningEmitted: false,
7
7
  };
8
8
  const emitWarningIfUnsupportedVersion = (version) => {
9
- if (version && !state.warningEmitted && parseInt(version.substring(1, version.indexOf("."))) < 20) {
10
- state.warningEmitted = true;
11
- process.emitWarning(`NodeDeprecationWarning: The AWS SDK for JavaScript (v3) will
12
- no longer support Node.js ${version} in January 2026.
9
+ if (version && !state.warningEmitted) {
10
+ if (process.env.AWS_SDK_JS_NODE_VERSION_SUPPORT_WARNING_DISABLED === "true") {
11
+ state.warningEmitted = true;
12
+ return;
13
+ }
14
+ const userMajorVersion = parseInt(version.substring(1, version.indexOf(".")));
15
+ const vv = 22;
16
+ if (userMajorVersion < vv) {
17
+ state.warningEmitted = true;
18
+ process.emitWarning(`NodeVersionSupportWarning: The AWS SDK for JavaScript (v3)
19
+ versions published after the first week of January 2027
20
+ will require node >=${vv}. You are running node ${version}.
13
21
 
14
- To continue receiving updates to AWS services, bug fixes, and security
15
- updates please upgrade to a supported Node.js LTS version.
22
+ To continue receiving updates to AWS services, bug fixes,
23
+ and security updates please upgrade to node >=${vv}.
16
24
 
17
25
  More information can be found at: https://a.co/c895JFp`);
26
+ }
18
27
  }
19
28
  };
20
29
 
@@ -2,14 +2,23 @@ export const state = {
2
2
  warningEmitted: false,
3
3
  };
4
4
  export const emitWarningIfUnsupportedVersion = (version) => {
5
- if (version && !state.warningEmitted && parseInt(version.substring(1, version.indexOf("."))) < 20) {
6
- state.warningEmitted = true;
7
- process.emitWarning(`NodeDeprecationWarning: The AWS SDK for JavaScript (v3) will
8
- no longer support Node.js ${version} in January 2026.
5
+ if (version && !state.warningEmitted) {
6
+ if (process.env.AWS_SDK_JS_NODE_VERSION_SUPPORT_WARNING_DISABLED === "true") {
7
+ state.warningEmitted = true;
8
+ return;
9
+ }
10
+ const userMajorVersion = parseInt(version.substring(1, version.indexOf(".")));
11
+ const vv = 22;
12
+ if (userMajorVersion < vv) {
13
+ state.warningEmitted = true;
14
+ process.emitWarning(`NodeVersionSupportWarning: The AWS SDK for JavaScript (v3)
15
+ versions published after the first week of January 2027
16
+ will require node >=${vv}. You are running node ${version}.
9
17
 
10
- To continue receiving updates to AWS services, bug fixes, and security
11
- updates please upgrade to a supported Node.js LTS version.
18
+ To continue receiving updates to AWS services, bug fixes,
19
+ and security updates please upgrade to node >=${vv}.
12
20
 
13
21
  More information can be found at: https://a.co/c895JFp`);
22
+ }
14
23
  }
15
24
  };
@@ -2,10 +2,9 @@ export declare const state: {
2
2
  warningEmitted: boolean;
3
3
  };
4
4
  /**
5
- * @internal
6
- *
7
5
  * Emits warning if the provided Node.js version string is
8
6
  * pending deprecation by AWS SDK JSv3.
7
+ * @internal
9
8
  *
10
9
  * @param version - The Node.js version string.
11
10
  */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aws-sdk/core",
3
- "version": "3.974.6",
3
+ "version": "3.974.8",
4
4
  "description": "Core functions & classes shared by multiple AWS SDK clients.",
5
5
  "scripts": {
6
6
  "build": "yarn lint && concurrently 'yarn:build:types' 'yarn:build:es' && yarn build:cjs",
@@ -83,7 +83,7 @@
83
83
  "license": "Apache-2.0",
84
84
  "dependencies": {
85
85
  "@aws-sdk/types": "^3.973.8",
86
- "@aws-sdk/xml-builder": "^3.972.20",
86
+ "@aws-sdk/xml-builder": "^3.972.22",
87
87
  "@smithy/core": "^3.23.17",
88
88
  "@smithy/node-config-provider": "^4.3.14",
89
89
  "@smithy/property-provider": "^4.2.14",
@@ -93,7 +93,7 @@
93
93
  "@smithy/types": "^4.14.1",
94
94
  "@smithy/util-base64": "^4.3.2",
95
95
  "@smithy/util-middleware": "^4.2.14",
96
- "@smithy/util-retry": "^4.3.5",
96
+ "@smithy/util-retry": "^4.3.6",
97
97
  "@smithy/util-utf8": "^4.2.2",
98
98
  "tslib": "^2.6.2"
99
99
  },