@aws-sdk/client-dynamodb 3.1059.0 → 3.1061.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.
package/dist-cjs/index.js CHANGED
@@ -98,7 +98,7 @@ class DynamoDBClient extends client.Client {
98
98
  const _config_1 = resolveClientEndpointParameters(_config_0);
99
99
  const _config_2 = accountIdEndpoint.resolveAccountIdEndpointModeConfig(_config_1);
100
100
  const _config_3 = client$1.resolveUserAgentConfig(_config_2);
101
- const _config_4 = retry.resolveRetryConfig(_config_3);
101
+ const _config_4 = retry.resolveRetryConfig(_config_3, { defaultBaseDelay: retry.Retry.v2026 ? 25 : undefined, defaultMaxAttempts: retry.Retry.v2026 ? 4 : undefined });
102
102
  const _config_5 = config.resolveRegionConfig(_config_4);
103
103
  const _config_6 = client$1.resolveHostHeaderConfig(_config_5);
104
104
  const _config_7 = endpoints.resolveEndpointConfig(_config_6);
@@ -26,7 +26,7 @@ const getRuntimeConfig = (config) => {
26
26
  credentialDefaultProvider: config?.credentialDefaultProvider ?? ((_) => () => Promise.reject(new Error("Credential is missing"))),
27
27
  defaultUserAgentProvider: config?.defaultUserAgentProvider ?? (0, client_1.createDefaultUserAgentProvider)({ serviceId: clientSharedValues.serviceId, clientVersion: package_json_1.default.version }),
28
28
  endpointDiscoveryEnabledProvider: config?.endpointDiscoveryEnabledProvider ?? (() => Promise.resolve(undefined)),
29
- maxAttempts: config?.maxAttempts ?? retry_1.DEFAULT_MAX_ATTEMPTS,
29
+ maxAttempts: config?.maxAttempts ?? (retry_1.Retry.v2026 ? 4 : retry_1.DEFAULT_MAX_ATTEMPTS),
30
30
  region: config?.region ?? (0, client_2.invalidProvider)("Region is missing"),
31
31
  requestHandler: fetch_http_handler_1.FetchHttpHandler.create(config?.requestHandler ?? defaultConfigProvider),
32
32
  retryMode: config?.retryMode ?? (async () => (await defaultConfigProvider()).retryMode || retry_1.DEFAULT_RETRY_MODE),
@@ -35,7 +35,7 @@ const getRuntimeConfig = (config) => {
35
35
  credentialDefaultProvider: config?.credentialDefaultProvider ?? credential_provider_node_1.defaultProvider,
36
36
  defaultUserAgentProvider: config?.defaultUserAgentProvider ?? (0, client_1.createDefaultUserAgentProvider)({ serviceId: clientSharedValues.serviceId, clientVersion: package_json_1.default.version }),
37
37
  endpointDiscoveryEnabledProvider: config?.endpointDiscoveryEnabledProvider ?? (0, config_1.loadConfig)(middleware_endpoint_discovery_1.NODE_ENDPOINT_DISCOVERY_CONFIG_OPTIONS, loaderConfig),
38
- maxAttempts: config?.maxAttempts ?? (0, config_1.loadConfig)(retry_1.NODE_MAX_ATTEMPT_CONFIG_OPTIONS, config),
38
+ maxAttempts: config?.maxAttempts ?? (0, config_1.loadConfig)(retry_1.Retry.v2026 ? { ...retry_1.NODE_MAX_ATTEMPT_CONFIG_OPTIONS, default: 4 } : retry_1.NODE_MAX_ATTEMPT_CONFIG_OPTIONS, config),
39
39
  region: config?.region ?? (0, config_1.loadConfig)(config_1.NODE_REGION_CONFIG_OPTIONS, { ...config_1.NODE_REGION_CONFIG_FILE_OPTIONS, ...loaderConfig }),
40
40
  requestHandler: node_http_handler_1.NodeHttpHandler.create(config?.requestHandler ?? defaultConfigProvider),
41
41
  retryMode: config?.retryMode ??
@@ -6,7 +6,6 @@ const protocols_1 = require("@aws-sdk/core/protocols");
6
6
  const dynamodb_codec_1 = require("@aws-sdk/dynamodb-codec");
7
7
  const client_1 = require("@smithy/core/client");
8
8
  const protocols_2 = require("@smithy/core/protocols");
9
- const retry_1 = require("@smithy/core/retry");
10
9
  const serde_1 = require("@smithy/core/serde");
11
10
  const httpAuthSchemeProvider_1 = require("./auth/httpAuthSchemeProvider");
12
11
  const endpointResolver_1 = require("./endpoint/endpointResolver");
@@ -37,12 +36,6 @@ const getRuntimeConfig = (config) => {
37
36
  serviceTarget: "DynamoDB_20120810",
38
37
  jsonCodec: new dynamodb_codec_1.DynamoDBJsonCodec(),
39
38
  },
40
- retryStrategy: config?.retryStrategy ?? (config?.maxAttempts == null && config?.retryMode == null && retry_1.Retry.v2026
41
- ? new retry_1.StandardRetryStrategy({
42
- maxAttempts: 4,
43
- baseDelay: 25,
44
- })
45
- : undefined),
46
39
  serviceId: config?.serviceId ?? "DynamoDB",
47
40
  urlParser: config?.urlParser ?? protocols_2.parseUrl,
48
41
  utf8Decoder: config?.utf8Decoder ?? serde_1.fromUtf8,
@@ -6,7 +6,7 @@ import { Client as __Client, } from "@smithy/core/client";
6
6
  import { resolveRegionConfig } from "@smithy/core/config";
7
7
  import { resolveEndpointConfig } from "@smithy/core/endpoints";
8
8
  import { getContentLengthPlugin } from "@smithy/core/protocols";
9
- import { getRetryPlugin, resolveRetryConfig, } from "@smithy/core/retry";
9
+ import { getRetryPlugin, resolveRetryConfig, Retry, } from "@smithy/core/retry";
10
10
  import { getSchemaSerdePlugin } from "@smithy/core/schema";
11
11
  import { defaultDynamoDBHttpAuthSchemeParametersProvider, resolveHttpAuthSchemeConfig, } from "./auth/httpAuthSchemeProvider";
12
12
  import { DescribeEndpointsCommand, } from "./commands/DescribeEndpointsCommand";
@@ -23,7 +23,7 @@ export class DynamoDBClient extends __Client {
23
23
  const _config_1 = resolveClientEndpointParameters(_config_0);
24
24
  const _config_2 = resolveAccountIdEndpointModeConfig(_config_1);
25
25
  const _config_3 = resolveUserAgentConfig(_config_2);
26
- const _config_4 = resolveRetryConfig(_config_3);
26
+ const _config_4 = resolveRetryConfig(_config_3, { defaultBaseDelay: Retry.v2026 ? 25 : undefined, defaultMaxAttempts: Retry.v2026 ? 4 : undefined });
27
27
  const _config_5 = resolveRegionConfig(_config_4);
28
28
  const _config_6 = resolveHostHeaderConfig(_config_5);
29
29
  const _config_7 = resolveEndpointConfig(_config_6);
@@ -4,7 +4,7 @@ import { DEFAULT_ACCOUNT_ID_ENDPOINT_MODE } from "@aws-sdk/core/account-id-endpo
4
4
  import { createDefaultUserAgentProvider } from "@aws-sdk/core/client";
5
5
  import { invalidProvider, loadConfigsForDefaultMode } from "@smithy/core/client";
6
6
  import { DEFAULT_USE_DUALSTACK_ENDPOINT, DEFAULT_USE_FIPS_ENDPOINT, resolveDefaultsModeConfig, } from "@smithy/core/config";
7
- import { DEFAULT_MAX_ATTEMPTS, DEFAULT_RETRY_MODE } from "@smithy/core/retry";
7
+ import { DEFAULT_MAX_ATTEMPTS, DEFAULT_RETRY_MODE, Retry } from "@smithy/core/retry";
8
8
  import { calculateBodyLength } from "@smithy/core/serde";
9
9
  import { FetchHttpHandler as RequestHandler, streamCollector } from "@smithy/fetch-http-handler";
10
10
  import { getRuntimeConfig as getSharedRuntimeConfig } from "./runtimeConfig.shared";
@@ -22,7 +22,7 @@ export const getRuntimeConfig = (config) => {
22
22
  credentialDefaultProvider: config?.credentialDefaultProvider ?? ((_) => () => Promise.reject(new Error("Credential is missing"))),
23
23
  defaultUserAgentProvider: config?.defaultUserAgentProvider ?? createDefaultUserAgentProvider({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }),
24
24
  endpointDiscoveryEnabledProvider: config?.endpointDiscoveryEnabledProvider ?? (() => Promise.resolve(undefined)),
25
- maxAttempts: config?.maxAttempts ?? DEFAULT_MAX_ATTEMPTS,
25
+ maxAttempts: config?.maxAttempts ?? (Retry.v2026 ? 4 : DEFAULT_MAX_ATTEMPTS),
26
26
  region: config?.region ?? invalidProvider("Region is missing"),
27
27
  requestHandler: RequestHandler.create(config?.requestHandler ?? defaultConfigProvider),
28
28
  retryMode: config?.retryMode ?? (async () => (await defaultConfigProvider()).retryMode || DEFAULT_RETRY_MODE),
@@ -6,7 +6,7 @@ import { defaultProvider as credentialDefaultProvider } from "@aws-sdk/credentia
6
6
  import { NODE_ENDPOINT_DISCOVERY_CONFIG_OPTIONS } from "@aws-sdk/middleware-endpoint-discovery";
7
7
  import { emitWarningIfUnsupportedVersion, loadConfigsForDefaultMode } from "@smithy/core/client";
8
8
  import { loadConfig as loadNodeConfig, NODE_REGION_CONFIG_FILE_OPTIONS, NODE_REGION_CONFIG_OPTIONS, NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS, NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS, resolveDefaultsModeConfig, } from "@smithy/core/config";
9
- import { DEFAULT_RETRY_MODE, NODE_MAX_ATTEMPT_CONFIG_OPTIONS, NODE_RETRY_MODE_CONFIG_OPTIONS, } from "@smithy/core/retry";
9
+ import { DEFAULT_RETRY_MODE, NODE_MAX_ATTEMPT_CONFIG_OPTIONS, NODE_RETRY_MODE_CONFIG_OPTIONS, Retry, } from "@smithy/core/retry";
10
10
  import { calculateBodyLength, Hash } from "@smithy/core/serde";
11
11
  import { NodeHttpHandler as RequestHandler, streamCollector } from "@smithy/node-http-handler";
12
12
  import { getRuntimeConfig as getSharedRuntimeConfig } from "./runtimeConfig.shared";
@@ -31,7 +31,7 @@ export const getRuntimeConfig = (config) => {
31
31
  credentialDefaultProvider: config?.credentialDefaultProvider ?? credentialDefaultProvider,
32
32
  defaultUserAgentProvider: config?.defaultUserAgentProvider ?? createDefaultUserAgentProvider({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }),
33
33
  endpointDiscoveryEnabledProvider: config?.endpointDiscoveryEnabledProvider ?? loadNodeConfig(NODE_ENDPOINT_DISCOVERY_CONFIG_OPTIONS, loaderConfig),
34
- maxAttempts: config?.maxAttempts ?? loadNodeConfig(NODE_MAX_ATTEMPT_CONFIG_OPTIONS, config),
34
+ maxAttempts: config?.maxAttempts ?? loadNodeConfig(Retry.v2026 ? { ...NODE_MAX_ATTEMPT_CONFIG_OPTIONS, default: 4 } : NODE_MAX_ATTEMPT_CONFIG_OPTIONS, config),
35
35
  region: config?.region ?? loadNodeConfig(NODE_REGION_CONFIG_OPTIONS, { ...NODE_REGION_CONFIG_FILE_OPTIONS, ...loaderConfig }),
36
36
  requestHandler: RequestHandler.create(config?.requestHandler ?? defaultConfigProvider),
37
37
  retryMode: config?.retryMode ??
@@ -3,7 +3,6 @@ import { AwsJson1_0Protocol } from "@aws-sdk/core/protocols";
3
3
  import { DynamoDBJsonCodec } from "@aws-sdk/dynamodb-codec";
4
4
  import { NoOpLogger } from "@smithy/core/client";
5
5
  import { parseUrl } from "@smithy/core/protocols";
6
- import { Retry, StandardRetryStrategy } from "@smithy/core/retry";
7
6
  import { fromBase64, fromUtf8, toBase64, toUtf8 } from "@smithy/core/serde";
8
7
  import { defaultDynamoDBHttpAuthSchemeProvider } from "./auth/httpAuthSchemeProvider";
9
8
  import { defaultEndpointResolver } from "./endpoint/endpointResolver";
@@ -34,12 +33,6 @@ export const getRuntimeConfig = (config) => {
34
33
  serviceTarget: "DynamoDB_20120810",
35
34
  jsonCodec: new DynamoDBJsonCodec(),
36
35
  },
37
- retryStrategy: config?.retryStrategy ?? (config?.maxAttempts == null && config?.retryMode == null && Retry.v2026
38
- ? new StandardRetryStrategy({
39
- maxAttempts: 4,
40
- baseDelay: 25,
41
- })
42
- : undefined),
43
36
  serviceId: config?.serviceId ?? "DynamoDB",
44
37
  urlParser: config?.urlParser ?? parseUrl,
45
38
  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,7 +20,6 @@ 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;
24
23
  serviceId: string;
25
24
  urlParser: import("@smithy/types").UrlParser;
26
25
  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,10 +23,6 @@ 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;
30
26
  serviceId: string;
31
27
  urlParser: import("@smithy/types").UrlParser;
32
28
  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.1059.0",
4
+ "version": "3.1061.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,9 +27,9 @@
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.974.16",
31
- "@aws-sdk/credential-provider-node": "^3.972.49",
32
- "@aws-sdk/dynamodb-codec": "^3.973.16",
30
+ "@aws-sdk/core": "^3.974.17",
31
+ "@aws-sdk/credential-provider-node": "^3.972.50",
32
+ "@aws-sdk/dynamodb-codec": "^3.973.17",
33
33
  "@aws-sdk/middleware-endpoint-discovery": "^3.972.16",
34
34
  "@aws-sdk/types": "^3.973.10",
35
35
  "@smithy/core": "^3.24.6",