@aws-sdk/core 3.974.2 → 3.974.4

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
@@ -1,5 +1,6 @@
1
1
  'use strict';
2
2
 
3
+ var utilRetry = require('@smithy/util-retry');
3
4
  var protocolHttp = require('@smithy/protocol-http');
4
5
  var core = require('@smithy/core');
5
6
  var propertyProvider = require('@smithy/property-provider');
@@ -54,6 +55,7 @@ function setCredentialFeature(credentials, feature, value) {
54
55
  return credentials;
55
56
  }
56
57
 
58
+ utilRetry.Retry.v2026 ||= typeof process === "object" && process.env?.AWS_NEW_RETRIES_2026 === "true";
57
59
  function setFeature(context, feature, value) {
58
60
  if (!context.__aws_sdk_context) {
59
61
  context.__aws_sdk_context = {
@@ -2152,7 +2154,6 @@ class AwsRestXmlProtocol extends protocols.HttpBindingProtocol {
2152
2154
  this.codec = new XmlCodec(settings);
2153
2155
  this.serializer = new protocols.HttpInterceptingShapeSerializer(this.codec.createSerializer(), settings);
2154
2156
  this.deserializer = new protocols.HttpInterceptingShapeDeserializer(this.codec.createDeserializer(), settings);
2155
- this.compositeErrorRegistry;
2156
2157
  }
2157
2158
  getPayloadCodec() {
2158
2159
  return this.codec;
@@ -1,5 +1,7 @@
1
1
  'use strict';
2
2
 
3
+ var utilRetry = require('@smithy/util-retry');
4
+
3
5
  const state = {
4
6
  warningEmitted: false,
5
7
  };
@@ -40,6 +42,7 @@ function setCredentialFeature(credentials, feature, value) {
40
42
  return credentials;
41
43
  }
42
44
 
45
+ utilRetry.Retry.v2026 ||= typeof process === "object" && process.env?.AWS_NEW_RETRIES_2026 === "true";
43
46
  function setFeature(context, feature, value) {
44
47
  if (!context.__aws_sdk_context) {
45
48
  context.__aws_sdk_context = {
@@ -1798,7 +1798,6 @@ class AwsRestXmlProtocol extends protocols.HttpBindingProtocol {
1798
1798
  this.codec = new XmlCodec(settings);
1799
1799
  this.serializer = new protocols.HttpInterceptingShapeSerializer(this.codec.createSerializer(), settings);
1800
1800
  this.deserializer = new protocols.HttpInterceptingShapeDeserializer(this.codec.createDeserializer(), settings);
1801
- this.compositeErrorRegistry;
1802
1801
  }
1803
1802
  getPayloadCodec() {
1804
1803
  return this.codec;
@@ -1,3 +1,5 @@
1
+ import { Retry } from "@smithy/util-retry";
2
+ Retry.v2026 ||= typeof process === "object" && process.env?.AWS_NEW_RETRIES_2026 === "true";
1
3
  export function setFeature(context, feature, value) {
2
4
  if (!context.__aws_sdk_context) {
3
5
  context.__aws_sdk_context = {
@@ -22,7 +22,6 @@ export class AwsRestXmlProtocol extends HttpBindingProtocol {
22
22
  this.codec = new XmlCodec(settings);
23
23
  this.serializer = new HttpInterceptingShapeSerializer(this.codec.createSerializer(), settings);
24
24
  this.deserializer = new HttpInterceptingShapeDeserializer(this.codec.createDeserializer(), settings);
25
- this.compositeErrorRegistry;
26
25
  }
27
26
  getPayloadCodec() {
28
27
  return this.codec;
@@ -1,7 +1,7 @@
1
1
  import type { AwsHandlerExecutionContext, AwsSdkFeatures } from "@aws-sdk/types";
2
2
  /**
3
- * @internal
4
3
  * Indicates to the request context that a given feature is active.
4
+ * @internal
5
5
  *
6
6
  * @param context - handler execution context.
7
7
  * @param feature - readable name of feature.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aws-sdk/core",
3
- "version": "3.974.2",
3
+ "version": "3.974.4",
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",
@@ -12,9 +12,10 @@
12
12
  "lint": "node ../../scripts/validation/submodules-linter.js --pkg core",
13
13
  "clean": "premove dist-cjs dist-es dist-types tsconfig.cjs.tsbuildinfo tsconfig.es.tsbuildinfo tsconfig.types.tsbuildinfo",
14
14
  "extract:docs": "api-extractor run --local",
15
+ "test:temp:retry": "SMITHY_NEW_RETRIES_2026=true node ./integ/retry.integ.spec && AWS_NEW_RETRIES_2026=true node ./integ/retry.integ.spec && node ./integ/retry.integ.spec",
15
16
  "test": "yarn g:vitest run",
16
17
  "test:watch": "yarn g:vitest watch",
17
- "test:integration": "yarn g:vitest run -c vitest.config.integ.mts",
18
+ "test:integration": "yarn g:vitest run -c vitest.config.integ.mts && yarn test:temp:retry",
18
19
  "test:integration:watch": "yarn g:vitest watch -c vitest.config.integ.mts"
19
20
  },
20
21
  "main": "./dist-cjs/index.js",
@@ -83,15 +84,16 @@
83
84
  "dependencies": {
84
85
  "@aws-sdk/types": "^3.973.8",
85
86
  "@aws-sdk/xml-builder": "^3.972.18",
86
- "@smithy/core": "^3.23.15",
87
+ "@smithy/core": "^3.23.16",
87
88
  "@smithy/node-config-provider": "^4.3.14",
88
89
  "@smithy/property-provider": "^4.2.14",
89
90
  "@smithy/protocol-http": "^5.3.14",
90
91
  "@smithy/signature-v4": "^5.3.14",
91
- "@smithy/smithy-client": "^4.12.11",
92
+ "@smithy/smithy-client": "^4.12.12",
92
93
  "@smithy/types": "^4.14.1",
93
94
  "@smithy/util-base64": "^4.3.2",
94
95
  "@smithy/util-middleware": "^4.2.14",
96
+ "@smithy/util-retry": "^4.3.3",
95
97
  "@smithy/util-utf8": "^4.2.2",
96
98
  "tslib": "^2.6.2"
97
99
  },