@aws-sdk/client-dynamodb 3.1025.0 → 3.1026.0

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.
@@ -7,6 +7,7 @@ const dynamodb_codec_1 = require("@aws-sdk/dynamodb-codec");
7
7
  const smithy_client_1 = require("@smithy/smithy-client");
8
8
  const url_parser_1 = require("@smithy/url-parser");
9
9
  const util_base64_1 = require("@smithy/util-base64");
10
+ const util_retry_1 = require("@smithy/util-retry");
10
11
  const util_utf8_1 = require("@smithy/util-utf8");
11
12
  const httpAuthSchemeProvider_1 = require("./auth/httpAuthSchemeProvider");
12
13
  const endpointResolver_1 = require("./endpoint/endpointResolver");
@@ -37,6 +38,12 @@ const getRuntimeConfig = (config) => {
37
38
  serviceTarget: "DynamoDB_20120810",
38
39
  jsonCodec: new dynamodb_codec_1.DynamoDBJsonCodec(),
39
40
  },
41
+ retryStrategy: config?.retryStrategy ?? (config?.maxAttempts == null && config?.retryMode == null && util_retry_1.Retry.v2026
42
+ ? new util_retry_1.StandardRetryStrategy({
43
+ maxAttempts: 4,
44
+ baseDelay: 25,
45
+ })
46
+ : undefined),
40
47
  serviceId: config?.serviceId ?? "DynamoDB",
41
48
  urlParser: config?.urlParser ?? url_parser_1.parseUrl,
42
49
  utf8Decoder: config?.utf8Decoder ?? util_utf8_1.fromUtf8,
@@ -4,6 +4,7 @@ import { DynamoDBJsonCodec } from "@aws-sdk/dynamodb-codec";
4
4
  import { NoOpLogger } from "@smithy/smithy-client";
5
5
  import { parseUrl } from "@smithy/url-parser";
6
6
  import { fromBase64, toBase64 } from "@smithy/util-base64";
7
+ import { Retry, StandardRetryStrategy } from "@smithy/util-retry";
7
8
  import { fromUtf8, toUtf8 } from "@smithy/util-utf8";
8
9
  import { defaultDynamoDBHttpAuthSchemeProvider } from "./auth/httpAuthSchemeProvider";
9
10
  import { defaultEndpointResolver } from "./endpoint/endpointResolver";
@@ -34,6 +35,12 @@ export const getRuntimeConfig = (config) => {
34
35
  serviceTarget: "DynamoDB_20120810",
35
36
  jsonCodec: new DynamoDBJsonCodec(),
36
37
  },
38
+ retryStrategy: config?.retryStrategy ?? (config?.maxAttempts == null && config?.retryMode == null && Retry.v2026
39
+ ? new StandardRetryStrategy({
40
+ maxAttempts: 4,
41
+ baseDelay: 25,
42
+ })
43
+ : undefined),
37
44
  serviceId: config?.serviceId ?? "DynamoDB",
38
45
  urlParser: config?.urlParser ?? parseUrl,
39
46
  utf8Decoder: config?.utf8Decoder ?? fromUtf8,
@@ -38,7 +38,7 @@ export declare const getRuntimeConfig: (config: DynamoDBClientConfig) => {
38
38
  extensions: import("./runtimeExtensions").RuntimeExtension[];
39
39
  customUserAgent?: string | import("@smithy/types").UserAgent;
40
40
  userAgentAppId?: string | undefined | import("@smithy/types").Provider<string | undefined>;
41
- retryStrategy?: import("@smithy/types").RetryStrategy | import("@smithy/types").RetryStrategyV2;
41
+ retryStrategy: import("@smithy/types").RetryStrategy | import("@smithy/types").RetryStrategyV2;
42
42
  endpoint?: ((string | import("@smithy/types").Endpoint | import("@smithy/types").Provider<import("@smithy/types").Endpoint> | import("@smithy/types").EndpointV2 | import("@smithy/types").Provider<import("@smithy/types").EndpointV2>) & (string | import("@smithy/types").Provider<string> | import("@smithy/types").Endpoint | import("@smithy/types").Provider<import("@smithy/types").Endpoint> | import("@smithy/types").EndpointV2 | import("@smithy/types").Provider<import("@smithy/types").EndpointV2>)) | undefined;
43
43
  endpointProvider: (endpointParams: import("./endpoint/EndpointParameters").EndpointParameters, context?: {
44
44
  logger?: import("@smithy/types").Logger;
@@ -39,7 +39,7 @@ export declare const getRuntimeConfig: (config: DynamoDBClientConfig) => {
39
39
  logger: import("@smithy/types").Logger;
40
40
  extensions: import("./runtimeExtensions").RuntimeExtension[];
41
41
  customUserAgent?: string | import("@smithy/types").UserAgent;
42
- retryStrategy?: import("@smithy/types").RetryStrategy | import("@smithy/types").RetryStrategyV2;
42
+ retryStrategy: import("@smithy/types").RetryStrategy | import("@smithy/types").RetryStrategyV2;
43
43
  endpoint?: ((string | import("@smithy/types").Endpoint | import("@smithy/types").Provider<import("@smithy/types").Endpoint> | import("@smithy/types").EndpointV2 | import("@smithy/types").Provider<import("@smithy/types").EndpointV2>) & (string | import("@smithy/types").Provider<string> | import("@smithy/types").Endpoint | import("@smithy/types").Provider<import("@smithy/types").Endpoint> | import("@smithy/types").EndpointV2 | import("@smithy/types").Provider<import("@smithy/types").EndpointV2>)) | undefined;
44
44
  endpointProvider: (endpointParams: import("./endpoint/EndpointParameters").EndpointParameters, context?: {
45
45
  logger?: import("@smithy/types").Logger;
@@ -37,7 +37,7 @@ export declare const getRuntimeConfig: (config: DynamoDBClientConfig) => {
37
37
  endpointDiscoveryEnabledProvider: import("@smithy/types").Provider<boolean | undefined>;
38
38
  customUserAgent?: string | import("@smithy/types").UserAgent;
39
39
  userAgentAppId?: string | undefined | import("@smithy/types").Provider<string | undefined>;
40
- retryStrategy?: import("@smithy/types").RetryStrategy | import("@smithy/types").RetryStrategyV2;
40
+ retryStrategy: import("@smithy/types").RetryStrategy | import("@smithy/types").RetryStrategyV2;
41
41
  endpoint?: ((string | import("@smithy/types").Endpoint | import("@smithy/types").Provider<import("@smithy/types").Endpoint> | import("@smithy/types").EndpointV2 | import("@smithy/types").Provider<import("@smithy/types").EndpointV2>) & (string | import("@smithy/types").Provider<string> | import("@smithy/types").Endpoint | import("@smithy/types").Provider<import("@smithy/types").Endpoint> | import("@smithy/types").EndpointV2 | import("@smithy/types").Provider<import("@smithy/types").EndpointV2>)) | undefined;
42
42
  endpointProvider: (endpointParams: import("./endpoint/EndpointParameters").EndpointParameters, context?: {
43
43
  logger?: import("@smithy/types").Logger;
@@ -20,6 +20,7 @@ export declare const getRuntimeConfig: (config: DynamoDBClientConfig) => {
20
20
  [setting: string]: unknown;
21
21
  defaultNamespace?: string;
22
22
  };
23
+ retryStrategy: import("@smithy/types").RetryStrategy | import("@smithy/types").RetryStrategyV2 | undefined;
23
24
  serviceId: string;
24
25
  urlParser: import("@smithy/types").UrlParser;
25
26
  utf8Decoder: import("@smithy/types").Decoder;
@@ -59,7 +59,7 @@ export declare const getRuntimeConfig: (config: DynamoDBClientConfig) => {
59
59
  | string
60
60
  | undefined
61
61
  | import("@smithy/types").Provider<string | undefined>;
62
- retryStrategy?:
62
+ retryStrategy:
63
63
  | import("@smithy/types").RetryStrategy
64
64
  | import("@smithy/types").RetryStrategyV2;
65
65
  endpoint?:
@@ -57,7 +57,7 @@ export declare const getRuntimeConfig: (config: DynamoDBClientConfig) => {
57
57
  logger: import("@smithy/types").Logger;
58
58
  extensions: import("./runtimeExtensions").RuntimeExtension[];
59
59
  customUserAgent?: string | import("@smithy/types").UserAgent;
60
- retryStrategy?:
60
+ retryStrategy:
61
61
  | import("@smithy/types").RetryStrategy
62
62
  | import("@smithy/types").RetryStrategyV2;
63
63
  endpoint?:
@@ -63,7 +63,7 @@ export declare const getRuntimeConfig: (config: DynamoDBClientConfig) => {
63
63
  | string
64
64
  | undefined
65
65
  | import("@smithy/types").Provider<string | undefined>;
66
- retryStrategy?:
66
+ retryStrategy:
67
67
  | import("@smithy/types").RetryStrategy
68
68
  | import("@smithy/types").RetryStrategyV2;
69
69
  endpoint?:
@@ -23,6 +23,10 @@ export declare const getRuntimeConfig: (config: DynamoDBClientConfig) => {
23
23
  [setting: string]: unknown;
24
24
  defaultNamespace?: string;
25
25
  };
26
+ retryStrategy:
27
+ | import("@smithy/types").RetryStrategy
28
+ | import("@smithy/types").RetryStrategyV2
29
+ | undefined;
26
30
  serviceId: string;
27
31
  urlParser: import("@smithy/types").UrlParser;
28
32
  utf8Decoder: import("@smithy/types").Decoder;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@aws-sdk/client-dynamodb",
3
3
  "description": "AWS SDK for JavaScript Dynamodb Client for Node.js, Browser and React Native",
4
- "version": "3.1025.0",
4
+ "version": "3.1026.0",
5
5
  "scripts": {
6
6
  "build": "concurrently 'yarn:build:types' 'yarn:build:es' && yarn build:cjs",
7
7
  "build:cjs": "node ../../scripts/compilation/inline client-dynamodb",
@@ -27,49 +27,49 @@
27
27
  "dependencies": {
28
28
  "@aws-crypto/sha256-browser": "5.2.0",
29
29
  "@aws-crypto/sha256-js": "5.2.0",
30
- "@aws-sdk/core": "^3.973.26",
31
- "@aws-sdk/credential-provider-node": "^3.972.29",
32
- "@aws-sdk/dynamodb-codec": "^3.972.27",
33
- "@aws-sdk/middleware-endpoint-discovery": "^3.972.9",
34
- "@aws-sdk/middleware-host-header": "^3.972.8",
35
- "@aws-sdk/middleware-logger": "^3.972.8",
36
- "@aws-sdk/middleware-recursion-detection": "^3.972.9",
37
- "@aws-sdk/middleware-user-agent": "^3.972.28",
38
- "@aws-sdk/region-config-resolver": "^3.972.10",
39
- "@aws-sdk/types": "^3.973.6",
40
- "@aws-sdk/util-endpoints": "^3.996.5",
41
- "@aws-sdk/util-user-agent-browser": "^3.972.8",
42
- "@aws-sdk/util-user-agent-node": "^3.973.14",
43
- "@smithy/config-resolver": "^4.4.13",
44
- "@smithy/core": "^3.23.13",
45
- "@smithy/fetch-http-handler": "^5.3.15",
46
- "@smithy/hash-node": "^4.2.12",
47
- "@smithy/invalid-dependency": "^4.2.12",
48
- "@smithy/middleware-content-length": "^4.2.12",
49
- "@smithy/middleware-endpoint": "^4.4.28",
50
- "@smithy/middleware-retry": "^4.4.46",
51
- "@smithy/middleware-serde": "^4.2.16",
52
- "@smithy/middleware-stack": "^4.2.12",
53
- "@smithy/node-config-provider": "^4.3.12",
54
- "@smithy/node-http-handler": "^4.5.1",
55
- "@smithy/protocol-http": "^5.3.12",
56
- "@smithy/smithy-client": "^4.12.8",
57
- "@smithy/types": "^4.13.1",
58
- "@smithy/url-parser": "^4.2.12",
30
+ "@aws-sdk/core": "^3.973.27",
31
+ "@aws-sdk/credential-provider-node": "^3.972.30",
32
+ "@aws-sdk/dynamodb-codec": "^3.972.28",
33
+ "@aws-sdk/middleware-endpoint-discovery": "^3.972.10",
34
+ "@aws-sdk/middleware-host-header": "^3.972.9",
35
+ "@aws-sdk/middleware-logger": "^3.972.9",
36
+ "@aws-sdk/middleware-recursion-detection": "^3.972.10",
37
+ "@aws-sdk/middleware-user-agent": "^3.972.29",
38
+ "@aws-sdk/region-config-resolver": "^3.972.11",
39
+ "@aws-sdk/types": "^3.973.7",
40
+ "@aws-sdk/util-endpoints": "^3.996.6",
41
+ "@aws-sdk/util-user-agent-browser": "^3.972.9",
42
+ "@aws-sdk/util-user-agent-node": "^3.973.15",
43
+ "@smithy/config-resolver": "^4.4.14",
44
+ "@smithy/core": "^3.23.14",
45
+ "@smithy/fetch-http-handler": "^5.3.16",
46
+ "@smithy/hash-node": "^4.2.13",
47
+ "@smithy/invalid-dependency": "^4.2.13",
48
+ "@smithy/middleware-content-length": "^4.2.13",
49
+ "@smithy/middleware-endpoint": "^4.4.29",
50
+ "@smithy/middleware-retry": "^4.5.0",
51
+ "@smithy/middleware-serde": "^4.2.17",
52
+ "@smithy/middleware-stack": "^4.2.13",
53
+ "@smithy/node-config-provider": "^4.3.13",
54
+ "@smithy/node-http-handler": "^4.5.2",
55
+ "@smithy/protocol-http": "^5.3.13",
56
+ "@smithy/smithy-client": "^4.12.9",
57
+ "@smithy/types": "^4.14.0",
58
+ "@smithy/url-parser": "^4.2.13",
59
59
  "@smithy/util-base64": "^4.3.2",
60
60
  "@smithy/util-body-length-browser": "^4.2.2",
61
61
  "@smithy/util-body-length-node": "^4.2.3",
62
- "@smithy/util-defaults-mode-browser": "^4.3.44",
63
- "@smithy/util-defaults-mode-node": "^4.2.48",
64
- "@smithy/util-endpoints": "^3.3.3",
65
- "@smithy/util-middleware": "^4.2.12",
66
- "@smithy/util-retry": "^4.2.13",
62
+ "@smithy/util-defaults-mode-browser": "^4.3.45",
63
+ "@smithy/util-defaults-mode-node": "^4.2.49",
64
+ "@smithy/util-endpoints": "^3.3.4",
65
+ "@smithy/util-middleware": "^4.2.13",
66
+ "@smithy/util-retry": "^4.3.0",
67
67
  "@smithy/util-utf8": "^4.2.2",
68
- "@smithy/util-waiter": "^4.2.14",
68
+ "@smithy/util-waiter": "^4.2.15",
69
69
  "tslib": "^2.6.2"
70
70
  },
71
71
  "devDependencies": {
72
- "@smithy/snapshot-testing": "^2.0.4",
72
+ "@smithy/snapshot-testing": "^2.0.5",
73
73
  "@tsconfig/node20": "20.1.8",
74
74
  "@types/node": "^20.14.8",
75
75
  "concurrently": "7.0.0",