@graphcommerce/magento-customer 9.0.0-canary.85 → 9.0.0-canary.87
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 +8 -0
- package/link/xMagentoCacheIdHeader.ts +4 -2
- package/package.json +14 -14
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,13 @@
|
|
|
1
1
|
# Change Log
|
|
2
2
|
|
|
3
|
+
## 9.0.0-canary.87
|
|
4
|
+
|
|
5
|
+
## 9.0.0-canary.86
|
|
6
|
+
|
|
7
|
+
### Patch Changes
|
|
8
|
+
|
|
9
|
+
- [#2379](https://github.com/graphcommerce-org/graphcommerce/pull/2379) [`6202fc7`](https://github.com/graphcommerce-org/graphcommerce/commit/6202fc7d2f36d5d1f2fedb74b2f2d93b308d5885) - In some cases the xMagentoCacheId wasn't defined in the returned query, make sure the application doesn't crash ([@paales](https://github.com/paales))
|
|
10
|
+
|
|
3
11
|
## 9.0.0-canary.85
|
|
4
12
|
|
|
5
13
|
## 9.0.0-canary.84
|
|
@@ -14,8 +14,10 @@ export const xMagentoCacheIdHeader = new ApolloLink((operation, forward) => {
|
|
|
14
14
|
const { cache } = operation.getContext()
|
|
15
15
|
if (!cache) return data
|
|
16
16
|
|
|
17
|
-
const xMagentoCacheId = (
|
|
18
|
-
.forwardedHeaders
|
|
17
|
+
const xMagentoCacheId = (
|
|
18
|
+
data.extensions as { forwardedHeaders: Record<string, string> } | undefined
|
|
19
|
+
)?.forwardedHeaders?.['x-magento-cache-id']
|
|
20
|
+
|
|
19
21
|
if (!xMagentoCacheId) return data
|
|
20
22
|
|
|
21
23
|
const tokenResult = cache.readQuery({ query: CustomerTokenDocument })
|
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"name": "@graphcommerce/magento-customer",
|
|
3
3
|
"homepage": "https://www.graphcommerce.org/",
|
|
4
4
|
"repository": "github:graphcommerce-org/graphcommerce",
|
|
5
|
-
"version": "9.0.0-canary.
|
|
5
|
+
"version": "9.0.0-canary.87",
|
|
6
6
|
"sideEffects": false,
|
|
7
7
|
"prettier": "@graphcommerce/prettier-config-pwa",
|
|
8
8
|
"eslintConfig": {
|
|
@@ -12,19 +12,19 @@
|
|
|
12
12
|
}
|
|
13
13
|
},
|
|
14
14
|
"peerDependencies": {
|
|
15
|
-
"@graphcommerce/ecommerce-ui": "^9.0.0-canary.
|
|
16
|
-
"@graphcommerce/eslint-config-pwa": "^9.0.0-canary.
|
|
17
|
-
"@graphcommerce/framer-next-pages": "^9.0.0-canary.
|
|
18
|
-
"@graphcommerce/framer-utils": "^9.0.0-canary.
|
|
19
|
-
"@graphcommerce/graphql": "^9.0.0-canary.
|
|
20
|
-
"@graphcommerce/graphql-mesh": "^9.0.0-canary.
|
|
21
|
-
"@graphcommerce/image": "^9.0.0-canary.
|
|
22
|
-
"@graphcommerce/magento-graphql": "^9.0.0-canary.
|
|
23
|
-
"@graphcommerce/magento-store": "^9.0.0-canary.
|
|
24
|
-
"@graphcommerce/next-ui": "^9.0.0-canary.
|
|
25
|
-
"@graphcommerce/prettier-config-pwa": "^9.0.0-canary.
|
|
26
|
-
"@graphcommerce/react-hook-form": "^9.0.0-canary.
|
|
27
|
-
"@graphcommerce/typescript-config-pwa": "^9.0.0-canary.
|
|
15
|
+
"@graphcommerce/ecommerce-ui": "^9.0.0-canary.87",
|
|
16
|
+
"@graphcommerce/eslint-config-pwa": "^9.0.0-canary.87",
|
|
17
|
+
"@graphcommerce/framer-next-pages": "^9.0.0-canary.87",
|
|
18
|
+
"@graphcommerce/framer-utils": "^9.0.0-canary.87",
|
|
19
|
+
"@graphcommerce/graphql": "^9.0.0-canary.87",
|
|
20
|
+
"@graphcommerce/graphql-mesh": "^9.0.0-canary.87",
|
|
21
|
+
"@graphcommerce/image": "^9.0.0-canary.87",
|
|
22
|
+
"@graphcommerce/magento-graphql": "^9.0.0-canary.87",
|
|
23
|
+
"@graphcommerce/magento-store": "^9.0.0-canary.87",
|
|
24
|
+
"@graphcommerce/next-ui": "^9.0.0-canary.87",
|
|
25
|
+
"@graphcommerce/prettier-config-pwa": "^9.0.0-canary.87",
|
|
26
|
+
"@graphcommerce/react-hook-form": "^9.0.0-canary.87",
|
|
27
|
+
"@graphcommerce/typescript-config-pwa": "^9.0.0-canary.87",
|
|
28
28
|
"@lingui/core": "^4.2.1",
|
|
29
29
|
"@lingui/macro": "^4.2.1",
|
|
30
30
|
"@lingui/react": "^4.2.1",
|