Skip to content

Commit f269213

Browse files
authored
chore(region-config-resolver): use region functions from smithy (#7440)
1 parent 8458bab commit f269213

File tree

15 files changed

+1229
-924
lines changed

15 files changed

+1229
-924
lines changed

packages/region-config-resolver/package.json

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -24,17 +24,14 @@
2424
"license": "Apache-2.0",
2525
"dependencies": {
2626
"@aws-sdk/types": "*",
27-
"@smithy/node-config-provider": "^4.3.2",
27+
"@smithy/config-resolver": "^4.3.2",
2828
"@smithy/types": "^4.7.1",
29-
"@smithy/util-config-provider": "^4.2.0",
30-
"@smithy/util-middleware": "^4.2.2",
3129
"tslib": "^2.6.2"
3230
},
3331
"devDependencies": {
3432
"@tsconfig/recommended": "1.0.1",
3533
"concurrently": "7.0.0",
3634
"downlevel-dts": "0.10.1",
37-
"jest": "28.1.1",
3835
"rimraf": "3.0.2",
3936
"typescript": "~5.8.3"
4037
},

packages/region-config-resolver/src/extensions/index.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
import { AwsRegionExtensionConfiguration } from "@aws-sdk/types";
2-
import { Provider } from "@smithy/types";
1+
import type { AwsRegionExtensionConfiguration } from "@aws-sdk/types";
2+
import type { Provider } from "@smithy/types";
33

44
export type RegionExtensionRuntimeConfigType = Partial<{ region: string | Provider<string> }>;
55

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
export * from "./extensions";
2-
export * from "./regionConfig";
2+
export * from "./regionConfig/awsRegionConfig";
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
/**
2+
* Backward compatibility re-export alias.
3+
* @internal
4+
*/
5+
export {
6+
REGION_ENV_NAME,
7+
REGION_INI_NAME,
8+
NODE_REGION_CONFIG_OPTIONS,
9+
NODE_REGION_CONFIG_FILE_OPTIONS,
10+
} from "@smithy/config-resolver";
11+
12+
/**
13+
* Backward compatibility re-export alias.
14+
* @internal
15+
*/
16+
export type { RegionInputConfig, RegionResolvedConfig } from "@smithy/config-resolver";
17+
18+
/**
19+
* Backward compatibility re-export alias.
20+
* @internal
21+
*/
22+
export { resolveRegionConfig } from "@smithy/config-resolver";

packages/region-config-resolver/src/regionConfig/config.spec.ts

Lines changed: 0 additions & 40 deletions
This file was deleted.

packages/region-config-resolver/src/regionConfig/config.ts

Lines changed: 0 additions & 28 deletions
This file was deleted.

packages/region-config-resolver/src/regionConfig/getRealRegion.spec.ts

Lines changed: 0 additions & 38 deletions
This file was deleted.

packages/region-config-resolver/src/regionConfig/getRealRegion.ts

Lines changed: 0 additions & 11 deletions
This file was deleted.

packages/region-config-resolver/src/regionConfig/index.ts

Lines changed: 0 additions & 8 deletions
This file was deleted.

packages/region-config-resolver/src/regionConfig/isFipsRegion.spec.ts

Lines changed: 0 additions & 18 deletions
This file was deleted.

0 commit comments

Comments
 (0)