@graphcommerce/magento-store 4.1.5 → 4.1.6
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/package.json +3 -3
- package/test/apolloClientStore.fixture.ts +24 -0
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,13 @@
|
|
|
1
1
|
# Change Log
|
|
2
2
|
|
|
3
|
+
## 4.1.6
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Updated dependencies [[`3c801f45c`](https://github.com/graphcommerce-org/graphcommerce/commit/3c801f45c7df55131acf30ae2fe0d2344830d480), [`3192fab82`](https://github.com/graphcommerce-org/graphcommerce/commit/3192fab82560e2211dfcacadc3b0b305260527d8), [`0e425e85e`](https://github.com/graphcommerce-org/graphcommerce/commit/0e425e85ee8fed280349317ee0440c7bceea5823), [`8a354d1cd`](https://github.com/graphcommerce-org/graphcommerce/commit/8a354d1cd4757497ddfc9b1969a0addbc8ff616b)]:
|
|
8
|
+
- @graphcommerce/next-ui@4.6.0
|
|
9
|
+
- @graphcommerce/image@3.1.4
|
|
10
|
+
|
|
3
11
|
## 4.1.5
|
|
4
12
|
|
|
5
13
|
### Patch Changes
|
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"name": "@graphcommerce/magento-store",
|
|
3
3
|
"homepage": "https://www.graphcommerce.org/",
|
|
4
4
|
"repository": "github:graphcommerce-org/graphcommerce",
|
|
5
|
-
"version": "4.1.
|
|
5
|
+
"version": "4.1.6",
|
|
6
6
|
"sideEffects": false,
|
|
7
7
|
"prettier": "@graphcommerce/prettier-config-pwa",
|
|
8
8
|
"eslintConfig": {
|
|
@@ -20,8 +20,8 @@
|
|
|
20
20
|
},
|
|
21
21
|
"dependencies": {
|
|
22
22
|
"@graphcommerce/graphql": "3.0.7",
|
|
23
|
-
"@graphcommerce/image": "3.1.
|
|
24
|
-
"@graphcommerce/next-ui": "4.
|
|
23
|
+
"@graphcommerce/image": "3.1.4",
|
|
24
|
+
"@graphcommerce/next-ui": "4.6.0"
|
|
25
25
|
},
|
|
26
26
|
"peerDependencies": {
|
|
27
27
|
"@lingui/macro": "^3.13.2",
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
/* eslint-disable no-empty-pattern */
|
|
2
|
+
import { ApolloClient, NormalizedCacheObject, InMemoryCache } from '@graphcommerce/graphql'
|
|
3
|
+
import { test as base } from '@playwright/test'
|
|
4
|
+
import { localeToStore } from '../localeToStore'
|
|
5
|
+
|
|
6
|
+
type ApolloClientStoreTest = {
|
|
7
|
+
apolloClient: ApolloClient<NormalizedCacheObject>
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
const test = base.extend<ApolloClientStoreTest>({
|
|
11
|
+
apolloClient: async ({ locale }, use) => {
|
|
12
|
+
const store = localeToStore(locale)
|
|
13
|
+
|
|
14
|
+
const client = new ApolloClient({
|
|
15
|
+
uri: process.env.NEXT_PUBLIC_GRAPHQL_ENDPOINT,
|
|
16
|
+
credentials: 'same-origin',
|
|
17
|
+
cache: new InMemoryCache(),
|
|
18
|
+
headers: { Store: store },
|
|
19
|
+
})
|
|
20
|
+
await use(client)
|
|
21
|
+
},
|
|
22
|
+
})
|
|
23
|
+
|
|
24
|
+
export { test }
|