@aws-amplify/graphql-auth-transformer 3.2.0-rds-5.0 → 3.2.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.
package/CHANGELOG.md CHANGED
@@ -3,13 +3,14 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
- # [3.2.0-rds-5.0](https://github.com/aws-amplify/amplify-category-api/compare/@aws-amplify/graphql-auth-transformer@3.1.9...@aws-amplify/graphql-auth-transformer@3.2.0-rds-5.0) (2023-11-01)
6
+ # [3.2.0](https://github.com/aws-amplify/amplify-category-api/compare/@aws-amplify/graphql-auth-transformer@3.1.10...@aws-amplify/graphql-auth-transformer@3.2.0) (2023-11-15)
7
7
 
8
8
  ### Bug Fixes
9
9
 
10
10
  - **api:** do not allow auth directive on rds model fields ([a1f1ae0](https://github.com/aws-amplify/amplify-category-api/commit/a1f1ae081dd9523e4a3500c6a31905fd4c222fdd))
11
11
  - **api:** iam rule correct cognito pool id ([183e78b](https://github.com/aws-amplify/amplify-category-api/commit/183e78bc94aa548c02536d963129382c8b7eabe4))
12
12
  - **api:** iam support for admin roles with auth utils ([6169cce](https://github.com/aws-amplify/amplify-category-api/commit/6169cce3a1c3708ec491b058e076b92cb1da99bd))
13
+ - Change 'rds' to 'sql' in public-facing symbols ([#2069](https://github.com/aws-amplify/amplify-category-api/issues/2069)) ([ff374dd](https://github.com/aws-amplify/amplify-category-api/commit/ff374dd8398d3f1138a31669b1a5962122039437))
13
14
  - relational auth cases; preserve auth rule schema edits, added multi-auth e2e tests ([#1965](https://github.com/aws-amplify/amplify-category-api/issues/1965)) ([df085b2](https://github.com/aws-amplify/amplify-category-api/commit/df085b2bf75dded743809b59386272070fc92251))
14
15
  - Update rds transformers to accommodate ConfiguredAuthProviders change ([ae2a451](https://github.com/aws-amplify/amplify-category-api/commit/ae2a451d419eed88fecdf4e778410bce5c9d80f8))
15
16
 
@@ -19,6 +20,10 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline
19
20
  - **api:** refactor auth transformer to use vtl generator factory pattern ([e965d24](https://github.com/aws-amplify/amplify-category-api/commit/e965d24731fc1e2300ef0e16b61af6b39afb0cad))
20
21
  - refersTo supports field name mappings on RDS models ([#1865](https://github.com/aws-amplify/amplify-category-api/issues/1865)) ([ee60011](https://github.com/aws-amplify/amplify-category-api/commit/ee60011f5c41d0442e1096dd16d80e94b900745a))
21
22
 
23
+ ## [3.1.10](https://github.com/aws-amplify/amplify-category-api/compare/@aws-amplify/graphql-auth-transformer@3.1.9...@aws-amplify/graphql-auth-transformer@3.1.10) (2023-11-02)
24
+
25
+ **Note:** Version bump only for package @aws-amplify/graphql-auth-transformer
26
+
22
27
  ## [3.1.9](https://github.com/aws-amplify/amplify-category-api/compare/@aws-amplify/graphql-auth-transformer@3.1.8...@aws-amplify/graphql-auth-transformer@3.1.9) (2023-10-21)
23
28
 
24
29
  **Note:** Version bump only for package @aws-amplify/graphql-auth-transformer
@@ -515,9 +515,9 @@ class AuthTransformer extends graphql_transformer_core_1.TransformerAuthBase {
515
515
  roleDefinition.nullAllowedFields = nullAllowedFields;
516
516
  return roleDefinition;
517
517
  });
518
- const { RDSLambdaDataSourceLogicalID } = graphql_transformer_common_1.ResourceConstants.RESOURCES;
518
+ const { SQLLambdaDataSourceLogicalID } = graphql_transformer_common_1.ResourceConstants.RESOURCES;
519
519
  const dataSource = ((0, graphql_transformer_core_1.isRDSModel)(ctx, def.name.value)
520
- ? ctx.api.host.getDataSource(RDSLambdaDataSourceLogicalID)
520
+ ? ctx.api.host.getDataSource(SQLLambdaDataSourceLogicalID)
521
521
  : ctx.api.host.getDataSource(`${def.name.value}Table`));
522
522
  const requestExpression = this.getVtlGenerator(ctx, def.name.value).generateAuthRequestExpression(ctx, def);
523
523
  const authExpression = this.getVtlGenerator(ctx, def.name.value).generateAuthExpressionForUpdate(this.configuredAuthProviders, totalRoles, (_a = def.fields) !== null && _a !== void 0 ? _a : []);
@@ -534,9 +534,9 @@ class AuthTransformer extends graphql_transformer_core_1.TransformerAuthBase {
534
534
  roleDefinition.allowedFields = allowedFields;
535
535
  return roleDefinition;
536
536
  });
537
- const { RDSLambdaDataSourceLogicalID } = graphql_transformer_common_1.ResourceConstants.RESOURCES;
537
+ const { SQLLambdaDataSourceLogicalID } = graphql_transformer_common_1.ResourceConstants.RESOURCES;
538
538
  const dataSource = ((0, graphql_transformer_core_1.isRDSModel)(ctx, def.name.value)
539
- ? ctx.api.host.getDataSource(RDSLambdaDataSourceLogicalID)
539
+ ? ctx.api.host.getDataSource(SQLLambdaDataSourceLogicalID)
540
540
  : ctx.api.host.getDataSource(`${def.name.value}Table`));
541
541
  const requestExpression = this.getVtlGenerator(ctx, def.name.value).generateAuthRequestExpression(ctx, def);
542
542
  const authExpression = this.getVtlGenerator(ctx, def.name.value).generateAuthExpressionForDelete(this.configuredAuthProviders, deleteRoles, (_a = def.fields) !== null && _a !== void 0 ? _a : []);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aws-amplify/graphql-auth-transformer",
3
- "version": "3.2.0-rds-5.0",
3
+ "version": "3.2.0",
4
4
  "description": "Amplify GraphQL @auth transformer",
5
5
  "repository": {
6
6
  "type": "git",
@@ -29,20 +29,20 @@
29
29
  "extract-api": "ts-node ../../scripts/extract-api.ts"
30
30
  },
31
31
  "dependencies": {
32
- "@aws-amplify/graphql-model-transformer": "2.3.0-rds-5.0",
33
- "@aws-amplify/graphql-relational-transformer": "2.2.0-rds-5.0",
34
- "@aws-amplify/graphql-transformer-core": "2.3.0-rds-5.0",
35
- "@aws-amplify/graphql-transformer-interfaces": "3.3.0-rds-5.0",
32
+ "@aws-amplify/graphql-model-transformer": "2.3.0",
33
+ "@aws-amplify/graphql-relational-transformer": "2.2.0",
34
+ "@aws-amplify/graphql-transformer-core": "2.3.0",
35
+ "@aws-amplify/graphql-transformer-interfaces": "3.3.0",
36
36
  "graphql": "^15.5.0",
37
- "graphql-mapping-template": "4.20.13-rds-5.0",
38
- "graphql-transformer-common": "4.26.0-rds-5.0",
37
+ "graphql-mapping-template": "4.20.12",
38
+ "graphql-transformer-common": "4.26.0",
39
39
  "lodash": "^4.17.21",
40
40
  "md5": "^2.3.0"
41
41
  },
42
42
  "devDependencies": {
43
- "@aws-amplify/graphql-index-transformer": "2.2.0-rds-5.0",
44
- "@aws-amplify/graphql-searchable-transformer": "2.3.0-rds-5.0",
45
- "@aws-amplify/graphql-transformer-test-utils": "0.3.0-rds-5.0",
43
+ "@aws-amplify/graphql-index-transformer": "2.2.0",
44
+ "@aws-amplify/graphql-searchable-transformer": "2.3.0",
45
+ "@aws-amplify/graphql-transformer-test-utils": "0.3.0",
46
46
  "@types/node": "^12.12.6"
47
47
  },
48
48
  "peerDependencies": {
@@ -72,5 +72,5 @@
72
72
  }
73
73
  }
74
74
  },
75
- "gitHead": "ddbbff11d6a070cb4d2b9708c60c734a5d139bfc"
75
+ "gitHead": "857bf7833e84e2a88ea19f17b087c202e454bf80"
76
76
  }