@aws-sdk/client-dynamodb-streams 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
@@ -81,7 +81,7 @@ class DynamoDBStreamsClient extends client.Client {
81
81
  this.initConfig = _config_0;
82
82
  const _config_1 = resolveClientEndpointParameters(_config_0);
83
83
  const _config_2 = client$1.resolveUserAgentConfig(_config_1);
84
- const _config_3 = retry.resolveRetryConfig(_config_2);
84
+ const _config_3 = retry.resolveRetryConfig(_config_2, { defaultBaseDelay: retry.Retry.v2026 ? 25 : undefined, defaultMaxAttempts: retry.Retry.v2026 ? 4 : undefined });
85
85
  const _config_4 = config.resolveRegionConfig(_config_3);
86
86
  const _config_5 = client$1.resolveHostHeaderConfig(_config_4);
87
87
  const _config_6 = endpoints.resolveEndpointConfig(_config_5);
@@ -23,7 +23,7 @@ const getRuntimeConfig = (config) => {
23
23
  bodyLengthChecker: config?.bodyLengthChecker ?? serde_1.calculateBodyLength,
24
24
  credentialDefaultProvider: config?.credentialDefaultProvider ?? ((_) => () => Promise.reject(new Error("Credential is missing"))),
25
25
  defaultUserAgentProvider: config?.defaultUserAgentProvider ?? (0, client_1.createDefaultUserAgentProvider)({ serviceId: clientSharedValues.serviceId, clientVersion: package_json_1.default.version }),
26
- maxAttempts: config?.maxAttempts ?? retry_1.DEFAULT_MAX_ATTEMPTS,
26
+ maxAttempts: config?.maxAttempts ?? (retry_1.Retry.v2026 ? 4 : retry_1.DEFAULT_MAX_ATTEMPTS),
27
27
  region: config?.region ?? (0, client_2.invalidProvider)("Region is missing"),
28
28
  requestHandler: fetch_http_handler_1.FetchHttpHandler.create(config?.requestHandler ?? defaultConfigProvider),
29
29
  retryMode: config?.retryMode ?? (async () => (await defaultConfigProvider()).retryMode || retry_1.DEFAULT_RETRY_MODE),
@@ -31,7 +31,7 @@ const getRuntimeConfig = (config) => {
31
31
  bodyLengthChecker: config?.bodyLengthChecker ?? serde_1.calculateBodyLength,
32
32
  credentialDefaultProvider: config?.credentialDefaultProvider ?? credential_provider_node_1.defaultProvider,
33
33
  defaultUserAgentProvider: config?.defaultUserAgentProvider ?? (0, client_1.createDefaultUserAgentProvider)({ serviceId: clientSharedValues.serviceId, clientVersion: package_json_1.default.version }),
34
- maxAttempts: config?.maxAttempts ?? (0, config_1.loadConfig)(retry_1.NODE_MAX_ATTEMPT_CONFIG_OPTIONS, config),
34
+ 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),
35
35
  region: config?.region ?? (0, config_1.loadConfig)(config_1.NODE_REGION_CONFIG_OPTIONS, { ...config_1.NODE_REGION_CONFIG_FILE_OPTIONS, ...loaderConfig }),
36
36
  requestHandler: node_http_handler_1.NodeHttpHandler.create(config?.requestHandler ?? defaultConfigProvider),
37
37
  retryMode: config?.retryMode ??
@@ -5,7 +5,6 @@ const httpAuthSchemes_1 = require("@aws-sdk/core/httpAuthSchemes");
5
5
  const protocols_1 = require("@aws-sdk/core/protocols");
6
6
  const client_1 = require("@smithy/core/client");
7
7
  const protocols_2 = require("@smithy/core/protocols");
8
- const retry_1 = require("@smithy/core/retry");
9
8
  const serde_1 = require("@smithy/core/serde");
10
9
  const httpAuthSchemeProvider_1 = require("./auth/httpAuthSchemeProvider");
11
10
  const endpointResolver_1 = require("./endpoint/endpointResolver");
@@ -35,12 +34,6 @@ const getRuntimeConfig = (config) => {
35
34
  version: "2012-08-10",
36
35
  serviceTarget: "DynamoDBStreams_20120810",
37
36
  },
38
- retryStrategy: config?.retryStrategy ?? (config?.maxAttempts == null && config?.retryMode == null && retry_1.Retry.v2026
39
- ? new retry_1.StandardRetryStrategy({
40
- maxAttempts: 4,
41
- baseDelay: 25,
42
- })
43
- : undefined),
44
37
  serviceId: config?.serviceId ?? "DynamoDB Streams",
45
38
  urlParser: config?.urlParser ?? protocols_2.parseUrl,
46
39
  utf8Decoder: config?.utf8Decoder ?? serde_1.fromUtf8,
@@ -4,7 +4,7 @@ import { Client as __Client, } from "@smithy/core/client";
4
4
  import { resolveRegionConfig } from "@smithy/core/config";
5
5
  import { resolveEndpointConfig } from "@smithy/core/endpoints";
6
6
  import { getContentLengthPlugin } from "@smithy/core/protocols";
7
- import { getRetryPlugin, resolveRetryConfig, } from "@smithy/core/retry";
7
+ import { getRetryPlugin, resolveRetryConfig, Retry, } from "@smithy/core/retry";
8
8
  import { getSchemaSerdePlugin } from "@smithy/core/schema";
9
9
  import { defaultDynamoDBStreamsHttpAuthSchemeParametersProvider, resolveHttpAuthSchemeConfig, } from "./auth/httpAuthSchemeProvider";
10
10
  import { resolveClientEndpointParameters, } from "./endpoint/EndpointParameters";
@@ -19,7 +19,7 @@ export class DynamoDBStreamsClient extends __Client {
19
19
  this.initConfig = _config_0;
20
20
  const _config_1 = resolveClientEndpointParameters(_config_0);
21
21
  const _config_2 = resolveUserAgentConfig(_config_1);
22
- const _config_3 = resolveRetryConfig(_config_2);
22
+ const _config_3 = resolveRetryConfig(_config_2, { defaultBaseDelay: Retry.v2026 ? 25 : undefined, defaultMaxAttempts: Retry.v2026 ? 4 : undefined });
23
23
  const _config_4 = resolveRegionConfig(_config_3);
24
24
  const _config_5 = resolveHostHeaderConfig(_config_4);
25
25
  const _config_6 = resolveEndpointConfig(_config_5);
@@ -3,7 +3,7 @@ import { Sha256 } from "@aws-crypto/sha256-browser";
3
3
  import { createDefaultUserAgentProvider } from "@aws-sdk/core/client";
4
4
  import { invalidProvider, loadConfigsForDefaultMode } from "@smithy/core/client";
5
5
  import { DEFAULT_USE_DUALSTACK_ENDPOINT, DEFAULT_USE_FIPS_ENDPOINT, resolveDefaultsModeConfig, } from "@smithy/core/config";
6
- import { DEFAULT_MAX_ATTEMPTS, DEFAULT_RETRY_MODE } from "@smithy/core/retry";
6
+ import { DEFAULT_MAX_ATTEMPTS, DEFAULT_RETRY_MODE, Retry } from "@smithy/core/retry";
7
7
  import { calculateBodyLength } from "@smithy/core/serde";
8
8
  import { FetchHttpHandler as RequestHandler, streamCollector } from "@smithy/fetch-http-handler";
9
9
  import { getRuntimeConfig as getSharedRuntimeConfig } from "./runtimeConfig.shared";
@@ -19,7 +19,7 @@ export const getRuntimeConfig = (config) => {
19
19
  bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength,
20
20
  credentialDefaultProvider: config?.credentialDefaultProvider ?? ((_) => () => Promise.reject(new Error("Credential is missing"))),
21
21
  defaultUserAgentProvider: config?.defaultUserAgentProvider ?? createDefaultUserAgentProvider({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }),
22
- maxAttempts: config?.maxAttempts ?? DEFAULT_MAX_ATTEMPTS,
22
+ maxAttempts: config?.maxAttempts ?? (Retry.v2026 ? 4 : DEFAULT_MAX_ATTEMPTS),
23
23
  region: config?.region ?? invalidProvider("Region is missing"),
24
24
  requestHandler: RequestHandler.create(config?.requestHandler ?? defaultConfigProvider),
25
25
  retryMode: config?.retryMode ?? (async () => (await defaultConfigProvider()).retryMode || DEFAULT_RETRY_MODE),
@@ -4,7 +4,7 @@ import { NODE_AUTH_SCHEME_PREFERENCE_OPTIONS } from "@aws-sdk/core/httpAuthSchem
4
4
  import { defaultProvider as credentialDefaultProvider } from "@aws-sdk/credential-provider-node";
5
5
  import { emitWarningIfUnsupportedVersion, loadConfigsForDefaultMode } from "@smithy/core/client";
6
6
  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";
7
- import { DEFAULT_RETRY_MODE, NODE_MAX_ATTEMPT_CONFIG_OPTIONS, NODE_RETRY_MODE_CONFIG_OPTIONS, } from "@smithy/core/retry";
7
+ import { DEFAULT_RETRY_MODE, NODE_MAX_ATTEMPT_CONFIG_OPTIONS, NODE_RETRY_MODE_CONFIG_OPTIONS, Retry, } from "@smithy/core/retry";
8
8
  import { calculateBodyLength, Hash } from "@smithy/core/serde";
9
9
  import { NodeHttpHandler as RequestHandler, streamCollector } from "@smithy/node-http-handler";
10
10
  import { getRuntimeConfig as getSharedRuntimeConfig } from "./runtimeConfig.shared";
@@ -27,7 +27,7 @@ export const getRuntimeConfig = (config) => {
27
27
  bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength,
28
28
  credentialDefaultProvider: config?.credentialDefaultProvider ?? credentialDefaultProvider,
29
29
  defaultUserAgentProvider: config?.defaultUserAgentProvider ?? createDefaultUserAgentProvider({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }),
30
- maxAttempts: config?.maxAttempts ?? loadNodeConfig(NODE_MAX_ATTEMPT_CONFIG_OPTIONS, config),
30
+ maxAttempts: config?.maxAttempts ?? loadNodeConfig(Retry.v2026 ? { ...NODE_MAX_ATTEMPT_CONFIG_OPTIONS, default: 4 } : NODE_MAX_ATTEMPT_CONFIG_OPTIONS, config),
31
31
  region: config?.region ?? loadNodeConfig(NODE_REGION_CONFIG_OPTIONS, { ...NODE_REGION_CONFIG_FILE_OPTIONS, ...loaderConfig }),
32
32
  requestHandler: RequestHandler.create(config?.requestHandler ?? defaultConfigProvider),
33
33
  retryMode: config?.retryMode ??
@@ -2,7 +2,6 @@ import { AwsSdkSigV4Signer } from "@aws-sdk/core/httpAuthSchemes";
2
2
  import { AwsJson1_0Protocol } from "@aws-sdk/core/protocols";
3
3
  import { NoOpLogger } from "@smithy/core/client";
4
4
  import { parseUrl } from "@smithy/core/protocols";
5
- import { Retry, StandardRetryStrategy } from "@smithy/core/retry";
6
5
  import { fromBase64, fromUtf8, toBase64, toUtf8 } from "@smithy/core/serde";
7
6
  import { defaultDynamoDBStreamsHttpAuthSchemeProvider } from "./auth/httpAuthSchemeProvider";
8
7
  import { defaultEndpointResolver } from "./endpoint/endpointResolver";
@@ -32,12 +31,6 @@ export const getRuntimeConfig = (config) => {
32
31
  version: "2012-08-10",
33
32
  serviceTarget: "DynamoDBStreams_20120810",
34
33
  },
35
- retryStrategy: config?.retryStrategy ?? (config?.maxAttempts == null && config?.retryMode == null && Retry.v2026
36
- ? new StandardRetryStrategy({
37
- maxAttempts: 4,
38
- baseDelay: 25,
39
- })
40
- : undefined),
41
34
  serviceId: config?.serviceId ?? "DynamoDB Streams",
42
35
  urlParser: config?.urlParser ?? parseUrl,
43
36
  utf8Decoder: config?.utf8Decoder ?? fromUtf8,
@@ -36,7 +36,7 @@ export declare const getRuntimeConfig: (config: DynamoDBStreamsClientConfig) =>
36
36
  extensions: import("./runtimeExtensions").RuntimeExtension[];
37
37
  customUserAgent?: string | import("@smithy/types").UserAgent;
38
38
  userAgentAppId?: string | undefined | import("@smithy/types").Provider<string | undefined>;
39
- retryStrategy: import("@smithy/types").RetryStrategy | import("@smithy/types").RetryStrategyV2;
39
+ retryStrategy?: import("@smithy/types").RetryStrategy | import("@smithy/types").RetryStrategyV2;
40
40
  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;
41
41
  endpointProvider: (endpointParams: import("./endpoint/EndpointParameters").EndpointParameters, context?: {
42
42
  logger?: import("@smithy/types").Logger;
@@ -37,7 +37,7 @@ export declare const getRuntimeConfig: (config: DynamoDBStreamsClientConfig) =>
37
37
  logger: import("@smithy/types").Logger;
38
38
  extensions: import("./runtimeExtensions").RuntimeExtension[];
39
39
  customUserAgent?: string | import("@smithy/types").UserAgent;
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;
@@ -35,7 +35,7 @@ export declare const getRuntimeConfig: (config: DynamoDBStreamsClientConfig) =>
35
35
  defaultsMode: import("@smithy/core/client").DefaultsMode | import("@smithy/types").Provider<import("@smithy/core/client").DefaultsMode>;
36
36
  customUserAgent?: string | import("@smithy/types").UserAgent;
37
37
  userAgentAppId?: string | undefined | import("@smithy/types").Provider<string | undefined>;
38
- retryStrategy: import("@smithy/types").RetryStrategy | import("@smithy/types").RetryStrategyV2;
38
+ retryStrategy?: import("@smithy/types").RetryStrategy | import("@smithy/types").RetryStrategyV2;
39
39
  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;
40
40
  endpointProvider: (endpointParams: import("./endpoint/EndpointParameters").EndpointParameters, context?: {
41
41
  logger?: import("@smithy/types").Logger;
@@ -20,7 +20,6 @@ export declare const getRuntimeConfig: (config: DynamoDBStreamsClientConfig) =>
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;
@@ -53,7 +53,7 @@ export declare const getRuntimeConfig: (
53
53
  | string
54
54
  | undefined
55
55
  | import("@smithy/types").Provider<string | undefined>;
56
- retryStrategy:
56
+ retryStrategy?:
57
57
  | import("@smithy/types").RetryStrategy
58
58
  | import("@smithy/types").RetryStrategyV2;
59
59
  endpoint?:
@@ -49,7 +49,7 @@ export declare const getRuntimeConfig: (
49
49
  logger: import("@smithy/types").Logger;
50
50
  extensions: import("./runtimeExtensions").RuntimeExtension[];
51
51
  customUserAgent?: string | import("@smithy/types").UserAgent;
52
- retryStrategy:
52
+ retryStrategy?:
53
53
  | import("@smithy/types").RetryStrategy
54
54
  | import("@smithy/types").RetryStrategyV2;
55
55
  endpoint?:
@@ -57,7 +57,7 @@ export declare const getRuntimeConfig: (
57
57
  | string
58
58
  | undefined
59
59
  | import("@smithy/types").Provider<string | undefined>;
60
- retryStrategy:
60
+ retryStrategy?:
61
61
  | import("@smithy/types").RetryStrategy
62
62
  | import("@smithy/types").RetryStrategyV2;
63
63
  endpoint?:
@@ -25,10 +25,6 @@ export declare const getRuntimeConfig: (
25
25
  [setting: string]: unknown;
26
26
  defaultNamespace?: string;
27
27
  };
28
- retryStrategy:
29
- | import("@smithy/types").RetryStrategy
30
- | import("@smithy/types").RetryStrategyV2
31
- | undefined;
32
28
  serviceId: string;
33
29
  urlParser: import("@smithy/types").UrlParser;
34
30
  utf8Decoder: import("@smithy/types").Decoder;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@aws-sdk/client-dynamodb-streams",
3
3
  "description": "AWS SDK for JavaScript Dynamodb Streams 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-streams",
@@ -27,8 +27,8 @@
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",
30
+ "@aws-sdk/core": "^3.974.17",
31
+ "@aws-sdk/credential-provider-node": "^3.972.50",
32
32
  "@aws-sdk/types": "^3.973.10",
33
33
  "@smithy/core": "^3.24.6",
34
34
  "@smithy/fetch-http-handler": "^5.4.6",