@aws-sdk/client-lex-runtime-v2 3.87.0 → 3.94.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/CHANGELOG.md CHANGED
@@ -3,6 +3,33 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
+ # [3.94.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.93.0...v3.94.0) (2022-05-18)
7
+
8
+ **Note:** Version bump only for package @aws-sdk/client-lex-runtime-v2
9
+
10
+
11
+
12
+
13
+
14
+ # [3.92.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.91.0...v3.92.0) (2022-05-16)
15
+
16
+ **Note:** Version bump only for package @aws-sdk/client-lex-runtime-v2
17
+
18
+
19
+
20
+
21
+
22
+ # [3.88.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.87.0...v3.88.0) (2022-05-10)
23
+
24
+
25
+ ### Features
26
+
27
+ * **clients:** http2 handler accept parameters from default mode provider ([#3580](https://github.com/aws/aws-sdk-js-v3/issues/3580)) ([930c904](https://github.com/aws/aws-sdk-js-v3/commit/930c90457859935fcd3257e835263f14595ec765))
28
+
29
+
30
+
31
+
32
+
6
33
  # [3.87.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.86.0...v3.87.0) (2022-05-09)
7
34
 
8
35
  **Note:** Version bump only for package @aws-sdk/client-lex-runtime-v2
@@ -38,7 +38,7 @@ const getRuntimeConfig = (config) => {
38
38
  eventStreamSerdeProvider: (_g = config === null || config === void 0 ? void 0 : config.eventStreamSerdeProvider) !== null && _g !== void 0 ? _g : eventstream_serde_node_1.eventStreamSerdeProvider,
39
39
  maxAttempts: (_h = config === null || config === void 0 ? void 0 : config.maxAttempts) !== null && _h !== void 0 ? _h : (0, node_config_provider_1.loadConfig)(middleware_retry_1.NODE_MAX_ATTEMPT_CONFIG_OPTIONS),
40
40
  region: (_j = config === null || config === void 0 ? void 0 : config.region) !== null && _j !== void 0 ? _j : (0, node_config_provider_1.loadConfig)(config_resolver_1.NODE_REGION_CONFIG_OPTIONS, config_resolver_1.NODE_REGION_CONFIG_FILE_OPTIONS),
41
- requestHandler: (_k = config === null || config === void 0 ? void 0 : config.requestHandler) !== null && _k !== void 0 ? _k : new node_http_handler_1.NodeHttp2Handler(),
41
+ requestHandler: (_k = config === null || config === void 0 ? void 0 : config.requestHandler) !== null && _k !== void 0 ? _k : new node_http_handler_1.NodeHttp2Handler(defaultConfigProvider),
42
42
  retryMode: (_l = config === null || config === void 0 ? void 0 : config.retryMode) !== null && _l !== void 0 ? _l : (0, node_config_provider_1.loadConfig)({
43
43
  ...middleware_retry_1.NODE_RETRY_MODE_CONFIG_OPTIONS,
44
44
  default: async () => (await defaultConfigProvider()).retryMode || middleware_retry_1.DEFAULT_RETRY_MODE,
@@ -8,7 +8,7 @@ import { eventStreamSerdeProvider } from "@aws-sdk/eventstream-serde-node";
8
8
  import { Hash } from "@aws-sdk/hash-node";
9
9
  import { DEFAULT_RETRY_MODE, NODE_MAX_ATTEMPT_CONFIG_OPTIONS, NODE_RETRY_MODE_CONFIG_OPTIONS, } from "@aws-sdk/middleware-retry";
10
10
  import { loadConfig as loadNodeConfig } from "@aws-sdk/node-config-provider";
11
- import { NodeHttp2Handler, streamCollector } from "@aws-sdk/node-http-handler";
11
+ import { NodeHttp2Handler as RequestHandler, streamCollector } from "@aws-sdk/node-http-handler";
12
12
  import { fromBase64, toBase64 } from "@aws-sdk/util-base64-node";
13
13
  import { calculateBodyLength } from "@aws-sdk/util-body-length-node";
14
14
  import { defaultUserAgent } from "@aws-sdk/util-user-agent-node";
@@ -21,7 +21,7 @@ export var getRuntimeConfig = function (config) {
21
21
  var defaultsMode = resolveDefaultsModeConfig(config);
22
22
  var defaultConfigProvider = function () { return defaultsMode().then(loadConfigsForDefaultMode); };
23
23
  var clientSharedValues = getSharedRuntimeConfig(config);
24
- return __assign(__assign(__assign({}, clientSharedValues), config), { runtime: "node", defaultsMode: defaultsMode, base64Decoder: (_a = config === null || config === void 0 ? void 0 : config.base64Decoder) !== null && _a !== void 0 ? _a : fromBase64, base64Encoder: (_b = config === null || config === void 0 ? void 0 : config.base64Encoder) !== null && _b !== void 0 ? _b : toBase64, bodyLengthChecker: (_c = config === null || config === void 0 ? void 0 : config.bodyLengthChecker) !== null && _c !== void 0 ? _c : calculateBodyLength, credentialDefaultProvider: (_d = config === null || config === void 0 ? void 0 : config.credentialDefaultProvider) !== null && _d !== void 0 ? _d : decorateDefaultCredentialProvider(credentialDefaultProvider), defaultUserAgentProvider: (_e = config === null || config === void 0 ? void 0 : config.defaultUserAgentProvider) !== null && _e !== void 0 ? _e : defaultUserAgent({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }), eventStreamPayloadHandlerProvider: (_f = config === null || config === void 0 ? void 0 : config.eventStreamPayloadHandlerProvider) !== null && _f !== void 0 ? _f : eventStreamPayloadHandlerProvider, eventStreamSerdeProvider: (_g = config === null || config === void 0 ? void 0 : config.eventStreamSerdeProvider) !== null && _g !== void 0 ? _g : eventStreamSerdeProvider, maxAttempts: (_h = config === null || config === void 0 ? void 0 : config.maxAttempts) !== null && _h !== void 0 ? _h : loadNodeConfig(NODE_MAX_ATTEMPT_CONFIG_OPTIONS), region: (_j = config === null || config === void 0 ? void 0 : config.region) !== null && _j !== void 0 ? _j : loadNodeConfig(NODE_REGION_CONFIG_OPTIONS, NODE_REGION_CONFIG_FILE_OPTIONS), requestHandler: (_k = config === null || config === void 0 ? void 0 : config.requestHandler) !== null && _k !== void 0 ? _k : new NodeHttp2Handler(), retryMode: (_l = config === null || config === void 0 ? void 0 : config.retryMode) !== null && _l !== void 0 ? _l : loadNodeConfig(__assign(__assign({}, NODE_RETRY_MODE_CONFIG_OPTIONS), { default: function () { return __awaiter(void 0, void 0, void 0, function () { return __generator(this, function (_a) {
24
+ return __assign(__assign(__assign({}, clientSharedValues), config), { runtime: "node", defaultsMode: defaultsMode, base64Decoder: (_a = config === null || config === void 0 ? void 0 : config.base64Decoder) !== null && _a !== void 0 ? _a : fromBase64, base64Encoder: (_b = config === null || config === void 0 ? void 0 : config.base64Encoder) !== null && _b !== void 0 ? _b : toBase64, bodyLengthChecker: (_c = config === null || config === void 0 ? void 0 : config.bodyLengthChecker) !== null && _c !== void 0 ? _c : calculateBodyLength, credentialDefaultProvider: (_d = config === null || config === void 0 ? void 0 : config.credentialDefaultProvider) !== null && _d !== void 0 ? _d : decorateDefaultCredentialProvider(credentialDefaultProvider), defaultUserAgentProvider: (_e = config === null || config === void 0 ? void 0 : config.defaultUserAgentProvider) !== null && _e !== void 0 ? _e : defaultUserAgent({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }), eventStreamPayloadHandlerProvider: (_f = config === null || config === void 0 ? void 0 : config.eventStreamPayloadHandlerProvider) !== null && _f !== void 0 ? _f : eventStreamPayloadHandlerProvider, eventStreamSerdeProvider: (_g = config === null || config === void 0 ? void 0 : config.eventStreamSerdeProvider) !== null && _g !== void 0 ? _g : eventStreamSerdeProvider, maxAttempts: (_h = config === null || config === void 0 ? void 0 : config.maxAttempts) !== null && _h !== void 0 ? _h : loadNodeConfig(NODE_MAX_ATTEMPT_CONFIG_OPTIONS), region: (_j = config === null || config === void 0 ? void 0 : config.region) !== null && _j !== void 0 ? _j : loadNodeConfig(NODE_REGION_CONFIG_OPTIONS, NODE_REGION_CONFIG_FILE_OPTIONS), requestHandler: (_k = config === null || config === void 0 ? void 0 : config.requestHandler) !== null && _k !== void 0 ? _k : new RequestHandler(defaultConfigProvider), retryMode: (_l = config === null || config === void 0 ? void 0 : config.retryMode) !== null && _l !== void 0 ? _l : loadNodeConfig(__assign(__assign({}, NODE_RETRY_MODE_CONFIG_OPTIONS), { default: function () { return __awaiter(void 0, void 0, void 0, function () { return __generator(this, function (_a) {
25
25
  switch (_a.label) {
26
26
  case 0: return [4, defaultConfigProvider()];
27
27
  case 1: return [2, (_a.sent()).retryMode || DEFAULT_RETRY_MODE];
@@ -1,4 +1,4 @@
1
- import { NodeHttp2Handler } from "@aws-sdk/node-http-handler";
1
+ import { NodeHttp2Handler as RequestHandler } from "@aws-sdk/node-http-handler";
2
2
  import { LexRuntimeV2ClientConfig } from "./LexRuntimeV2Client";
3
3
  /**
4
4
  * @internal
@@ -15,7 +15,7 @@ export declare const getRuntimeConfig: (config: LexRuntimeV2ClientConfig) => {
15
15
  eventStreamSerdeProvider: import("@aws-sdk/types").EventStreamSerdeProvider;
16
16
  maxAttempts: number | import("@aws-sdk/types").Provider<number>;
17
17
  region: string | import("@aws-sdk/types").Provider<string>;
18
- requestHandler: (import("@aws-sdk/types").RequestHandler<any, any, import("@aws-sdk/types").HttpHandlerOptions> & import("@aws-sdk/protocol-http").HttpHandler) | NodeHttp2Handler;
18
+ requestHandler: (import("@aws-sdk/types").RequestHandler<any, any, import("@aws-sdk/types").HttpHandlerOptions> & import("@aws-sdk/protocol-http").HttpHandler) | RequestHandler;
19
19
  retryMode: string | import("@aws-sdk/types").Provider<string>;
20
20
  sha256: import("@aws-sdk/types").HashConstructor;
21
21
  streamCollector: import("@aws-sdk/types").StreamCollector;
@@ -1,4 +1,4 @@
1
- import { NodeHttp2Handler } from "@aws-sdk/node-http-handler";
1
+ import { NodeHttp2Handler as RequestHandler } from "@aws-sdk/node-http-handler";
2
2
  import { LexRuntimeV2ClientConfig } from "./LexRuntimeV2Client";
3
3
 
4
4
  export declare const getRuntimeConfig: (config: LexRuntimeV2ClientConfig) => {
@@ -13,7 +13,7 @@ export declare const getRuntimeConfig: (config: LexRuntimeV2ClientConfig) => {
13
13
  eventStreamSerdeProvider: import("@aws-sdk/types").EventStreamSerdeProvider;
14
14
  maxAttempts: number | import("@aws-sdk/types").Provider<number>;
15
15
  region: string | import("@aws-sdk/types").Provider<string>;
16
- requestHandler: (import("@aws-sdk/types").RequestHandler<any, any, import("@aws-sdk/types").HttpHandlerOptions> & import("@aws-sdk/protocol-http").HttpHandler) | NodeHttp2Handler;
16
+ requestHandler: (import("@aws-sdk/types").RequestHandler<any, any, import("@aws-sdk/types").HttpHandlerOptions> & import("@aws-sdk/protocol-http").HttpHandler) | RequestHandler;
17
17
  retryMode: string | import("@aws-sdk/types").Provider<string>;
18
18
  sha256: import("@aws-sdk/types").HashConstructor;
19
19
  streamCollector: import("@aws-sdk/types").StreamCollector;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@aws-sdk/client-lex-runtime-v2",
3
3
  "description": "AWS SDK for JavaScript Lex Runtime V2 Client for Node.js, Browser and React Native",
4
- "version": "3.87.0",
4
+ "version": "3.94.0",
5
5
  "scripts": {
6
6
  "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
7
7
  "build:cjs": "tsc -p tsconfig.cjs.json",
@@ -18,9 +18,9 @@
18
18
  "dependencies": {
19
19
  "@aws-crypto/sha256-browser": "2.0.0",
20
20
  "@aws-crypto/sha256-js": "2.0.0",
21
- "@aws-sdk/client-sts": "3.87.0",
21
+ "@aws-sdk/client-sts": "3.94.0",
22
22
  "@aws-sdk/config-resolver": "3.80.0",
23
- "@aws-sdk/credential-provider-node": "3.87.0",
23
+ "@aws-sdk/credential-provider-node": "3.94.0",
24
24
  "@aws-sdk/eventstream-handler-node": "3.78.0",
25
25
  "@aws-sdk/eventstream-serde-browser": "3.78.0",
26
26
  "@aws-sdk/eventstream-serde-config-resolver": "3.78.0",
@@ -38,7 +38,7 @@
38
38
  "@aws-sdk/middleware-stack": "3.78.0",
39
39
  "@aws-sdk/middleware-user-agent": "3.78.0",
40
40
  "@aws-sdk/node-config-provider": "3.80.0",
41
- "@aws-sdk/node-http-handler": "3.82.0",
41
+ "@aws-sdk/node-http-handler": "3.94.0",
42
42
  "@aws-sdk/protocol-http": "3.78.0",
43
43
  "@aws-sdk/smithy-client": "3.85.0",
44
44
  "@aws-sdk/types": "3.78.0",