@aws-sdk/client-dynamodb 3.1076.0 → 3.1077.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
@@ -12,10 +12,11 @@ const { DEFAULT_RETRY_MODE, NODE_RETRY_MODE_CONFIG_OPTIONS, NODE_MAX_ATTEMPT_CON
12
12
  const { TypeRegistry, getSchemaSerdePlugin } = require("@smithy/core/schema");
13
13
  const { resolveAwsSdkSigV4Config, AwsSdkSigV4Signer, NODE_AUTH_SCHEME_PREFERENCE_OPTIONS } = require("@aws-sdk/core/httpAuthSchemes");
14
14
  const { defaultProvider } = require("@aws-sdk/credential-provider-node");
15
- const { toUtf8, fromUtf8, toBase64, fromBase64, Hash, calculateBodyLength } = require("@smithy/core/serde");
15
+ const { toUtf8, fromUtf8, toBase64, fromBase64, calculateBodyLength } = require("@smithy/core/serde");
16
16
  const { streamCollector, NodeHttpHandler } = require("@smithy/node-http-handler");
17
17
  const { AwsJson1_0Protocol } = require("@aws-sdk/core/protocols");
18
18
  const { DynamoDBJsonCodec } = require("@aws-sdk/dynamodb-codec");
19
+ const { Sha256 } = require("@smithy/core/checksum");
19
20
 
20
21
  const defaultDynamoDBHttpAuthSchemeParametersProvider = async (config, context, input) => {
21
22
  return {
@@ -2900,7 +2901,7 @@ class DescribeEndpointsCommand extends Command
2900
2901
  .build() {
2901
2902
  }
2902
2903
 
2903
- var version = "3.1075.0";
2904
+ var version = "3.1076.0";
2904
2905
  var packageInfo = {
2905
2906
  version: version};
2906
2907
 
@@ -3088,6 +3089,7 @@ const getRuntimeConfig$1 = (config) => {
3088
3089
  jsonCodec: new DynamoDBJsonCodec(),
3089
3090
  },
3090
3091
  serviceId: config?.serviceId ?? "DynamoDB",
3092
+ sha256: config?.sha256 ?? Sha256,
3091
3093
  urlParser: config?.urlParser ?? parseUrl,
3092
3094
  utf8Decoder: config?.utf8Decoder ?? fromUtf8,
3093
3095
  utf8Encoder: config?.utf8Encoder ?? toUtf8,
@@ -3123,7 +3125,6 @@ const getRuntimeConfig = (config) => {
3123
3125
  ...NODE_RETRY_MODE_CONFIG_OPTIONS,
3124
3126
  default: async () => (await defaultConfigProvider()).retryMode || DEFAULT_RETRY_MODE,
3125
3127
  }, config),
3126
- sha256: config?.sha256 ?? Hash.bind(null, "sha256"),
3127
3128
  streamCollector: config?.streamCollector ?? streamCollector,
3128
3129
  useDualstackEndpoint: config?.useDualstackEndpoint ?? loadConfig(NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS, loaderConfig),
3129
3130
  useFipsEndpoint: config?.useFipsEndpoint ?? loadConfig(NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS, loaderConfig),
@@ -1,5 +1,4 @@
1
1
  import packageInfo from "../package.json";
2
- import { Sha256 } from "@aws-crypto/sha256-browser";
3
2
  import { DEFAULT_ACCOUNT_ID_ENDPOINT_MODE } from "@aws-sdk/core/account-id-endpoint";
4
3
  import { createDefaultUserAgentProvider } from "@aws-sdk/core/client";
5
4
  import { invalidProvider, loadConfigsForDefaultMode } from "@smithy/core/client";
@@ -26,7 +25,6 @@ export const getRuntimeConfig = (config) => {
26
25
  region: config?.region ?? invalidProvider("Region is missing"),
27
26
  requestHandler: RequestHandler.create(config?.requestHandler ?? defaultConfigProvider),
28
27
  retryMode: config?.retryMode ?? (async () => (await defaultConfigProvider()).retryMode || DEFAULT_RETRY_MODE),
29
- sha256: config?.sha256 ?? Sha256,
30
28
  streamCollector: config?.streamCollector ?? streamCollector,
31
29
  useDualstackEndpoint: config?.useDualstackEndpoint ?? (() => Promise.resolve(DEFAULT_USE_DUALSTACK_ENDPOINT)),
32
30
  useFipsEndpoint: config?.useFipsEndpoint ?? (() => Promise.resolve(DEFAULT_USE_FIPS_ENDPOINT)),
@@ -7,7 +7,7 @@ import { NODE_ENDPOINT_DISCOVERY_CONFIG_OPTIONS } from "@aws-sdk/middleware-endp
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
9
  import { DEFAULT_RETRY_MODE, NODE_MAX_ATTEMPT_CONFIG_OPTIONS, NODE_RETRY_MODE_CONFIG_OPTIONS, Retry, } from "@smithy/core/retry";
10
- import { calculateBodyLength, Hash } from "@smithy/core/serde";
10
+ import { calculateBodyLength } 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";
13
13
  export const getRuntimeConfig = (config) => {
@@ -39,7 +39,6 @@ export const getRuntimeConfig = (config) => {
39
39
  ...NODE_RETRY_MODE_CONFIG_OPTIONS,
40
40
  default: async () => (await defaultConfigProvider()).retryMode || DEFAULT_RETRY_MODE,
41
41
  }, config),
42
- sha256: config?.sha256 ?? Hash.bind(null, "sha256"),
43
42
  streamCollector: config?.streamCollector ?? streamCollector,
44
43
  useDualstackEndpoint: config?.useDualstackEndpoint ?? loadNodeConfig(NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS, loaderConfig),
45
44
  useFipsEndpoint: config?.useFipsEndpoint ?? loadNodeConfig(NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS, loaderConfig),
@@ -1,4 +1,3 @@
1
- import { Sha256 } from "@aws-crypto/sha256-js";
2
1
  import { getRuntimeConfig as getBrowserRuntimeConfig } from "./runtimeConfig.browser";
3
2
  export const getRuntimeConfig = (config) => {
4
3
  const browserDefaults = getBrowserRuntimeConfig(config);
@@ -6,6 +5,5 @@ export const getRuntimeConfig = (config) => {
6
5
  ...browserDefaults,
7
6
  ...config,
8
7
  runtime: "react-native",
9
- sha256: config?.sha256 ?? Sha256,
10
8
  };
11
9
  };
@@ -1,6 +1,7 @@
1
1
  import { AwsSdkSigV4Signer } from "@aws-sdk/core/httpAuthSchemes";
2
2
  import { AwsJson1_0Protocol } from "@aws-sdk/core/protocols";
3
3
  import { DynamoDBJsonCodec } from "@aws-sdk/dynamodb-codec";
4
+ import { Sha256 } from "@smithy/core/checksum";
4
5
  import { NoOpLogger } from "@smithy/core/client";
5
6
  import { parseUrl } from "@smithy/core/protocols";
6
7
  import { fromBase64, fromUtf8, toBase64, toUtf8 } from "@smithy/core/serde";
@@ -34,6 +35,7 @@ export const getRuntimeConfig = (config) => {
34
35
  jsonCodec: new DynamoDBJsonCodec(),
35
36
  },
36
37
  serviceId: config?.serviceId ?? "DynamoDB",
38
+ sha256: config?.sha256 ?? Sha256,
37
39
  urlParser: config?.urlParser ?? parseUrl,
38
40
  utf8Decoder: config?.utf8Decoder ?? fromUtf8,
39
41
  utf8Encoder: config?.utf8Encoder ?? toUtf8,
@@ -15,7 +15,6 @@ export declare const getRuntimeConfig: (config: DynamoDBClientConfig) => {
15
15
  region: string | import("@smithy/types").Provider<any>;
16
16
  requestHandler: import("@smithy/core/protocols").HttpHandler<any> | RequestHandler;
17
17
  retryMode: string | import("@smithy/types").Provider<string>;
18
- sha256: import("@smithy/types").HashConstructor;
19
18
  streamCollector: (stream: import("stream").Readable | import("stream/web").ReadableStream | ReadableStream | Blob) => Promise<Uint8Array>;
20
19
  useDualstackEndpoint: (boolean | import("@smithy/types").Provider<boolean>) & (boolean | import("@smithy/types").Provider<boolean | undefined>);
21
20
  useFipsEndpoint: (boolean | import("@smithy/types").Provider<boolean>) & (boolean | import("@smithy/types").Provider<boolean | undefined>);
@@ -26,6 +25,7 @@ export declare const getRuntimeConfig: (config: DynamoDBClientConfig) => {
26
25
  [setting: string]: unknown;
27
26
  };
28
27
  apiVersion: string;
28
+ sha256: import("@smithy/types").HashConstructor;
29
29
  urlParser: import("@smithy/types").UrlParser;
30
30
  base64Decoder: import("@smithy/types").Decoder;
31
31
  base64Encoder: (_input: Uint8Array | string) => string;
@@ -16,7 +16,6 @@ export declare const getRuntimeConfig: (config: DynamoDBClientConfig) => {
16
16
  region: string | import("@smithy/types").Provider<string>;
17
17
  requestHandler: RequestHandler | import("@smithy/core/protocols").HttpHandler<any>;
18
18
  retryMode: string | import("@smithy/types").Provider<string>;
19
- sha256: import("@smithy/types").HashConstructor;
20
19
  streamCollector: (stream: import("stream").Readable | import("stream/web").ReadableStream | ReadableStream | Blob) => Promise<Uint8Array>;
21
20
  useDualstackEndpoint: boolean | import("@smithy/types").Provider<boolean>;
22
21
  useFipsEndpoint: boolean | import("@smithy/types").Provider<boolean>;
@@ -28,6 +27,7 @@ export declare const getRuntimeConfig: (config: DynamoDBClientConfig) => {
28
27
  [setting: string]: unknown;
29
28
  };
30
29
  apiVersion: string;
30
+ sha256: import("@smithy/types").HashConstructor;
31
31
  urlParser: import("@smithy/types").UrlParser;
32
32
  base64Decoder: import("@smithy/types").Decoder;
33
33
  base64Encoder: (_input: Uint8Array | string) => string;
@@ -4,7 +4,6 @@ import type { DynamoDBClientConfig } from "./DynamoDBClient";
4
4
  */
5
5
  export declare const getRuntimeConfig: (config: DynamoDBClientConfig) => {
6
6
  runtime: string;
7
- sha256: import("@smithy/types").HashConstructor;
8
7
  requestHandler: import("@smithy/types").NodeHttpHandlerOptions | import("@smithy/types").FetchHttpHandlerOptions | Record<string, unknown> | import("@smithy/core/protocols").HttpHandler<any> | import("@smithy/fetch-http-handler").FetchHttpHandler;
9
8
  cacheMiddleware?: boolean;
10
9
  protocol: import("@smithy/types").ClientProtocol<any, any> | import("@smithy/types").ClientProtocolCtor<any, any> | typeof import("@aws-sdk/core/protocols").AwsJson1_0Protocol;
@@ -13,6 +12,7 @@ export declare const getRuntimeConfig: (config: DynamoDBClientConfig) => {
13
12
  [setting: string]: unknown;
14
13
  };
15
14
  apiVersion: string;
15
+ sha256: import("@smithy/types").HashConstructor;
16
16
  urlParser: import("@smithy/types").UrlParser;
17
17
  bodyLengthChecker: import("@smithy/types").BodyLengthCalculator;
18
18
  streamCollector: (stream: import("stream").Readable | import("stream/web").ReadableStream | ReadableStream | Blob) => Promise<Uint8Array>;
@@ -21,6 +21,7 @@ export declare const getRuntimeConfig: (config: DynamoDBClientConfig) => {
21
21
  defaultNamespace?: string;
22
22
  };
23
23
  serviceId: string;
24
+ sha256: import("@smithy/types").HashConstructor;
24
25
  urlParser: import("@smithy/types").UrlParser;
25
26
  utf8Decoder: import("@smithy/types").Decoder;
26
27
  utf8Encoder: (input: Uint8Array | string) => string;
@@ -28,7 +28,6 @@ export declare const getRuntimeConfig: (config: DynamoDBClientConfig) => {
28
28
  | import("@smithy/core/protocols").HttpHandler<any>
29
29
  | RequestHandler;
30
30
  retryMode: string | import("@smithy/types").Provider<string>;
31
- sha256: import("@smithy/types").HashConstructor;
32
31
  streamCollector: (
33
32
  stream:
34
33
  | import("stream").Readable
@@ -50,6 +49,7 @@ export declare const getRuntimeConfig: (config: DynamoDBClientConfig) => {
50
49
  [setting: string]: unknown;
51
50
  };
52
51
  apiVersion: string;
52
+ sha256: import("@smithy/types").HashConstructor;
53
53
  urlParser: import("@smithy/types").UrlParser;
54
54
  base64Decoder: import("@smithy/types").Decoder;
55
55
  base64Encoder: (_input: Uint8Array | string) => string;
@@ -31,7 +31,6 @@ export declare const getRuntimeConfig: (config: DynamoDBClientConfig) => {
31
31
  | RequestHandler
32
32
  | import("@smithy/core/protocols").HttpHandler<any>;
33
33
  retryMode: string | import("@smithy/types").Provider<string>;
34
- sha256: import("@smithy/types").HashConstructor;
35
34
  streamCollector: (
36
35
  stream:
37
36
  | import("stream").Readable
@@ -52,6 +51,7 @@ export declare const getRuntimeConfig: (config: DynamoDBClientConfig) => {
52
51
  [setting: string]: unknown;
53
52
  };
54
53
  apiVersion: string;
54
+ sha256: import("@smithy/types").HashConstructor;
55
55
  urlParser: import("@smithy/types").UrlParser;
56
56
  base64Decoder: import("@smithy/types").Decoder;
57
57
  base64Encoder: (_input: Uint8Array | string) => string;
@@ -1,7 +1,6 @@
1
1
  import { DynamoDBClientConfig } from "./DynamoDBClient";
2
2
  export declare const getRuntimeConfig: (config: DynamoDBClientConfig) => {
3
3
  runtime: string;
4
- sha256: import("@smithy/types").HashConstructor;
5
4
  requestHandler:
6
5
  | import("@smithy/types").NodeHttpHandlerOptions
7
6
  | import("@smithy/types").FetchHttpHandlerOptions
@@ -18,6 +17,7 @@ export declare const getRuntimeConfig: (config: DynamoDBClientConfig) => {
18
17
  [setting: string]: unknown;
19
18
  };
20
19
  apiVersion: string;
20
+ sha256: import("@smithy/types").HashConstructor;
21
21
  urlParser: import("@smithy/types").UrlParser;
22
22
  bodyLengthChecker: import("@smithy/types").BodyLengthCalculator;
23
23
  streamCollector: (
@@ -24,6 +24,7 @@ export declare const getRuntimeConfig: (config: DynamoDBClientConfig) => {
24
24
  defaultNamespace?: string;
25
25
  };
26
26
  serviceId: string;
27
+ sha256: import("@smithy/types").HashConstructor;
27
28
  urlParser: import("@smithy/types").UrlParser;
28
29
  utf8Decoder: import("@smithy/types").Decoder;
29
30
  utf8Encoder: (input: Uint8Array | string) => string;
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.1076.0",
4
+ "version": "3.1077.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",
@@ -25,21 +25,19 @@
25
25
  "module": "./dist-es/index.js",
26
26
  "sideEffects": false,
27
27
  "dependencies": {
28
- "@aws-crypto/sha256-browser": "5.2.0",
29
- "@aws-crypto/sha256-js": "5.2.0",
30
- "@aws-sdk/core": "^3.974.24",
31
- "@aws-sdk/credential-provider-node": "^3.972.59",
32
- "@aws-sdk/dynamodb-codec": "^3.973.24",
33
- "@aws-sdk/middleware-endpoint-discovery": "^3.972.20",
28
+ "@aws-sdk/core": "^3.974.25",
29
+ "@aws-sdk/credential-provider-node": "^3.972.60",
30
+ "@aws-sdk/dynamodb-codec": "^3.973.25",
31
+ "@aws-sdk/middleware-endpoint-discovery": "^3.972.21",
34
32
  "@aws-sdk/types": "^3.973.14",
35
- "@smithy/core": "^3.27.0",
36
- "@smithy/fetch-http-handler": "^5.6.0",
37
- "@smithy/node-http-handler": "^4.9.0",
33
+ "@smithy/core": "^3.28.0",
34
+ "@smithy/fetch-http-handler": "^5.6.1",
35
+ "@smithy/node-http-handler": "^4.9.1",
38
36
  "@smithy/types": "^4.15.0",
39
37
  "tslib": "^2.6.2"
40
38
  },
41
39
  "devDependencies": {
42
- "@smithy/snapshot-testing": "^2.2.3",
40
+ "@smithy/snapshot-testing": "^2.2.4",
43
41
  "@tsconfig/node20": "20.1.8",
44
42
  "@types/node": "^20.14.8",
45
43
  "concurrently": "7.0.0",