@aws/nx-plugin 0.22.0 → 0.22.1

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aws/nx-plugin",
3
- "version": "0.22.0",
3
+ "version": "0.22.1",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "https://github.com/awslabs/nx-plugin-for-aws.git",
@@ -28,7 +28,7 @@
28
28
  "@nx/js": "~21.0.3",
29
29
  "@nx/react": "~21.0.3",
30
30
  "@nx/vite": "~21.0.3",
31
- "@nxlv/python": "^20.12.0",
31
+ "@nxlv/python": "^21.0.0",
32
32
  "@phenomnomnominal/tsquery": "6.1.3",
33
33
  "fast-glob": "^3.3.3",
34
34
  "lodash.camelcase": "^4.3.0",
@@ -8,7 +8,7 @@
8
8
  "addTsPlugin": {
9
9
  "type": "boolean",
10
10
  "description": "Whether to add the ts plugin.",
11
- "default": "true"
11
+ "default": true
12
12
  }
13
13
  }
14
14
  }
@@ -628,12 +628,8 @@ exports[`fastapi project generator > should set up shared constructs for rest >
628
628
  import {
629
629
  RestApi as _RestApi,
630
630
  RestApiProps as _RestApiProps,
631
- AccessLogFormat,
632
631
  IResource,
633
- LogGroupLogDestination,
634
- MethodLoggingLevel,
635
632
  } from 'aws-cdk-lib/aws-apigateway';
636
- import { LogGroup } from 'aws-cdk-lib/aws-logs';
637
633
  import { RuntimeConfig } from '../runtime-config.js';
638
634
  import { Grant, IGrantable } from 'aws-cdk-lib/aws-iam';
639
635
  import { OperationDetails, RestApiIntegration } from './utils.js';
@@ -696,17 +692,8 @@ export class RestApi<
696
692
  super(scope, id);
697
693
  this.integrations = integrations;
698
694
 
699
- // Create the API Gateway REST API with logging enabled
700
- this.api = new _RestApi(this, 'Api', {
701
- deployOptions: {
702
- accessLogDestination: new LogGroupLogDestination(
703
- new LogGroup(this, 'AccessLogs'),
704
- ),
705
- accessLogFormat: AccessLogFormat.clf(),
706
- loggingLevel: MethodLoggingLevel.INFO,
707
- },
708
- ...props,
709
- });
695
+ // Create the API Gateway REST API
696
+ this.api = new _RestApi(this, 'Api', props);
710
697
 
711
698
  // Create API resources and methods for each operation
712
699
  (Object.entries(operations) as [TOperation, OperationDetails][]).map(
@@ -855,12 +855,8 @@ exports[`trpc backend generator > should set up shared constructs for rest > res
855
855
  import {
856
856
  RestApi as _RestApi,
857
857
  RestApiProps as _RestApiProps,
858
- AccessLogFormat,
859
858
  IResource,
860
- LogGroupLogDestination,
861
- MethodLoggingLevel,
862
859
  } from 'aws-cdk-lib/aws-apigateway';
863
- import { LogGroup } from 'aws-cdk-lib/aws-logs';
864
860
  import { RuntimeConfig } from '../runtime-config.js';
865
861
  import { Grant, IGrantable } from 'aws-cdk-lib/aws-iam';
866
862
  import { OperationDetails, RestApiIntegration } from './utils.js';
@@ -923,17 +919,8 @@ export class RestApi<
923
919
  super(scope, id);
924
920
  this.integrations = integrations;
925
921
 
926
- // Create the API Gateway REST API with logging enabled
927
- this.api = new _RestApi(this, 'Api', {
928
- deployOptions: {
929
- accessLogDestination: new LogGroupLogDestination(
930
- new LogGroup(this, 'AccessLogs'),
931
- ),
932
- accessLogFormat: AccessLogFormat.clf(),
933
- loggingLevel: MethodLoggingLevel.INFO,
934
- },
935
- ...props,
936
- });
922
+ // Create the API Gateway REST API
923
+ this.api = new _RestApi(this, 'Api', props);
937
924
 
938
925
  // Create API resources and methods for each operation
939
926
  (Object.entries(operations) as [TOperation, OperationDetails][]).map(
@@ -2,12 +2,8 @@ import { Construct } from 'constructs';
2
2
  import {
3
3
  RestApi as _RestApi,
4
4
  RestApiProps as _RestApiProps,
5
- AccessLogFormat,
6
5
  IResource,
7
- LogGroupLogDestination,
8
- MethodLoggingLevel,
9
6
  } from 'aws-cdk-lib/aws-apigateway';
10
- import { LogGroup } from 'aws-cdk-lib/aws-logs';
11
7
  import { RuntimeConfig } from '../runtime-config.js';
12
8
  import { Grant, IGrantable } from 'aws-cdk-lib/aws-iam';
13
9
  import { OperationDetails, RestApiIntegration } from './utils.js';
@@ -70,17 +66,8 @@ export class RestApi<
70
66
  super(scope, id);
71
67
  this.integrations = integrations;
72
68
 
73
- // Create the API Gateway REST API with logging enabled
74
- this.api = new _RestApi(this, 'Api', {
75
- deployOptions: {
76
- accessLogDestination: new LogGroupLogDestination(
77
- new LogGroup(this, 'AccessLogs'),
78
- ),
79
- accessLogFormat: AccessLogFormat.clf(),
80
- loggingLevel: MethodLoggingLevel.INFO,
81
- },
82
- ...props,
83
- });
69
+ // Create the API Gateway REST API
70
+ this.api = new _RestApi(this, 'Api', props);
84
71
 
85
72
  // Create API resources and methods for each operation
86
73
  (Object.entries(operations) as [TOperation, OperationDetails][]).map(
@@ -11,7 +11,7 @@ export declare const VERSIONS: {
11
11
  readonly '@aws-lambda-powertools/logger': "^2.17.0";
12
12
  readonly '@aws-lambda-powertools/metrics': "^2.17.0";
13
13
  readonly '@aws-lambda-powertools/tracer': "^2.17.0";
14
- readonly '@nxlv/python': "^20.15.0";
14
+ readonly '@nxlv/python': "^21.0.0";
15
15
  readonly '@nx/devkit': "~21.0.3";
16
16
  readonly '@modelcontextprotocol/sdk': "^1.10.2";
17
17
  readonly '@tanstack/react-router': "^1.114.27";
@@ -46,5 +46,5 @@ export declare const VERSIONS: {
46
46
  * Add versions to the given dependencies
47
47
  */
48
48
  export declare const withVersions: (deps: (keyof typeof VERSIONS)[]) => {
49
- [k: string]: "^0.0.60" | "^2.185.0-alpha.0" | "^3.775.0" | "^2.17.0" | "^20.15.0" | "~21.0.3" | "^1.10.2" | "^1.114.27" | "^3.0.94" | "^3.0.928" | "^1.0.38" | "^5.74.3" | "11.0.0" | "^22.13.13" | "^8.10.148" | "^4.2.0" | "^1.0.20" | "^2.1006.0" | "^2.185.0" | "^3.10.3" | "^10.4.2" | "^0.25.1" | "^5.2.5" | "^2.4.0" | "^3.2.0" | "^3.5.3" | "^0.5.21" | "^4.19.3" | "^5.1.4" | "^3.24.2";
49
+ [k: string]: "^0.0.60" | "^2.185.0-alpha.0" | "^3.775.0" | "^2.17.0" | "^21.0.0" | "~21.0.3" | "^1.10.2" | "^1.114.27" | "^3.0.94" | "^3.0.928" | "^1.0.38" | "^5.74.3" | "11.0.0" | "^22.13.13" | "^8.10.148" | "^4.2.0" | "^1.0.20" | "^2.1006.0" | "^2.185.0" | "^3.10.3" | "^10.4.2" | "^0.25.1" | "^5.2.5" | "^2.4.0" | "^3.2.0" | "^3.5.3" | "^0.5.21" | "^4.19.3" | "^5.1.4" | "^3.24.2";
50
50
  };
@@ -14,7 +14,7 @@ exports.VERSIONS = {
14
14
  '@aws-lambda-powertools/logger': '^2.17.0',
15
15
  '@aws-lambda-powertools/metrics': '^2.17.0',
16
16
  '@aws-lambda-powertools/tracer': '^2.17.0',
17
- '@nxlv/python': '^20.15.0',
17
+ '@nxlv/python': '^21.0.0',
18
18
  '@nx/devkit': '~21.0.3',
19
19
  '@modelcontextprotocol/sdk': '^1.10.2',
20
20
  '@tanstack/react-router': '^1.114.27',
@@ -1 +1 @@
1
- {"version":3,"file":"versions.js","sourceRoot":"","sources":["../../../../../packages/nx-plugin/src/utils/versions.ts"],"names":[],"mappings":";;;AAAA;;;GAGG;AACU,QAAA,QAAQ,GAAG;IACtB,iCAAiC,EAAE,SAAS;IAC5C,yCAAyC,EAAE,kBAAkB;IAC7D,kCAAkC,EAAE,UAAU;IAC9C,+BAA+B,EAAE,UAAU;IAC3C,+CAA+C,EAAE,UAAU;IAC3D,+BAA+B,EAAE,SAAS;IAC1C,gCAAgC,EAAE,SAAS;IAC3C,+BAA+B,EAAE,SAAS;IAC1C,cAAc,EAAE,UAAU;IAC1B,YAAY,EAAE,SAAS;IACvB,2BAA2B,EAAE,SAAS;IACtC,wBAAwB,EAAE,WAAW;IACrC,yBAAyB,EAAE,WAAW;IACtC,qCAAqC,EAAE,SAAS;IAChD,+BAA+B,EAAE,UAAU;IAC3C,kCAAkC,EAAE,SAAS;IAC7C,uBAAuB,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AAS;IACtC,wBAAwB,EAAE,WAAW;IACrC,yBAAyB,EAAE,WAAW;IACtC,qCAAqC,EAAE,SAAS;IAChD,+BAA+B,EAAE,UAAU;IAC3C,kCAAkC,EAAE,SAAS;IAC7C,uBAAuB,EAAE,SAAS;IAClC,4BAA4B,EAAE,QAAQ;IACtC,cAAc,EAAE,QAAQ;IACxB,cAAc,EAAE,QAAQ;IACxB,aAAa,EAAE,WAAW;IAC1B,mBAAmB,EAAE,WAAW;IAChC,eAAe,EAAE,QAAQ;IACzB,SAAS,EAAE,SAAS;IACpB,SAAS,EAAE,WAAW;IACtB,aAAa,EAAE,UAAU;IACzB,mBAAmB,EAAE,SAAS;IAC9B,UAAU,EAAE,SAAS;IACrB,OAAO,EAAE,SAAS;IAClB,wBAAwB,EAAE,QAAQ;IAClC,qBAAqB,EAAE,QAAQ;IAC/B,gBAAgB,EAAE,QAAQ;IAC1B,QAAQ,EAAE,QAAQ;IAClB,oBAAoB,EAAE,QAAQ;IAC9B,oBAAoB,EAAE,SAAS;IAC/B,GAAG,EAAE,SAAS;IACd,qBAAqB,EAAE,QAAQ;IAC/B,GAAG,EAAE,SAAS;CACN,CAAC;AAEX;;GAEG;AACI,MAAM,YAAY,GAAG,CAAC,IAA+B,EAAE,EAAE,CAC9D,MAAM,CAAC,WAAW,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,GAAG,EAAE,EAAE,CAAC,CAAC,GAAG,EAAE,gBAAQ,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC;AADjD,QAAA,YAAY,gBACqC"}
@@ -1,2 +0,0 @@
1
- declare const _default: () => Promise<void>;
2
- export default _default;
@@ -1,14 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- const tslib_1 = require("tslib");
4
- /**
5
- * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
6
- * SPDX-License-Identifier: Apache-2.0
7
- */
8
- const devkit_1 = require("@nx/devkit");
9
- // Global Setup https://vitest.dev/config/#globalsetup
10
- exports.default = () => tslib_1.__awaiter(void 0, void 0, void 0, function* () {
11
- // Create the project graph in global setup to ensure it's cached in the daemon
12
- yield (0, devkit_1.createProjectGraphAsync)();
13
- });
14
- //# sourceMappingURL=setup-tests.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"setup-tests.js","sourceRoot":"","sources":["../../../../packages/nx-plugin/src/setup-tests.ts"],"names":[],"mappings":";;;AAAA;;;GAGG;AACH,uCAAqD;AAErD,sDAAsD;AACtD,kBAAe,GAAS,EAAE;IACxB,+EAA+E;IAC/E,MAAM,IAAA,gCAAuB,GAAE,CAAC;AAClC,CAAC,CAAA,CAAC"}