@graphcommerce/googlerecaptcha 10.0.0-canary.72 → 10.0.1-canary.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 +5 -147
- package/link/recaptchaLink.ts +1 -1
- package/package.json +8 -8
package/CHANGELOG.md
CHANGED
|
@@ -1,42 +1,12 @@
|
|
|
1
1
|
# Change Log
|
|
2
2
|
|
|
3
|
-
## 10.0.
|
|
3
|
+
## 10.0.1-canary.0
|
|
4
4
|
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
## 10.0.0-canary.70
|
|
8
|
-
|
|
9
|
-
### Major Changes
|
|
10
|
-
|
|
11
|
-
- [#2565](https://github.com/graphcommerce-org/graphcommerce/pull/2565) [`c96dfcd`](https://github.com/graphcommerce-org/graphcommerce/commit/c96dfcdca981baca387c270ad9e2b9515cdd00cc) - Updated to Apollo Client 4 ([@paales](https://github.com/paales))
|
|
12
|
-
|
|
13
|
-
## 10.0.0-canary.69
|
|
14
|
-
|
|
15
|
-
## 10.0.0-canary.68
|
|
16
|
-
|
|
17
|
-
## 10.0.0-canary.67
|
|
18
|
-
|
|
19
|
-
## 10.0.0-canary.66
|
|
20
|
-
|
|
21
|
-
## 10.0.0-canary.65
|
|
22
|
-
|
|
23
|
-
## 10.0.0-canary.64
|
|
24
|
-
|
|
25
|
-
## 10.0.0-canary.63
|
|
26
|
-
|
|
27
|
-
## 10.0.0-canary.62
|
|
28
|
-
|
|
29
|
-
## 10.0.0-canary.61
|
|
30
|
-
|
|
31
|
-
## 10.0.0-canary.60
|
|
32
|
-
|
|
33
|
-
## 10.0.0-canary.59
|
|
34
|
-
|
|
35
|
-
## 10.0.0-canary.58
|
|
5
|
+
### Patch Changes
|
|
36
6
|
|
|
37
|
-
|
|
7
|
+
- [#2568](https://github.com/graphcommerce-org/graphcommerce/pull/2568) [`f1b60ac`](https://github.com/graphcommerce-org/graphcommerce/commit/f1b60accf5e8fdbcba15b7567dce7ff68f37db88) - Solve issue where the cache wasn't available from the context anymore in @apollo/client@4 now uses the operation.client.cache ([@paales](https://github.com/paales))
|
|
38
8
|
|
|
39
|
-
## 10.0.0
|
|
9
|
+
## 10.0.0
|
|
40
10
|
|
|
41
11
|
### Major Changes
|
|
42
12
|
|
|
@@ -116,126 +86,14 @@
|
|
|
116
86
|
- `@mui/*` modern alias rewrites
|
|
117
87
|
- Debug plugins (`CircularDependencyPlugin`, `DuplicatesPlugin`) ([@paales](https://github.com/paales))
|
|
118
88
|
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
## 9.1.0-canary.54
|
|
122
|
-
|
|
123
|
-
## 9.1.0-canary.53
|
|
124
|
-
|
|
125
|
-
## 9.1.0-canary.52
|
|
126
|
-
|
|
127
|
-
## 9.1.0-canary.51
|
|
89
|
+
- [#2565](https://github.com/graphcommerce-org/graphcommerce/pull/2565) [`c96dfcd`](https://github.com/graphcommerce-org/graphcommerce/commit/c96dfcdca981baca387c270ad9e2b9515cdd00cc) - Updated to Apollo Client 4 ([@paales](https://github.com/paales))
|
|
128
90
|
|
|
129
91
|
### Patch Changes
|
|
130
92
|
|
|
131
93
|
- [#2537](https://github.com/graphcommerce-org/graphcommerce/pull/2537) [`31397f9`](https://github.com/graphcommerce-org/graphcommerce/commit/31397f9c5b2d85895d6e00732b2e3d7a99ffee53) - Solve issue where a magento store reference was added to the graphql-mesh package. ([@paales](https://github.com/paales))
|
|
132
94
|
|
|
133
|
-
## 9.1.0-canary.50
|
|
134
|
-
|
|
135
|
-
## 9.1.0-canary.49
|
|
136
|
-
|
|
137
|
-
## 9.1.0-canary.48
|
|
138
|
-
|
|
139
|
-
## 9.1.0-canary.47
|
|
140
|
-
|
|
141
|
-
## 9.1.0-canary.46
|
|
142
|
-
|
|
143
|
-
## 9.1.0-canary.45
|
|
144
|
-
|
|
145
|
-
## 9.1.0-canary.44
|
|
146
|
-
|
|
147
|
-
## 9.1.0-canary.43
|
|
148
|
-
|
|
149
|
-
## 9.1.0-canary.42
|
|
150
|
-
|
|
151
|
-
## 9.1.0-canary.41
|
|
152
|
-
|
|
153
|
-
## 9.1.0-canary.40
|
|
154
|
-
|
|
155
|
-
## 9.1.0-canary.39
|
|
156
|
-
|
|
157
|
-
## 9.1.0-canary.38
|
|
158
|
-
|
|
159
|
-
## 9.1.0-canary.37
|
|
160
|
-
|
|
161
|
-
## 9.1.0-canary.36
|
|
162
|
-
|
|
163
|
-
## 9.1.0-canary.35
|
|
164
|
-
|
|
165
|
-
## 9.1.0-canary.34
|
|
166
|
-
|
|
167
|
-
## 9.1.0-canary.33
|
|
168
|
-
|
|
169
|
-
## 9.1.0-canary.32
|
|
170
|
-
|
|
171
|
-
## 9.1.0-canary.31
|
|
172
|
-
|
|
173
|
-
## 9.1.0-canary.30
|
|
174
|
-
|
|
175
|
-
## 9.1.0-canary.29
|
|
176
|
-
|
|
177
|
-
## 9.1.0-canary.28
|
|
178
|
-
|
|
179
|
-
## 9.1.0-canary.27
|
|
180
|
-
|
|
181
|
-
## 9.1.0-canary.26
|
|
182
|
-
|
|
183
|
-
## 9.1.0-canary.25
|
|
184
|
-
|
|
185
|
-
## 9.1.0-canary.24
|
|
186
|
-
|
|
187
|
-
## 9.1.0-canary.23
|
|
188
|
-
|
|
189
|
-
## 9.1.0-canary.22
|
|
190
|
-
|
|
191
|
-
## 9.1.0-canary.21
|
|
192
|
-
|
|
193
|
-
## 9.1.0-canary.20
|
|
194
|
-
|
|
195
|
-
## 9.1.0-canary.19
|
|
196
|
-
|
|
197
|
-
## 9.1.0-canary.18
|
|
198
|
-
|
|
199
|
-
## 9.1.0-canary.17
|
|
200
|
-
|
|
201
|
-
### Patch Changes
|
|
202
|
-
|
|
203
95
|
- [#2496](https://github.com/graphcommerce-org/graphcommerce/pull/2496) [`a261149`](https://github.com/graphcommerce-org/graphcommerce/commit/a261149b6b32ad6a35606da2d530b8e41bfa10a0) - ReCaptcha now using the `recaptchaV3Config` query and add a fallback for Magento 2.4.6 and earlier to still use the configuration. Magento 2.4.7 doesn't need that configuration anymore. ([@paales](https://github.com/paales))
|
|
204
96
|
|
|
205
|
-
## 9.1.0-canary.16
|
|
206
|
-
|
|
207
|
-
## 9.1.0-canary.15
|
|
208
|
-
|
|
209
|
-
## 9.0.4-canary.14
|
|
210
|
-
|
|
211
|
-
## 9.0.4-canary.13
|
|
212
|
-
|
|
213
|
-
## 9.0.4-canary.12
|
|
214
|
-
|
|
215
|
-
## 9.0.4-canary.11
|
|
216
|
-
|
|
217
|
-
## 9.0.4-canary.10
|
|
218
|
-
|
|
219
|
-
## 9.0.4-canary.9
|
|
220
|
-
|
|
221
|
-
## 9.0.4-canary.8
|
|
222
|
-
|
|
223
|
-
## 9.0.4-canary.7
|
|
224
|
-
|
|
225
|
-
## 9.0.4-canary.6
|
|
226
|
-
|
|
227
|
-
## 9.0.4-canary.5
|
|
228
|
-
|
|
229
|
-
## 9.0.4-canary.4
|
|
230
|
-
|
|
231
|
-
## 9.0.4-canary.3
|
|
232
|
-
|
|
233
|
-
## 9.0.4-canary.2
|
|
234
|
-
|
|
235
|
-
## 9.0.4-canary.1
|
|
236
|
-
|
|
237
|
-
## 9.0.4-canary.0
|
|
238
|
-
|
|
239
97
|
## 9.0.0
|
|
240
98
|
|
|
241
99
|
### Patch Changes
|
package/link/recaptchaLink.ts
CHANGED
|
@@ -12,7 +12,7 @@ const isMutation = (operation: ApolloLink.Request) =>
|
|
|
12
12
|
|
|
13
13
|
/** Apollo link that adds the Google reCAPTCHA token to the request context. */
|
|
14
14
|
export const recaptchaLink = new SetContextLink(async (prevContext, operation) => {
|
|
15
|
-
const siteKey =
|
|
15
|
+
const siteKey = operation.client.cache.readQuery({ query: RecaptchaV3ConfigDocument })
|
|
16
16
|
?.recaptchaV3Config?.website_key
|
|
17
17
|
|
|
18
18
|
if (!siteKey || !globalThis.grecaptcha || !isMutation(operation)) return {}
|
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"name": "@graphcommerce/googlerecaptcha",
|
|
3
3
|
"homepage": "https://www.graphcommerce.org/",
|
|
4
4
|
"repository": "github:graphcommerce-org/graphcommerce",
|
|
5
|
-
"version": "10.0.
|
|
5
|
+
"version": "10.0.1-canary.0",
|
|
6
6
|
"sideEffects": false,
|
|
7
7
|
"prettier": "@graphcommerce/prettier-config-pwa",
|
|
8
8
|
"eslintConfig": {
|
|
@@ -23,13 +23,13 @@
|
|
|
23
23
|
"@types/grecaptcha": "^3.0.9"
|
|
24
24
|
},
|
|
25
25
|
"peerDependencies": {
|
|
26
|
-
"@graphcommerce/eslint-config-pwa": "^10.0.
|
|
27
|
-
"@graphcommerce/graphql": "^10.0.
|
|
28
|
-
"@graphcommerce/graphql-mesh": "^10.0.
|
|
29
|
-
"@graphcommerce/magento-store": "^10.0.
|
|
30
|
-
"@graphcommerce/next-ui": "^10.0.
|
|
31
|
-
"@graphcommerce/prettier-config-pwa": "^10.0.
|
|
32
|
-
"@graphcommerce/typescript-config-pwa": "^10.0.
|
|
26
|
+
"@graphcommerce/eslint-config-pwa": "^10.0.1-canary.0",
|
|
27
|
+
"@graphcommerce/graphql": "^10.0.1-canary.0",
|
|
28
|
+
"@graphcommerce/graphql-mesh": "^10.0.1-canary.0",
|
|
29
|
+
"@graphcommerce/magento-store": "^10.0.1-canary.0",
|
|
30
|
+
"@graphcommerce/next-ui": "^10.0.1-canary.0",
|
|
31
|
+
"@graphcommerce/prettier-config-pwa": "^10.0.1-canary.0",
|
|
32
|
+
"@graphcommerce/typescript-config-pwa": "^10.0.1-canary.0",
|
|
33
33
|
"@mui/material": "^7.0.0",
|
|
34
34
|
"graphql": "^16.9.0",
|
|
35
35
|
"next": "*",
|