@aws/nx-plugin 0.103.0 → 0.104.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.
Files changed (22) hide show
  1. package/package.json +1 -1
  2. package/src/open-api/ts-client/__snapshots__/generator.additional-properties.spec.ts.snap +202 -0
  3. package/src/open-api/ts-client/__snapshots__/generator.content-type.spec.ts.snap +475 -0
  4. package/src/open-api/ts-client/__snapshots__/generator.fast-api.spec.ts.snap +353 -0
  5. package/src/open-api/ts-client/files/client.gen.ts.template +22 -1
  6. package/src/open-api/ts-client/files/types.gen.ts.template +5 -1
  7. package/src/open-api/utils/codegen-data.js +7 -2
  8. package/src/open-api/utils/codegen-data.js.map +1 -1
  9. package/src/open-api/utils/normalise.js +14 -0
  10. package/src/open-api/utils/normalise.js.map +1 -1
  11. package/src/py/fast-api/__snapshots__/generator.spec.ts.snap +8 -8
  12. package/src/py/lambda-function/__snapshots__/generator.spec.ts.snap +3 -3
  13. package/src/py/mcp-server/files/deploy/Dockerfile.template +1 -1
  14. package/src/py/project/generator.js +4 -4
  15. package/src/py/strands-agent/__snapshots__/generator.spec.ts.snap +1 -1
  16. package/src/py/strands-agent/files/deploy/Dockerfile.template +1 -1
  17. package/src/utils/agent-connection/files/py-core-auth/auth/sigv4.py.template +1 -1
  18. package/src/utils/api-constructs/files/cdk/app/apis/http/__apiNameKebabCase__.ts.template +1 -1
  19. package/src/utils/api-constructs/files/cdk/app/apis/rest/__apiNameKebabCase__.ts.template +1 -1
  20. package/src/utils/api-constructs/files/terraform/app/apis/http/__apiNameKebabCase__/__apiNameKebabCase__.tf.template +1 -1
  21. package/src/utils/api-constructs/files/terraform/app/apis/rest/__apiNameKebabCase__/__apiNameKebabCase__.tf.template +1 -1
  22. package/src/utils/function-constructs/function-constructs.js +2 -2
@@ -478,7 +478,7 @@ export class TestApi<
478
478
  pattern: 'isolated',
479
479
  operations: OPERATION_DETAILS,
480
480
  defaultIntegrationOptions: <FunctionProps>{
481
- runtime: Runtime.PYTHON_3_12,
481
+ runtime: Runtime.PYTHON_3_14,
482
482
  handler: 'run.sh',
483
483
  code: Code.fromAsset(
484
484
  url.fileURLToPath(
@@ -1368,7 +1368,7 @@ export class TestApi<
1368
1368
  pattern: 'isolated',
1369
1369
  operations: OPERATION_DETAILS,
1370
1370
  defaultIntegrationOptions: <FunctionProps>{
1371
- runtime: Runtime.PYTHON_3_12,
1371
+ runtime: Runtime.PYTHON_3_14,
1372
1372
  handler: 'run.sh',
1373
1373
  code: Code.fromAsset(
1374
1374
  url.fileURLToPath(
@@ -2296,7 +2296,7 @@ resource "aws_lambda_function" "api_lambda" {
2296
2296
  function_name = "TestApiHandler"
2297
2297
  role = aws_iam_role.lambda_execution_role.arn
2298
2298
  handler = "run.sh"
2299
- runtime = "python3.12"
2299
+ runtime = "python3.14"
2300
2300
  layers = ["arn:aws:lambda:\${data.aws_region.current.name}:753240598075:layer:LambdaAdapterLayerX86:24"]
2301
2301
  timeout = 30
2302
2302
  memory_size = 128
@@ -2944,7 +2944,7 @@ resource "aws_lambda_function" "api_lambda" {
2944
2944
  function_name = "TestApiHandler"
2945
2945
  role = aws_iam_role.lambda_execution_role.arn
2946
2946
  handler = "run.sh"
2947
- runtime = "python3.12"
2947
+ runtime = "python3.14"
2948
2948
  layers = ["arn:aws:lambda:\${data.aws_region.current.name}:753240598075:layer:LambdaAdapterLayerX86:24"]
2949
2949
  timeout = 30
2950
2950
  memory_size = 128
@@ -3579,7 +3579,7 @@ resource "aws_lambda_function" "api_lambda" {
3579
3579
  function_name = "TestApiHandler"
3580
3580
  role = aws_iam_role.lambda_execution_role.arn
3581
3581
  handler = "run.sh"
3582
- runtime = "python3.12"
3582
+ runtime = "python3.14"
3583
3583
  layers = ["arn:aws:lambda:\${data.aws_region.current.name}:753240598075:layer:LambdaAdapterLayerX86:24"]
3584
3584
  timeout = 30
3585
3585
  memory_size = 128
@@ -4238,7 +4238,7 @@ resource "aws_lambda_function" "api_lambda" {
4238
4238
  function_name = "TestApiHandler"
4239
4239
  role = aws_iam_role.lambda_execution_role.arn
4240
4240
  handler = "run.sh"
4241
- runtime = "python3.12"
4241
+ runtime = "python3.14"
4242
4242
  layers = ["arn:aws:lambda:\${data.aws_region.current.name}:753240598075:layer:LambdaAdapterLayerX86:24"]
4243
4243
  timeout = 30
4244
4244
  memory_size = 128
@@ -5041,7 +5041,7 @@ resource "aws_lambda_function" "api_lambda" {
5041
5041
  function_name = "TestApiHandler"
5042
5042
  role = aws_iam_role.lambda_execution_role.arn
5043
5043
  handler = "run.sh"
5044
- runtime = "python3.12"
5044
+ runtime = "python3.14"
5045
5045
  layers = ["arn:aws:lambda:\${data.aws_region.current.name}:753240598075:layer:LambdaAdapterLayerX86:24"]
5046
5046
  timeout = 30
5047
5047
  memory_size = 128
@@ -5846,7 +5846,7 @@ resource "aws_lambda_function" "api_lambda" {
5846
5846
  function_name = "TestApiHandler"
5847
5847
  role = aws_iam_role.lambda_execution_role.arn
5848
5848
  handler = "run.sh"
5849
- runtime = "python3.12"
5849
+ runtime = "python3.14"
5850
5850
  layers = ["arn:aws:lambda:\${data.aws_region.current.name}:753240598075:layer:LambdaAdapterLayerX86:24"]
5851
5851
  timeout = 30
5852
5852
  memory_size = 128
@@ -45,7 +45,7 @@ export class TestProjectTestFunction extends Function {
45
45
  constructor(scope: Construct, id: string) {
46
46
  super(scope, id, {
47
47
  timeout: Duration.seconds(30),
48
- runtime: Runtime.PYTHON_3_12,
48
+ runtime: Runtime.PYTHON_3_14,
49
49
  handler: 'test_project.test_function.lambda_handler',
50
50
  code: Code.fromAsset(
51
51
  url.fileURLToPath(
@@ -179,7 +179,7 @@ resource "aws_lambda_function" "lambda_function" {
179
179
  role = aws_iam_role.lambda_role.arn
180
180
  handler = "test_project.test_function.lambda_handler"
181
181
  source_code_hash = data.archive_file.lambda_zip.output_base64sha256
182
- runtime = "python3.12"
182
+ runtime = "python3.14"
183
183
  timeout = 30
184
184
 
185
185
  tracing_config {
@@ -332,7 +332,7 @@ resource "aws_lambda_function" "lambda_function" {
332
332
  role = aws_iam_role.lambda_role.arn
333
333
  handler = "test_project.snapshot_function.lambda_handler"
334
334
  source_code_hash = data.archive_file.lambda_zip.output_base64sha256
335
- runtime = "python3.12"
335
+ runtime = "python3.14"
336
336
  timeout = 30
337
337
 
338
338
  tracing_config {
@@ -1,4 +1,4 @@
1
- FROM public.ecr.aws/docker/library/python:3.12-slim
1
+ FROM public.ecr.aws/docker/library/python:3.14-slim
2
2
 
3
3
  WORKDIR /app
4
4
 
@@ -57,8 +57,8 @@ const pyProjectGenerator = async (tree, schema) => {
57
57
  autoActivate: true,
58
58
  packageManager: 'uv',
59
59
  moveDevDependencies: false,
60
- pyenvPythonVersion: '3.12.0',
61
- pyprojectPythonDependency: '>=3.12',
60
+ pyenvPythonVersion: '3.14.0',
61
+ pyprojectPythonDependency: '>=3.14',
62
62
  });
63
63
  }
64
64
  await (0, nxlv_python_1.uvProjectGenerator)(tree, {
@@ -68,8 +68,8 @@ const pyProjectGenerator = async (tree, schema) => {
68
68
  buildBundleLocalDependencies: true,
69
69
  linter: 'ruff',
70
70
  rootPyprojectDependencyGroup: 'main',
71
- pyenvPythonVersion: '3.12.0',
72
- pyprojectPythonDependency: '>=3.12',
71
+ pyenvPythonVersion: '3.14.0',
72
+ pyprojectPythonDependency: '>=3.14',
73
73
  projectType: schema.projectType,
74
74
  projectNameAndRootFormat: 'as-provided',
75
75
  moduleName: normalizedModuleName,
@@ -1,7 +1,7 @@
1
1
  // Vitest Snapshot v1, https://vitest.dev/guide/snapshot.html
2
2
 
3
3
  exports[`py#strands-agent generator > should match snapshot for BedrockAgentCoreRuntime generated constructs files > agent-Dockerfile 1`] = `
4
- "FROM public.ecr.aws/docker/library/python:3.12-slim
4
+ "FROM public.ecr.aws/docker/library/python:3.14-slim
5
5
 
6
6
  WORKDIR /app
7
7
 
@@ -1,4 +1,4 @@
1
- FROM public.ecr.aws/docker/library/python:3.12-slim
1
+ FROM public.ecr.aws/docker/library/python:3.14-slim
2
2
 
3
3
  WORKDIR /app
4
4
 
@@ -25,7 +25,7 @@ class SigV4HTTPXAuth(httpx.Auth):
25
25
 
26
26
  def auth_flow(
27
27
  self, request: httpx.Request
28
- ) -> Generator[httpx.Request, httpx.Response, None]:
28
+ ) -> Generator[httpx.Request, httpx.Response]:
29
29
  headers = dict(request.headers)
30
30
 
31
31
  headers.pop("connection", None)
@@ -121,7 +121,7 @@ export class <%= apiNameClassName %><
121
121
  ),
122
122
  ),
123
123
  <%_ } else if (backend.type === 'fastapi') { _%>
124
- runtime: Runtime.PYTHON_3_12,
124
+ runtime: Runtime.PYTHON_3_14,
125
125
  handler: 'run.sh',
126
126
  code: Code.fromAsset(
127
127
  url.fileURLToPath(
@@ -128,7 +128,7 @@ export class <%= apiNameClassName %><
128
128
  ),
129
129
  ),
130
130
  <%_ } else if (backend.type === 'fastapi') { _%>
131
- runtime: Runtime.PYTHON_3_12,
131
+ runtime: Runtime.PYTHON_3_14,
132
132
  handler: 'run.sh',
133
133
  code: Code.fromAsset(
134
134
  url.fileURLToPath(
@@ -133,7 +133,7 @@ resource "aws_lambda_function" "api_lambda" {
133
133
  runtime = "nodejs22.x"
134
134
  <%_ } else if (backend.type === 'fastapi') { _%>
135
135
  handler = "run.sh"
136
- runtime = "python3.12"
136
+ runtime = "python3.14"
137
137
  layers = ["arn:aws:lambda:${data.aws_region.current.name}:753240598075:layer:LambdaAdapterLayerX86:24"]
138
138
  <%_ } _%>
139
139
  timeout = 30
@@ -130,7 +130,7 @@ resource "aws_lambda_function" "api_lambda" {
130
130
  runtime = "nodejs22.x"
131
131
  <%_ } else if (backend.type === 'fastapi') { _%>
132
132
  handler = "run.sh"
133
- runtime = "python3.12"
133
+ runtime = "python3.14"
134
134
  layers = ["arn:aws:lambda:${data.aws_region.current.name}:753240598075:layer:LambdaAdapterLayerX86:24"]
135
135
  <%_ } _%>
136
136
  timeout = 30
@@ -42,7 +42,7 @@ const addLambdaFunctionCdkConstructs = async (tree, options) => {
42
42
  // Generate app specific CDK construct
43
43
  (0, devkit_1.generateFiles)(tree, (0, devkit_1.joinPathFragments)(__dirname, 'files', 'cdk', 'app', 'lambda-functions'), (0, devkit_1.joinPathFragments)(shared_constructs_constants_1.PACKAGES_DIR, shared_constructs_constants_1.SHARED_CONSTRUCTS_DIR, 'src', 'app', 'lambda-functions'), {
44
44
  ...options,
45
- runtime: `Runtime.${options.runtime === 'python' ? 'PYTHON_3_12' : 'NODEJS_LATEST'}`,
45
+ runtime: `Runtime.${options.runtime === 'python' ? 'PYTHON_3_14' : 'NODEJS_LATEST'}`,
46
46
  }, {
47
47
  overwriteStrategy: devkit_1.OverwriteStrategy.KeepExisting,
48
48
  });
@@ -54,7 +54,7 @@ const addLambdaFunctionTerraformModules = (tree, options) => {
54
54
  // Generate app specific terraform module
55
55
  (0, devkit_1.generateFiles)(tree, (0, devkit_1.joinPathFragments)(__dirname, 'files', 'terraform', 'app', 'lambda-functions'), (0, devkit_1.joinPathFragments)(shared_constructs_constants_1.PACKAGES_DIR, shared_constructs_constants_1.SHARED_TERRAFORM_DIR, 'src', 'app', 'lambda-functions'), {
56
56
  ...options,
57
- runtime: options.runtime === 'python' ? 'python3.12' : 'nodejs22.x',
57
+ runtime: options.runtime === 'python' ? 'python3.14' : 'nodejs22.x',
58
58
  }, {
59
59
  overwriteStrategy: devkit_1.OverwriteStrategy.KeepExisting,
60
60
  });