@aws-sdk/middleware-endpoint-discovery 3.36.0 → 3.40.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,38 @@
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.40.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.39.0...v3.40.0) (2021-11-05)
7
+
8
+ **Note:** Version bump only for package @aws-sdk/middleware-endpoint-discovery
9
+
10
+
11
+
12
+
13
+
14
+ # [3.39.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.38.0...v3.39.0) (2021-10-29)
15
+
16
+ **Note:** Version bump only for package @aws-sdk/middleware-endpoint-discovery
17
+
18
+
19
+
20
+
21
+
22
+ # [3.38.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.37.0...v3.38.0) (2021-10-22)
23
+
24
+ **Note:** Version bump only for package @aws-sdk/middleware-endpoint-discovery
25
+
26
+
27
+
28
+
29
+
30
+ # [3.37.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.36.1...v3.37.0) (2021-10-15)
31
+
32
+ **Note:** Version bump only for package @aws-sdk/middleware-endpoint-discovery
33
+
34
+
35
+
36
+
37
+
6
38
  # [3.36.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.35.0...v3.36.0) (2021-10-08)
7
39
 
8
40
 
package/dist-cjs/index.js CHANGED
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  const tslib_1 = require("tslib");
4
- tslib_1.__exportStar(require("./resolveEndpointDiscoveryConfig"), exports);
5
- tslib_1.__exportStar(require("./getEndpointDiscoveryPlugin"), exports);
6
4
  tslib_1.__exportStar(require("./configurations"), exports);
5
+ tslib_1.__exportStar(require("./getEndpointDiscoveryPlugin"), exports);
6
+ tslib_1.__exportStar(require("./resolveEndpointDiscoveryConfig"), exports);
package/dist-es/index.js CHANGED
@@ -1,3 +1,3 @@
1
- export * from "./resolveEndpointDiscoveryConfig";
2
- export * from "./getEndpointDiscoveryPlugin";
3
1
  export * from "./configurations";
2
+ export * from "./getEndpointDiscoveryPlugin";
3
+ export * from "./resolveEndpointDiscoveryConfig";
@@ -1,3 +1,3 @@
1
- export * from "./resolveEndpointDiscoveryConfig";
2
- export * from "./getEndpointDiscoveryPlugin";
3
1
  export * from "./configurations";
2
+ export * from "./getEndpointDiscoveryPlugin";
3
+ export * from "./resolveEndpointDiscoveryConfig";
@@ -1,7 +1,5 @@
1
1
  import { Credentials, Provider } from "@aws-sdk/types";
2
- /**
3
- * Generate key to index the endpoints in the cache
4
- */
2
+
5
3
  export declare const getCacheKey: (commandName: string, config: {
6
4
  credentials: Provider<Credentials>;
7
5
  }, options: {
@@ -10,11 +10,7 @@ export interface EndpointDiscoveryMiddlewareConfig {
10
10
  };
11
11
  }
12
12
  export declare const getEndpointDiscoveryPlugin: (pluginConfig: EndpointDiscoveryResolvedConfig & PreviouslyResolved, middlewareConfig: EndpointDiscoveryMiddlewareConfig) => Pluggable<any, any>;
13
- /**
14
- * @deprecated Use getEndpointDiscoveryPlugin
15
- */
13
+
16
14
  export declare const getEndpointDiscoveryRequiredPlugin: (pluginConfig: EndpointDiscoveryResolvedConfig & PreviouslyResolved, middlewareConfig: Pick<EndpointDiscoveryMiddlewareConfig, Exclude<keyof EndpointDiscoveryMiddlewareConfig, "isDiscoveredEndpointRequired">>) => Pluggable<any, any>;
17
- /**
18
- * @deprecated Use getEndpointDiscoveryPlugin
19
- */
15
+
20
16
  export declare const getEndpointDiscoveryOptionalPlugin: (pluginConfig: EndpointDiscoveryResolvedConfig & PreviouslyResolved, middlewareConfig: Pick<EndpointDiscoveryMiddlewareConfig, Exclude<keyof EndpointDiscoveryMiddlewareConfig, "isDiscoveredEndpointRequired">>) => Pluggable<any, any>;
@@ -1,3 +1,3 @@
1
- export * from "./resolveEndpointDiscoveryConfig";
2
- export * from "./getEndpointDiscoveryPlugin";
3
1
  export * from "./configurations";
2
+ export * from "./getEndpointDiscoveryPlugin";
3
+ export * from "./resolveEndpointDiscoveryConfig";
@@ -8,46 +8,23 @@ export interface PreviouslyResolved {
8
8
  endpointDiscoveryEnabledProvider: Provider<boolean | undefined>;
9
9
  }
10
10
  export interface EndpointDiscoveryInputConfig {
11
- /**
12
- * The size of the client cache storing endpoints from endpoint discovery operations.
13
- * Defaults to 1000.
14
- */
11
+
15
12
  endpointCacheSize?: number;
16
- /**
17
- * Whether to call operations with endpoints given by service dynamically.
18
- * Setting this config to `true` will enable endpoint discovery for all applicable operations.
19
- * Setting it to `false` will explicitly disable endpoint discovery even though operations that
20
- * require endpoint discovery will presumably fail. Leaving it to undefined means SDK only do
21
- * endpoint discovery when it's required. Defaults to `undefined`.
22
- */
13
+
23
14
  endpointDiscoveryEnabled?: boolean | undefined;
24
15
  }
25
16
  export interface EndpointDiscoveryResolvedConfig {
26
- /**
27
- * LRU Cache which stores endpoints from endpoint discovery operations.
28
- * The size is either provided by {@link EndpointDiscoveryInputConfig.endpointCacheSize}.
29
- */
17
+
30
18
  endpointCache: EndpointCache;
31
- /**
32
- * The constructor of the Command used for discovering endpoints.
33
- * @internal
34
- */
19
+
35
20
  endpointDiscoveryCommandCtor: new (comandConfig: any) => any;
36
- /**
37
- * Resolved value for input config {@link EndpointDiscoveryInputConfig.endpointDiscoveryEnabled}.
38
- */
21
+
39
22
  endpointDiscoveryEnabled: Provider<boolean | undefined>;
40
- /**
41
- * Stores whether endpoint discovery configuration is set locally by passing
42
- * {@link EndpointDiscoveryInputConfig.endpointDiscoveryEnabled} during client creation.
43
- * @internal
44
- */
23
+
45
24
  isClientEndpointDiscoveryEnabled: boolean;
46
25
  }
47
26
  export interface EndpointDiscoveryConfigOptions {
48
- /**
49
- * The constructor of the Command used for discovering endpoints.
50
- */
27
+
51
28
  endpointDiscoveryCommandCtor: new (comandConfig: any) => any;
52
29
  }
53
30
  export declare const resolveEndpointDiscoveryConfig: <T>(input: T & PreviouslyResolved & EndpointDiscoveryInputConfig, { endpointDiscoveryCommandCtor }: EndpointDiscoveryConfigOptions) => T & EndpointDiscoveryResolvedConfig;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aws-sdk/middleware-endpoint-discovery",
3
- "version": "3.36.0",
3
+ "version": "3.40.0",
4
4
  "scripts": {
5
5
  "build": "yarn build:cjs && yarn build:es && yarn build:types",
6
6
  "build:cjs": "tsc -p tsconfig.cjs.json",
@@ -18,16 +18,16 @@
18
18
  },
19
19
  "license": "Apache-2.0",
20
20
  "devDependencies": {
21
- "@aws-sdk/node-config-provider": "3.36.0",
21
+ "@aws-sdk/node-config-provider": "3.40.0",
22
22
  "@types/jest": "^26.0.4",
23
23
  "jest": "^26.1.0",
24
24
  "typescript": "~4.3.5"
25
25
  },
26
26
  "dependencies": {
27
- "@aws-sdk/config-resolver": "3.36.0",
27
+ "@aws-sdk/config-resolver": "3.40.0",
28
28
  "@aws-sdk/endpoint-cache": "3.36.0",
29
- "@aws-sdk/protocol-http": "3.36.0",
30
- "@aws-sdk/types": "3.36.0",
29
+ "@aws-sdk/protocol-http": "3.40.0",
30
+ "@aws-sdk/types": "3.40.0",
31
31
  "tslib": "^2.3.0"
32
32
  },
33
33
  "engines": {