@aws/nx-plugin 1.0.0-rc.50 → 1.0.0-rc.52

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 (32) hide show
  1. package/generators.json +7 -0
  2. package/migrations.json +5 -0
  3. package/package.json +1 -1
  4. package/src/internal/test-matrix/generator.d.ts +29 -0
  5. package/src/internal/test-matrix/generator.js +660 -0
  6. package/src/internal/test-matrix/generator.js.map +1 -0
  7. package/src/internal/test-matrix/schema.d.js +6 -0
  8. package/src/internal/test-matrix/schema.d.js.map +1 -0
  9. package/src/internal/test-matrix/schema.d.ts +12 -0
  10. package/src/internal/test-matrix/schema.json +21 -0
  11. package/src/migrations/latest/user-identity-waf-allow-localhost-callback/migration.d.ts +6 -0
  12. package/src/migrations/latest/user-identity-waf-allow-localhost-callback/migration.js +217 -0
  13. package/src/migrations/latest/user-identity-waf-allow-localhost-callback/migration.js.map +1 -0
  14. package/src/sdk/py.d.ts +2 -0
  15. package/src/sdk/py.js +1 -0
  16. package/src/sdk/py.js.map +1 -1
  17. package/src/sdk/ts.d.ts +2 -0
  18. package/src/sdk/ts.js +2 -0
  19. package/src/sdk/ts.js.map +1 -1
  20. package/src/sdk/utils/format.d.ts +1 -1
  21. package/src/sdk/utils/format.js.map +1 -1
  22. package/src/ts/rdb/generator.js +19 -1
  23. package/src/ts/rdb/generator.js.map +1 -1
  24. package/src/ts/react-website/app/__snapshots__/generator.spec.ts.snap +66 -66
  25. package/src/ts/react-website/app/generator.js +10 -1
  26. package/src/ts/react-website/app/generator.js.map +1 -1
  27. package/src/ts/react-website/cognito-auth/__snapshots__/generator.spec.ts.snap +25 -3
  28. package/src/utils/format.d.ts +11 -1
  29. package/src/utils/format.js +25 -2
  30. package/src/utils/format.js.map +1 -1
  31. package/src/utils/identity-constructs/files/cdk/core/user-identity.ts.template +25 -3
  32. package/src/utils/identity-constructs/files/terraform/core/user-identity/identity/identity.tf.template +25 -8
package/generators.json CHANGED
@@ -495,6 +495,13 @@
495
495
  "description": "Connect a py#mcp-server to a py#rdb project",
496
496
  "metric": "g59",
497
497
  "hidden": true
498
+ },
499
+ "internal#test-matrix": {
500
+ "factory": "./src/internal/test-matrix/generator",
501
+ "schema": "./src/internal/test-matrix/schema.json",
502
+ "description": "Scaffold every generator permutation for end to end tests",
503
+ "metric": "t1",
504
+ "hidden": true
498
505
  }
499
506
  }
500
507
  }
package/migrations.json CHANGED
@@ -16,6 +16,11 @@
16
16
  "version": "1.0.0-rc.50",
17
17
  "description": "Adopt an existing Terraform state bucket in the vended bootstrap script when its state object is missing",
18
18
  "implementation": "./src/migrations/latest/terraform-bootstrap-adopt-existing-bucket/migration"
19
+ },
20
+ "latest-user-identity-waf-allow-localhost-callback": {
21
+ "version": "1.0.0-rc.52",
22
+ "description": "Count the EC2MetaDataSSRF_QUERYARGUMENTS WAF rule on the UserIdentity Web ACL so sign-in from a local dev server is not blocked",
23
+ "implementation": "./src/migrations/latest/user-identity-waf-allow-localhost-callback/migration"
19
24
  }
20
25
  }
21
26
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aws/nx-plugin",
3
- "version": "1.0.0-rc.50",
3
+ "version": "1.0.0-rc.52",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "https://github.com/awslabs/nx-plugin-for-aws.git",
@@ -0,0 +1,29 @@
1
+ /**
2
+ * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
3
+ * SPDX-License-Identifier: Apache-2.0
4
+ */
5
+ import type { GeneratorCallback, Tree } from '@nx/devkit';
6
+ import type { InternalTestMatrixGeneratorSchema } from './schema';
7
+ /**
8
+ * Scaffolds every generator, component and connection permutation the e2e tests
9
+ * cover, by composing the generators in-process on a single tree.
10
+ *
11
+ * This ships with the plugin so each released version carries the matrix of the
12
+ * generators *it* had. A test upgrading an old workspace scaffolds with the
13
+ * released version's own matrix and never has to reason about which generators
14
+ * existed when — driving the CLI from the test repo instead would couple the
15
+ * test to a generator list that only describes today's plugin.
16
+ *
17
+ * Hidden and undocumented: it exists for the e2e suite, not for users.
18
+ *
19
+ * Options are typed against each generator's schema, so adding a required option
20
+ * or changing an enum breaks the build here rather than silently reducing
21
+ * coverage.
22
+ *
23
+ * Projects are generated with `preferInstallDependencies: false` by default and
24
+ * the returned callback installs once. Nothing composed here reads the project
25
+ * graph (only `ts#sync` does, which is not part of the matrix), so no
26
+ * intermediate install is needed.
27
+ */
28
+ export declare const internalTestMatrixGenerator: (tree: Tree, options?: InternalTestMatrixGeneratorSchema) => Promise<GeneratorCallback>;
29
+ export default internalTestMatrixGenerator;