@aws/nx-plugin 1.0.4 → 1.0.6

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.
Files changed (38) hide show
  1. package/LICENSE-THIRD-PARTY +70 -92
  2. package/migrations.json +6 -1
  3. package/package.json +6 -6
  4. package/src/agentcore-gateway/__snapshots__/generator.spec.ts.snap +1 -1
  5. package/src/infra/app/__snapshots__/generator.spec.ts.snap +3 -3
  6. package/src/migrations/v1.0.5/0001-api-custom-domain-runtime-config/metadata.json +3 -0
  7. package/src/migrations/v1.0.5/0001-api-custom-domain-runtime-config/migration.d.ts +6 -0
  8. package/src/migrations/v1.0.5/0001-api-custom-domain-runtime-config/migration.js +362 -0
  9. package/src/migrations/v1.0.5/0001-api-custom-domain-runtime-config/migration.js.map +1 -0
  10. package/src/preset/__snapshots__/generator.spec.ts.snap +2 -2
  11. package/src/py/agent/__snapshots__/generator.constructs.spec.ts.snap +6 -6
  12. package/src/py/agent/__snapshots__/generator.frameworks.spec.ts.snap +8 -8
  13. package/src/py/agent/__snapshots__/generator.protocols.spec.ts.snap +4 -4
  14. package/src/py/dynamodb/__snapshots__/generator.spec.ts.snap +2 -2
  15. package/src/py/fast-api/__snapshots__/generator.spec.ts.snap +54 -6
  16. package/src/py/fast-api/__snapshots__/generator.terraform.spec.ts.snap +390 -18
  17. package/src/py/lambda-function/__snapshots__/generator.spec.ts.snap +2 -2
  18. package/src/py/mcp-server/__snapshots__/generator.spec.ts.snap +4 -4
  19. package/src/py/rdb/__snapshots__/generator.spec.ts.snap +2 -2
  20. package/src/smithy/project/__snapshots__/generator.spec.ts.snap +5 -5
  21. package/src/smithy/ts/api/__snapshots__/generator.spec.ts.snap +260 -12
  22. package/src/trpc/backend/__snapshots__/generator.spec.ts.snap +444 -24
  23. package/src/ts/agent/__snapshots__/generator.spec.ts.snap +4 -4
  24. package/src/ts/dcr-proxy/__snapshots__/generator.spec.ts.snap +1 -1
  25. package/src/ts/dynamodb/__snapshots__/generator.spec.ts.snap +2 -2
  26. package/src/ts/lambda-function/__snapshots__/generator.spec.ts.snap +2 -2
  27. package/src/ts/mcp-server/__snapshots__/generator.spec.ts.snap +2 -2
  28. package/src/ts/rdb/__snapshots__/generator.spec.ts.snap +6 -6
  29. package/src/ts/react-website/app/__snapshots__/generator.spec.ts.snap +21 -21
  30. package/src/ts/react-website/cognito-auth/__snapshots__/generator.terraform.spec.ts.snap +2 -2
  31. package/src/utils/api-constructs/files/cdk/core/api/http/http-api.ts.template +34 -4
  32. package/src/utils/api-constructs/files/cdk/core/api/rest/rest-api.ts.template +20 -2
  33. package/src/utils/api-constructs/files/terraform/app/apis/http/__apiNameKebabCase__/__apiNameKebabCase__.tf.template +63 -1
  34. package/src/utils/api-constructs/files/terraform/app/apis/rest/__apiNameKebabCase__/__apiNameKebabCase__.tf.template +63 -1
  35. package/src/utils/docker.d.ts +1 -1
  36. package/src/utils/versions.d.ts +56 -56
  37. package/src/utils/versions.js +55 -55
  38. package/src/utils/versions.js.map +1 -1
@@ -108,7 +108,7 @@ THE SOFTWARE.
108
108
 
109
109
  ---
110
110
 
111
- The following software may be included in this product: @astral-sh/ruff-wasm-nodejs (0.16.9)
111
+ The following software may be included in this product: @astral-sh/ruff-wasm-nodejs (0.16.10)
112
112
  This software contains the following license and notice below:
113
113
 
114
114
  MIT License
@@ -3898,7 +3898,7 @@ SOFTWARE.
3898
3898
 
3899
3899
  ---
3900
3900
 
3901
- The following software may be included in this product: @modelcontextprotocol/sdk (1.30.1)
3901
+ The following software may be included in this product: @modelcontextprotocol/sdk (1.32.0)
3902
3902
  This software contains the following license and notice below:
3903
3903
 
3904
3904
  MIT License
@@ -4247,7 +4247,7 @@ USE OR OTHER DEALINGS IN THE SOFTWARE.
4247
4247
 
4248
4248
  ---
4249
4249
 
4250
- The following software may be included in this product: @nxlv/python (23.1.1)
4250
+ The following software may be included in this product: @nxlv/python (23.2.1)
4251
4251
  This software contains the following license and notice below:
4252
4252
 
4253
4253
  MIT License
@@ -4274,7 +4274,7 @@ SOFTWARE.
4274
4274
 
4275
4275
  ---
4276
4276
 
4277
- The following software may be included in this product: @oxc-project/types (0.150.0)
4277
+ The following software may be included in this product: @oxc-project/types (0.151.0)
4278
4278
  This software contains the following license and notice below:
4279
4279
 
4280
4280
  MIT License
@@ -14165,7 +14165,7 @@ SOFTWARE.
14165
14165
 
14166
14166
  ---
14167
14167
 
14168
- The following software may be included in this product: rolldown (1.2.9)
14168
+ The following software may be included in this product: rolldown (1.2.11)
14169
14169
  This software contains the following license and notice below:
14170
14170
 
14171
14171
  MIT License
@@ -16088,7 +16088,7 @@ SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
16088
16088
 
16089
16089
  ---
16090
16090
 
16091
- The following software may be included in this product: vite (8.3.1)
16091
+ The following software may be included in this product: vite (8.3.2)
16092
16092
  This software contains the following license and notice below:
16093
16093
 
16094
16094
  # Vite core license
@@ -16767,35 +16767,6 @@ Repository: https://github.com/expressjs/cors
16767
16767
 
16768
16768
  ---------------------------------------
16769
16769
 
16770
- ## cross-spawn
16771
- License: MIT
16772
- By: André Cruz
16773
- Repository: https://github.com/moxystudio/node-cross-spawn
16774
-
16775
- > The MIT License (MIT)
16776
- >
16777
- > Copyright (c) 2018 Made With MOXY Lda <hello@moxy.studio>
16778
- >
16779
- > Permission is hereby granted, free of charge, to any person obtaining a copy
16780
- > of this software and associated documentation files (the "Software"), to deal
16781
- > in the Software without restriction, including without limitation the rights
16782
- > to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
16783
- > copies of the Software, and to permit persons to whom the Software is
16784
- > furnished to do so, subject to the following conditions:
16785
- >
16786
- > The above copyright notice and this permission notice shall be included in
16787
- > all copies or substantial portions of the Software.
16788
- >
16789
- > THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16790
- > IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
16791
- > FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
16792
- > AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
16793
- > LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
16794
- > OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
16795
- > THE SOFTWARE.
16796
-
16797
- ---------------------------------------
16798
-
16799
16770
  ## cssesc
16800
16771
  License: MIT
16801
16772
  By: Mathias Bynens
@@ -17319,29 +17290,6 @@ Repository: https://github.com/Rich-Harris/is-reference
17319
17290
 
17320
17291
  ---------------------------------------
17321
17292
 
17322
- ## isexe, which
17323
- License: ISC
17324
- By: Isaac Z. Schlueter
17325
- Repositories: https://github.com/isaacs/isexe, https://github.com/isaacs/node-which
17326
-
17327
- > The ISC License
17328
- >
17329
- > Copyright (c) Isaac Z. Schlueter and Contributors
17330
- >
17331
- > Permission to use, copy, modify, and/or distribute this software for any
17332
- > purpose with or without fee is hereby granted, provided that the above
17333
- > copyright notice and this permission notice appear in all copies.
17334
- >
17335
- > THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
17336
- > WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
17337
- > MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
17338
- > ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
17339
- > WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
17340
- > ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR
17341
- > IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
17342
-
17343
- ---------------------------------------
17344
-
17345
17293
  ## js-tokens
17346
17294
  License: MIT
17347
17295
  By: Simon Lydell
@@ -17762,23 +17710,6 @@ Repository: https://github.com/pillarjs/parseurl
17762
17710
 
17763
17711
  ---------------------------------------
17764
17712
 
17765
- ## path-key, shebang-regex
17766
- License: MIT
17767
- By: Sindre Sorhus
17768
- Repositories: https://github.com/sindresorhus/path-key, https://github.com/sindresorhus/shebang-regex
17769
-
17770
- > MIT License
17771
- >
17772
- > Copyright (c) Sindre Sorhus <sindresorhus@gmail.com> (sindresorhus.com)
17773
- >
17774
- > Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
17775
- >
17776
- > The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
17777
- >
17778
- > THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
17779
-
17780
- ---------------------------------------
17781
-
17782
17713
  ## periscopic
17783
17714
  License: MIT
17784
17715
  Repository: https://github.com/Rich-Harris/periscopic
@@ -18089,23 +18020,6 @@ Repositories: https://github.com/lukeed/resolve.exports, https://github.com/luke
18089
18020
 
18090
18021
  ---------------------------------------
18091
18022
 
18092
- ## shebang-command
18093
- License: MIT
18094
- By: Kevin Mårtensson
18095
- Repository: https://github.com/kevva/shebang-command
18096
-
18097
- > MIT License
18098
- >
18099
- > Copyright (c) Kevin Mårtensson <kevinmartensson@gmail.com> (github.com/kevva)
18100
- >
18101
- > Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
18102
- >
18103
- > The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
18104
- >
18105
- > THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
18106
-
18107
- ---------------------------------------
18108
-
18109
18023
  ## shell-quote
18110
18024
  License: MIT
18111
18025
  By: James Halliday
@@ -18211,6 +18125,35 @@ Repository: https://github.com/antfu/strip-literal
18211
18125
 
18212
18126
  ---------------------------------------
18213
18127
 
18128
+ ## tinyexec
18129
+ License: MIT
18130
+ By: James Garbutt
18131
+ Repository: https://github.com/tinylibs/tinyexec
18132
+
18133
+ > MIT License
18134
+ >
18135
+ > Copyright (c) 2024 Tinylibs
18136
+ >
18137
+ > Permission is hereby granted, free of charge, to any person obtaining a copy
18138
+ > of this software and associated documentation files (the "Software"), to deal
18139
+ > in the Software without restriction, including without limitation the rights
18140
+ > to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
18141
+ > copies of the Software, and to permit persons to whom the Software is
18142
+ > furnished to do so, subject to the following conditions:
18143
+ >
18144
+ > The above copyright notice and this permission notice shall be included in all
18145
+ > copies or substantial portions of the Software.
18146
+ >
18147
+ > THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
18148
+ > IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
18149
+ > FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18150
+ > AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
18151
+ > LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
18152
+ > OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
18153
+ > SOFTWARE.
18154
+
18155
+ ---------------------------------------
18156
+
18214
18157
  ## to-regex-range
18215
18158
  License: MIT
18216
18159
  By: Jon Schlinkert, Rouven Weßling
@@ -27569,6 +27512,41 @@ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
27569
27512
 
27570
27513
  ---
27571
27514
 
27515
+ The following software may be included in this product: qs (6.16.0)
27516
+ This software contains the following license and notice below:
27517
+
27518
+ BSD 3-Clause License
27519
+
27520
+ Copyright (c) 2014, Nathan LaFreniere and other [contributors](https://github.com/ljharb/qs/graphs/contributors)
27521
+ All rights reserved.
27522
+
27523
+ Redistribution and use in source and binary forms, with or without
27524
+ modification, are permitted provided that the following conditions are met:
27525
+
27526
+ 1. Redistributions of source code must retain the above copyright notice, this
27527
+ list of conditions and the following disclaimer.
27528
+
27529
+ 2. Redistributions in binary form must reproduce the above copyright notice,
27530
+ this list of conditions and the following disclaimer in the documentation
27531
+ and/or other materials provided with the distribution.
27532
+
27533
+ 3. Neither the name of the copyright holder nor the names of its
27534
+ contributors may be used to endorse or promote products derived from
27535
+ this software without specific prior written permission.
27536
+
27537
+ THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
27538
+ AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
27539
+ IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
27540
+ DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
27541
+ FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
27542
+ DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
27543
+ SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
27544
+ CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
27545
+ OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
27546
+ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
27547
+
27548
+ ---
27549
+
27572
27550
  The following software may be included in this product: smol-toml (1.6.1)
27573
27551
  This software contains the following license and notice below:
27574
27552
 
package/migrations.json CHANGED
@@ -377,8 +377,13 @@
377
377
  "description": "Add the terraform-init target to Terraform projects so the shared provider plugin cache has a single writer",
378
378
  "implementation": "./src/migrations/v1.0.3/0001-terraform-init-target/migration"
379
379
  },
380
+ "v1.0.5-0001-api-custom-domain-runtime-config": {
381
+ "version": "1.0.5",
382
+ "description": "Publish a configured custom domain as the API URL in runtime config for vended REST/HTTP API constructs and Terraform modules, and add custom domain inputs to the Terraform API modules",
383
+ "implementation": "./src/migrations/v1.0.5/0001-api-custom-domain-runtime-config/migration"
384
+ },
380
385
  "sync-vended-versions": {
381
- "version": "1.0.4",
386
+ "version": "1.0.6",
382
387
  "description": "Sync vended dependency versions and the tracked plugin version to those vended by this release",
383
388
  "implementation": "./src/utils/version-upgrade-migration/migration"
384
389
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aws/nx-plugin",
3
- "version": "1.0.4",
3
+ "version": "1.0.6",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "https://github.com/awslabs/nx-plugin-for-aws.git",
@@ -40,17 +40,17 @@
40
40
  },
41
41
  "dependencies": {
42
42
  "@apidevtools/swagger-parser": "12.1.0",
43
- "@astral-sh/ruff-wasm-nodejs": "0.16.9",
43
+ "@astral-sh/ruff-wasm-nodejs": "0.16.10",
44
44
  "@biomejs/js-api": "6.0.0",
45
- "@biomejs/wasm-nodejs": "2.5.14",
45
+ "@biomejs/wasm-nodejs": "2.5.15",
46
46
  "@getgrit/gritql": "0.0.3",
47
47
  "@iarna/toml": "2.2.5",
48
- "@modelcontextprotocol/sdk": "1.30.1",
48
+ "@modelcontextprotocol/sdk": "1.32.0",
49
49
  "@nx/devkit": "23.2.1",
50
50
  "@nx/js": "23.2.1",
51
51
  "@nx/react": "23.2.1",
52
52
  "@nx/vite": "23.2.1",
53
- "@nxlv/python": "23.1.1",
53
+ "@nxlv/python": "23.2.1",
54
54
  "@phenomnomnominal/tsquery": "6.2.0",
55
55
  "@types/estree": "1.0.9",
56
56
  "@types/js-yaml": "4.0.9",
@@ -79,7 +79,7 @@
79
79
  "typescript": "6.0.3",
80
80
  "unified": "11.0.5",
81
81
  "unist-util-visit": "5.1.0",
82
- "vite": "8.3.1",
82
+ "vite": "8.3.2",
83
83
  "vitest": "4.1.11",
84
84
  "zod": "4.6.5"
85
85
  },
@@ -7,7 +7,7 @@ exports[`agentcore-gateway generator > protocol: http > omits protocol_type from
7
7
  required_providers {
8
8
  aws = {
9
9
  source = "hashicorp/aws"
10
- version = "6.66.0"
10
+ version = "6.67.0"
11
11
  }
12
12
  time = {
13
13
  source = "hashicorp/time"
@@ -50,7 +50,7 @@ exports[`infra generator > should configure Checkov target correctly > checkov-t
50
50
  "default",
51
51
  ],
52
52
  "options": {
53
- "command": "uvx --from checkov==3.3.20 checkov --config-file {projectRoot}/checkov.yml --directory dist/{projectRoot}/cdk.out --framework cloudformation",
53
+ "command": "uvx --from checkov==3.3.22 checkov --config-file {projectRoot}/checkov.yml --directory dist/{projectRoot}/cdk.out --framework cloudformation",
54
54
  },
55
55
  "outputs": [
56
56
  "{workspaceRoot}/dist/{projectRoot}/checkov",
@@ -150,7 +150,7 @@ exports[`infra generator > should configure project.json with correct targets >
150
150
  "default",
151
151
  ],
152
152
  "options": {
153
- "command": "uvx --from checkov==3.3.20 checkov --config-file {projectRoot}/checkov.yml --directory dist/{projectRoot}/cdk.out --framework cloudformation",
153
+ "command": "uvx --from checkov==3.3.22 checkov --config-file {projectRoot}/checkov.yml --directory dist/{projectRoot}/cdk.out --framework cloudformation",
154
154
  },
155
155
  "outputs": [
156
156
  "{workspaceRoot}/dist/{projectRoot}/checkov",
@@ -762,7 +762,7 @@ exports[`infra generator > should handle custom project names correctly > custom
762
762
  "default",
763
763
  ],
764
764
  "options": {
765
- "command": "uvx --from checkov==3.3.20 checkov --config-file {projectRoot}/checkov.yml --directory dist/{projectRoot}/cdk.out --framework cloudformation",
765
+ "command": "uvx --from checkov==3.3.22 checkov --config-file {projectRoot}/checkov.yml --directory dist/{projectRoot}/cdk.out --framework cloudformation",
766
766
  },
767
767
  "outputs": [
768
768
  "{workspaceRoot}/dist/{projectRoot}/checkov",
@@ -0,0 +1,3 @@
1
+ {
2
+ "description": "Publish a configured custom domain as the API URL in runtime config for vended REST/HTTP API constructs and Terraform modules, and add custom domain inputs to the Terraform API modules"
3
+ }
@@ -0,0 +1,6 @@
1
+ /**
2
+ * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
3
+ * SPDX-License-Identifier: Apache-2.0
4
+ */
5
+ import { type MigrationReturnObject, type Tree } from '@nx/devkit';
6
+ export default function migration(tree: Tree): Promise<MigrationReturnObject>;