@aws-amplify/graphql-auth-transformer 1.0.0-ic-changes.3 → 1.0.3-alpha.7

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 (65) hide show
  1. package/CHANGELOG.md +115 -51
  2. package/LICENSE +183 -183
  3. package/lib/accesscontrol/acm.d.ts +2 -2
  4. package/lib/accesscontrol/acm.d.ts.map +1 -1
  5. package/lib/accesscontrol/acm.js +25 -30
  6. package/lib/accesscontrol/acm.js.map +1 -1
  7. package/lib/graphql-auth-transformer.d.ts +5 -4
  8. package/lib/graphql-auth-transformer.d.ts.map +1 -1
  9. package/lib/graphql-auth-transformer.js +148 -101
  10. package/lib/graphql-auth-transformer.js.map +1 -1
  11. package/lib/index.js +5 -1
  12. package/lib/index.js.map +1 -1
  13. package/lib/resolvers/field.d.ts +0 -1
  14. package/lib/resolvers/field.d.ts.map +1 -1
  15. package/lib/resolvers/field.js +17 -36
  16. package/lib/resolvers/field.js.map +1 -1
  17. package/lib/resolvers/helpers.d.ts +9 -3
  18. package/lib/resolvers/helpers.d.ts.map +1 -1
  19. package/lib/resolvers/helpers.js +109 -30
  20. package/lib/resolvers/helpers.js.map +1 -1
  21. package/lib/resolvers/index.d.ts +2 -2
  22. package/lib/resolvers/index.d.ts.map +1 -1
  23. package/lib/resolvers/index.js +2 -2
  24. package/lib/resolvers/index.js.map +1 -1
  25. package/lib/resolvers/mutation.create.d.ts +2 -1
  26. package/lib/resolvers/mutation.create.d.ts.map +1 -1
  27. package/lib/resolvers/mutation.create.js +31 -28
  28. package/lib/resolvers/mutation.create.js.map +1 -1
  29. package/lib/resolvers/mutation.delete.d.ts.map +1 -1
  30. package/lib/resolvers/mutation.delete.js +15 -12
  31. package/lib/resolvers/mutation.delete.js.map +1 -1
  32. package/lib/resolvers/mutation.update.d.ts.map +1 -1
  33. package/lib/resolvers/mutation.update.js +19 -16
  34. package/lib/resolvers/mutation.update.js.map +1 -1
  35. package/lib/resolvers/query.d.ts.map +1 -1
  36. package/lib/resolvers/query.js +90 -35
  37. package/lib/resolvers/query.js.map +1 -1
  38. package/lib/resolvers/search.d.ts.map +1 -1
  39. package/lib/resolvers/search.js +21 -28
  40. package/lib/resolvers/search.js.map +1 -1
  41. package/lib/resolvers/subscriptions.d.ts.map +1 -1
  42. package/lib/resolvers/subscriptions.js +14 -8
  43. package/lib/resolvers/subscriptions.js.map +1 -1
  44. package/lib/utils/constants.d.ts +3 -1
  45. package/lib/utils/constants.d.ts.map +1 -1
  46. package/lib/utils/constants.js +5 -3
  47. package/lib/utils/constants.js.map +1 -1
  48. package/lib/utils/definitions.d.ts +3 -3
  49. package/lib/utils/definitions.d.ts.map +1 -1
  50. package/lib/utils/definitions.js +5 -0
  51. package/lib/utils/definitions.js.map +1 -1
  52. package/lib/utils/iam.js +5 -1
  53. package/lib/utils/iam.js.map +1 -1
  54. package/lib/utils/index.d.ts +1 -3
  55. package/lib/utils/index.d.ts.map +1 -1
  56. package/lib/utils/index.js +61 -46
  57. package/lib/utils/index.js.map +1 -1
  58. package/lib/utils/schema.d.ts.map +1 -1
  59. package/lib/utils/schema.js +19 -23
  60. package/lib/utils/schema.js.map +1 -1
  61. package/lib/utils/warnings.d.ts +2 -0
  62. package/lib/utils/warnings.d.ts.map +1 -1
  63. package/lib/utils/warnings.js +35 -5
  64. package/lib/utils/warnings.js.map +1 -1
  65. package/package.json +17 -17
package/CHANGELOG.md CHANGED
@@ -3,125 +3,189 @@
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
- # [1.0.0-ic-changes.3](https://github.com/aws-amplify/amplify-cli/compare/@aws-amplify/graphql-auth-transformer@0.8.0...@aws-amplify/graphql-auth-transformer@1.0.0-ic-changes.3) (2022-04-19)
6
+ ## [1.0.2](https://github.com/aws-amplify/amplify-category-api/compare/@aws-amplify/graphql-auth-transformer@1.0.1...@aws-amplify/graphql-auth-transformer@1.0.2) (2022-08-23)
7
7
 
8
8
 
9
- ### Bug Fixes
9
+ ### Reverts
10
10
 
11
- * generate field resolver when claim has colon ([5e2e560](https://github.com/aws-amplify/amplify-cli/commit/5e2e56017edf3ec2f212b0b470d84c51d64435ad))
12
- * match identifier values when populating input ([e61e9fc](https://github.com/aws-amplify/amplify-cli/commit/e61e9fcd14f9c0d67ecf0e7f6ca179a5c21ef374))
13
- * match identifier values when populating input ([7156aeb](https://github.com/aws-amplify/amplify-cli/commit/7156aebe283de8e827149badab1fb99b8c5376df))
11
+ * Revert "Undo change to directive merge that broke tests" (#756) ([3da2ce6](https://github.com/aws-amplify/amplify-category-api/commit/3da2ce604469d87160de1374f944a891ca9f476b)), closes [#756](https://github.com/aws-amplify/amplify-category-api/issues/756)
14
12
 
15
13
 
16
- ### Features
17
14
 
18
- * add warning message for identity claim flag and breaking changes ([45e55fb](https://github.com/aws-amplify/amplify-cli/commit/45e55fba523b67485c153509e2dd56c657177a11))
19
- * support search with colon delimited claim ([8d99be2](https://github.com/aws-amplify/amplify-cli/commit/8d99be27ff2d810bce20d8db0d082c73c019895d))
20
- * use feature flag to set identity claim ([f4a0078](https://github.com/aws-amplify/amplify-cli/commit/f4a0078ac5cc2bfa438acd9fa0de335bcd02e666))
21
15
 
22
16
 
23
- ### Reverts
17
+ ## [1.0.1](https://github.com/aws-amplify/amplify-category-api/compare/@aws-amplify/graphql-auth-transformer@0.12.7...@aws-amplify/graphql-auth-transformer@1.0.1) (2022-08-18)
18
+
19
+ **Note:** Version bump only for package @aws-amplify/graphql-auth-transformer
20
+
21
+
22
+
23
+
24
+
25
+ ## [0.12.7](https://github.com/aws-amplify/amplify-category-api/compare/@aws-amplify/graphql-auth-transformer@0.12.6...@aws-amplify/graphql-auth-transformer@0.12.7) (2022-08-18)
26
+
27
+ **Note:** Version bump only for package @aws-amplify/graphql-auth-transformer
28
+
29
+
30
+
31
+
32
+
33
+ ## [0.12.6](https://github.com/aws-amplify/amplify-category-api/compare/@aws-amplify/graphql-auth-transformer@0.12.5...@aws-amplify/graphql-auth-transformer@0.12.6) (2022-08-18)
34
+
35
+ **Note:** Version bump only for package @aws-amplify/graphql-auth-transformer
36
+
37
+
24
38
 
25
- * Revert "Revert "feat: add handling of colon-delimited identity claims to query (#10189)" (#10213)" ([54d6787](https://github.com/aws-amplify/amplify-cli/commit/54d6787c85f1732afbbe8df1b28c0618be4c0a39)), closes [#10189](https://github.com/aws-amplify/amplify-cli/issues/10189) [#10213](https://github.com/aws-amplify/amplify-cli/issues/10213)
26
39
 
27
40
 
28
- ### BREAKING CHANGES
41
+ ## [0.12.5](https://github.com/aws-amplify/amplify-category-api/compare/@aws-amplify/graphql-auth-transformer@0.12.4...@aws-amplify/graphql-auth-transformer@0.12.5) (2022-08-16)
29
42
 
30
- * This will store owner records in the database with the format '<sub>:<username>';
31
- previously, owner fields were stored as '<username>'.
43
+ **Note:** Version bump only for package @aws-amplify/graphql-auth-transformer
32
44
 
33
45
 
34
46
 
35
47
 
36
48
 
37
- # [1.0.0-ic-changes.2](https://github.com/aws-amplify/amplify-cli/compare/@aws-amplify/graphql-auth-transformer@0.8.0...@aws-amplify/graphql-auth-transformer@1.0.0-ic-changes.2) (2022-04-19)
49
+ ## [0.12.4](https://github.com/aws-amplify/amplify-category-api/compare/@aws-amplify/graphql-auth-transformer@0.12.3...@aws-amplify/graphql-auth-transformer@0.12.4) (2022-08-04)
38
50
 
39
51
 
40
52
  ### Bug Fixes
41
53
 
42
- * generate field resolver when claim has colon ([5e2e560](https://github.com/aws-amplify/amplify-cli/commit/5e2e56017edf3ec2f212b0b470d84c51d64435ad))
43
- * match identifier values when populating input ([e61e9fc](https://github.com/aws-amplify/amplify-cli/commit/e61e9fcd14f9c0d67ecf0e7f6ca179a5c21ef374))
44
- * match identifier values when populating input ([7156aeb](https://github.com/aws-amplify/amplify-cli/commit/7156aebe283de8e827149badab1fb99b8c5376df))
54
+ * **graphql:** revert subscriptions server-side filtering ([20cffc0](https://github.com/aws-amplify/amplify-category-api/commit/20cffc0810c23f85127a939c0a3b812f87c2a601))
55
+
56
+
57
+
58
+
59
+
60
+ ## [0.12.3](https://github.com/aws-amplify/amplify-category-api/compare/@aws-amplify/graphql-auth-transformer@0.12.2...@aws-amplify/graphql-auth-transformer@0.12.3) (2022-07-26)
61
+
62
+ **Note:** Version bump only for package @aws-amplify/graphql-auth-transformer
63
+
64
+
65
+
66
+
67
+
68
+ ## [0.12.2](https://github.com/aws-amplify/amplify-category-api/compare/@aws-amplify/graphql-auth-transformer@0.12.0...@aws-amplify/graphql-auth-transformer@0.12.2) (2022-07-20)
69
+
70
+ **Note:** Version bump only for package @aws-amplify/graphql-auth-transformer
71
+
72
+
73
+
74
+
75
+
76
+ ## [0.12.1](https://github.com/aws-amplify/amplify-category-api/compare/@aws-amplify/graphql-auth-transformer@0.12.0...@aws-amplify/graphql-auth-transformer@0.12.1) (2022-07-14)
77
+
78
+ **Note:** Version bump only for package @aws-amplify/graphql-auth-transformer
79
+
80
+
81
+
82
+
83
+
84
+ # [0.12.0](https://github.com/aws-amplify/amplify-category-api/compare/@aws-amplify/graphql-auth-transformer@0.11.1...@aws-amplify/graphql-auth-transformer@0.12.0) (2022-07-01)
45
85
 
46
86
 
47
87
  ### Features
48
88
 
49
- * add warning message for identity claim flag and breaking changes ([45e55fb](https://github.com/aws-amplify/amplify-cli/commit/45e55fba523b67485c153509e2dd56c657177a11))
50
- * support search with colon delimited claim ([8d99be2](https://github.com/aws-amplify/amplify-cli/commit/8d99be27ff2d810bce20d8db0d082c73c019895d))
51
- * use feature flag to set identity claim ([f4a0078](https://github.com/aws-amplify/amplify-cli/commit/f4a0078ac5cc2bfa438acd9fa0de335bcd02e666))
89
+ * **graphql:** add runtime filtering support for subscriptions ([#551](https://github.com/aws-amplify/amplify-category-api/issues/551)) ([0a24bb0](https://github.com/aws-amplify/amplify-category-api/commit/0a24bb0444ecc0947218db41094ab4ef4f0e2948))
52
90
 
53
91
 
54
- ### Reverts
55
92
 
56
- * Revert "Revert "feat: add handling of colon-delimited identity claims to query (#10189)" (#10213)" ([54d6787](https://github.com/aws-amplify/amplify-cli/commit/54d6787c85f1732afbbe8df1b28c0618be4c0a39)), closes [#10189](https://github.com/aws-amplify/amplify-cli/issues/10189) [#10213](https://github.com/aws-amplify/amplify-cli/issues/10213)
57
93
 
58
94
 
59
- ### BREAKING CHANGES
95
+ ## [0.11.1](https://github.com/aws-amplify/amplify-category-api/compare/@aws-amplify/graphql-auth-transformer@0.11.0...@aws-amplify/graphql-auth-transformer@0.11.1) (2022-06-23)
60
96
 
61
- * This will store owner records in the database with the format '<sub>:<username>';
62
- previously, owner fields were stored as '<username>'.
97
+ **Note:** Version bump only for package @aws-amplify/graphql-auth-transformer
63
98
 
64
99
 
65
100
 
66
101
 
67
102
 
68
- # [1.0.0-ic-changes.1](https://github.com/aws-amplify/amplify-cli/compare/@aws-amplify/graphql-auth-transformer@0.8.0...@aws-amplify/graphql-auth-transformer@1.0.0-ic-changes.1) (2022-04-19)
103
+ # [0.11.0](https://github.com/aws-amplify/amplify-category-api/compare/@aws-amplify/graphql-auth-transformer@0.10.0...@aws-amplify/graphql-auth-transformer@0.11.0) (2022-06-13)
69
104
 
70
105
 
71
106
  ### Bug Fixes
72
107
 
73
- * generate field resolver when claim has colon ([5e2e560](https://github.com/aws-amplify/amplify-cli/commit/5e2e56017edf3ec2f212b0b470d84c51d64435ad))
74
- * match identifier values when populating input ([e61e9fc](https://github.com/aws-amplify/amplify-cli/commit/e61e9fcd14f9c0d67ecf0e7f6ca179a5c21ef374))
75
- * match identifier values when populating input ([7156aeb](https://github.com/aws-amplify/amplify-cli/commit/7156aebe283de8e827149badab1fb99b8c5376df))
108
+ * create owner field resolvers for all operations ([#532](https://github.com/aws-amplify/amplify-category-api/issues/532)) ([298190d](https://github.com/aws-amplify/amplify-category-api/commit/298190de49fa50cf0665459d745c798253a385f6))
109
+ * handle return value of set of owners to return user for sub::username identity claim ([623b24d](https://github.com/aws-amplify/amplify-category-api/commit/623b24d556fc145f1e3be6e8ff91309510f7a925))
110
+ * use concatenated identity claim for primary key queries ([eafc412](https://github.com/aws-amplify/amplify-category-api/commit/eafc412d1a9c799077cd631c3d9c75edb43f524c))
76
111
 
77
112
 
78
113
  ### Features
79
114
 
80
- * add warning message for identity claim flag and breaking changes ([45e55fb](https://github.com/aws-amplify/amplify-cli/commit/45e55fba523b67485c153509e2dd56c657177a11))
81
- * support search with colon delimited claim ([8d99be2](https://github.com/aws-amplify/amplify-cli/commit/8d99be27ff2d810bce20d8db0d082c73c019895d))
82
- * use feature flag to set identity claim ([f4a0078](https://github.com/aws-amplify/amplify-cli/commit/f4a0078ac5cc2bfa438acd9fa0de335bcd02e666))
115
+ * add error when using an owner field as a sort key field ([#517](https://github.com/aws-amplify/amplify-category-api/issues/517)) ([201032d](https://github.com/aws-amplify/amplify-category-api/commit/201032d674a8272931fad0c75e9e146a22ed030b))
116
+ * **graphql-auth-transformer:** [@auth](https://github.com/auth) allow more granular access rights for read ([#23](https://github.com/aws-amplify/amplify-category-api/issues/23)) ([041fb80](https://github.com/aws-amplify/amplify-category-api/commit/041fb808e380d04f2c4913cef1037c3d87e98d22))
83
117
 
84
118
 
85
- ### Reverts
86
119
 
87
- * Revert "Revert "feat: add handling of colon-delimited identity claims to query (#10189)" (#10213)" ([54d6787](https://github.com/aws-amplify/amplify-cli/commit/54d6787c85f1732afbbe8df1b28c0618be4c0a39)), closes [#10189](https://github.com/aws-amplify/amplify-cli/issues/10189) [#10213](https://github.com/aws-amplify/amplify-cli/issues/10213)
88
120
 
89
121
 
90
- ### BREAKING CHANGES
122
+ # [0.10.0](https://github.com/aws-amplify/amplify-category-api/compare/@aws-amplify/graphql-auth-transformer@0.9.4...@aws-amplify/graphql-auth-transformer@0.10.0) (2022-06-10)
91
123
 
92
- * This will store owner records in the database with the format '<sub>:<username>';
93
- previously, owner fields were stored as '<username>'.
94
124
 
125
+ ### Features
95
126
 
127
+ * **amplify-category-api:** update descriptions to properly publish ([f685bbe](https://github.com/aws-amplify/amplify-category-api/commit/f685bbe52fd2d364e34c0ecb45c8a903555de3fe))
96
128
 
97
129
 
98
130
 
99
- # [1.0.0-ic-changes.0](https://github.com/aws-amplify/amplify-cli/compare/@aws-amplify/graphql-auth-transformer@0.8.0...@aws-amplify/graphql-auth-transformer@1.0.0-ic-changes.0) (2022-04-19)
100
131
 
101
132
 
102
- ### Bug Fixes
133
+ ## [0.9.4](https://github.com/aws-amplify/amplify-category-api/compare/@aws-amplify/graphql-auth-transformer@0.9.3...@aws-amplify/graphql-auth-transformer@0.9.4) (2022-06-10)
134
+
135
+ **Note:** Version bump only for package @aws-amplify/graphql-auth-transformer
136
+
137
+
138
+
139
+
140
+
141
+ ## [0.9.3](https://github.com/aws-amplify/amplify-category-api/compare/@aws-amplify/graphql-auth-transformer@0.9.0...@aws-amplify/graphql-auth-transformer@0.9.3) (2022-06-07)
142
+
143
+ **Note:** Version bump only for package @aws-amplify/graphql-auth-transformer
144
+
145
+
146
+
103
147
 
104
- * generate field resolver when claim has colon ([5e2e560](https://github.com/aws-amplify/amplify-cli/commit/5e2e56017edf3ec2f212b0b470d84c51d64435ad))
105
- * match identifier values when populating input ([e61e9fc](https://github.com/aws-amplify/amplify-cli/commit/e61e9fcd14f9c0d67ecf0e7f6ca179a5c21ef374))
106
- * match identifier values when populating input ([7156aeb](https://github.com/aws-amplify/amplify-cli/commit/7156aebe283de8e827149badab1fb99b8c5376df))
148
+
149
+ ## [0.9.2](https://github.com/aws-amplify/amplify-category-api/compare/@aws-amplify/graphql-auth-transformer@0.9.0...@aws-amplify/graphql-auth-transformer@0.9.2) (2022-05-31)
150
+
151
+ **Note:** Version bump only for package @aws-amplify/graphql-auth-transformer
152
+
153
+
154
+
155
+
156
+
157
+ ## [0.9.1](https://github.com/aws-amplify/amplify-cli/compare/@aws-amplify/graphql-auth-transformer@0.9.0...@aws-amplify/graphql-auth-transformer@0.9.1) (2022-05-02)
158
+
159
+ **Note:** Version bump only for package @aws-amplify/graphql-auth-transformer
160
+
161
+
162
+
163
+
164
+
165
+ # [0.9.0](https://github.com/aws-amplify/amplify-cli/compare/@aws-amplify/graphql-auth-transformer@0.8.1...@aws-amplify/graphql-auth-transformer@0.9.0) (2022-04-29)
107
166
 
108
167
 
109
168
  ### Features
110
169
 
111
- * add warning message for identity claim flag and breaking changes ([45e55fb](https://github.com/aws-amplify/amplify-cli/commit/45e55fba523b67485c153509e2dd56c657177a11))
112
- * support search with colon delimited claim ([8d99be2](https://github.com/aws-amplify/amplify-cli/commit/8d99be27ff2d810bce20d8db0d082c73c019895d))
113
- * use feature flag to set identity claim ([f4a0078](https://github.com/aws-amplify/amplify-cli/commit/f4a0078ac5cc2bfa438acd9fa0de335bcd02e666))
170
+ * add handling of colon-delimited identity claims to query (revert) ([#10222](https://github.com/aws-amplify/amplify-cli/issues/10222)) ([f5d7620](https://github.com/aws-amplify/amplify-cli/commit/f5d76206929da18b44f8639afb095179de1e589f)), closes [#10189](https://github.com/aws-amplify/amplify-cli/issues/10189) [#10213](https://github.com/aws-amplify/amplify-cli/issues/10213)
171
+ * matches identity claim for subscription (revert) ([#10277](https://github.com/aws-amplify/amplify-cli/issues/10277)) ([baf9908](https://github.com/aws-amplify/amplify-cli/commit/baf9908b4b2aa97b68730655b0c47c04de40b18a)), closes [#10199](https://github.com/aws-amplify/amplify-cli/issues/10199) [#10264](https://github.com/aws-amplify/amplify-cli/issues/10264)
172
+ * support search with colon delimited claim ([#10257](https://github.com/aws-amplify/amplify-cli/issues/10257)) ([c3dae2d](https://github.com/aws-amplify/amplify-cli/commit/c3dae2d31f05958a56fc31949a9ce94cf9b15e44))
173
+ * use sub:username identity claim by default when persisting behind a feature flag ([#10196](https://github.com/aws-amplify/amplify-cli/issues/10196)) ([947aae6](https://github.com/aws-amplify/amplify-cli/commit/947aae6e692653d06d83f3f33298da3a33d87564))
174
+
114
175
 
115
176
 
116
- ### Reverts
117
177
 
118
- * Revert "Revert "feat: add handling of colon-delimited identity claims to query (#10189)" (#10213)" ([54d6787](https://github.com/aws-amplify/amplify-cli/commit/54d6787c85f1732afbbe8df1b28c0618be4c0a39)), closes [#10189](https://github.com/aws-amplify/amplify-cli/issues/10189) [#10213](https://github.com/aws-amplify/amplify-cli/issues/10213)
119
178
 
179
+ ## [0.8.1](https://github.com/aws-amplify/amplify-cli/compare/@aws-amplify/graphql-auth-transformer@0.8.0...@aws-amplify/graphql-auth-transformer@0.8.1) (2022-04-27)
120
180
 
121
- ### BREAKING CHANGES
122
181
 
123
- * This will store owner records in the database with the format '<sub>:<username>';
124
- previously, owner fields were stored as '<username>'.
182
+
183
+ ## 8.0.3 (2022-04-25)
184
+
185
+
186
+ ### Reverts
187
+
188
+ * Revert "refactor: use a prefix matching for the claim in subscriptions (#10199)" (#10264) ([eff77da](https://github.com/aws-amplify/amplify-cli/commit/eff77da6a9a26f3529bce8448a8243a0c44c746b)), closes [#10199](https://github.com/aws-amplify/amplify-cli/issues/10199) [#10264](https://github.com/aws-amplify/amplify-cli/issues/10264)
125
189
 
126
190
 
127
191