@graphcommerce/magento-store 4.1.4 → 4.1.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.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,40 @@
1
1
  # Change Log
2
2
 
3
+ ## 4.1.7
4
+
5
+ ### Patch Changes
6
+
7
+ - [#1399](https://github.com/graphcommerce-org/graphcommerce/pull/1399) [`fb277d8e1`](https://github.com/graphcommerce-org/graphcommerce/commit/fb277d8e1e3612c5e9cf890a30d19cfd1ff70542) Thanks [@paales](https://github.com/paales)! - Now using [@graphql-yoga](https://github.com/dotansimha/graphql-yoga) for GraphQL which has full support for [envelop](https://www.envelop.dev/) plugins.
8
+
9
+ * [#1399](https://github.com/graphcommerce-org/graphcommerce/pull/1399) [`fb277d8e1`](https://github.com/graphcommerce-org/graphcommerce/commit/fb277d8e1e3612c5e9cf890a30d19cfd1ff70542) Thanks [@paales](https://github.com/paales)! - Added a new @graphcommerce/cli package to generate the mesh so it can be generated _inside_ the @graphcommerce/graphql-mesh package to allow for better future extensibility.
10
+
11
+ - [#1399](https://github.com/graphcommerce-org/graphcommerce/pull/1399) [`da0ae7d02`](https://github.com/graphcommerce-org/graphcommerce/commit/da0ae7d0236e4908ba0bf0fa16656be516e841d4) Thanks [@paales](https://github.com/paales)! - Updated dependencies
12
+
13
+ - Updated dependencies [[`fb277d8e1`](https://github.com/graphcommerce-org/graphcommerce/commit/fb277d8e1e3612c5e9cf890a30d19cfd1ff70542), [`fb277d8e1`](https://github.com/graphcommerce-org/graphcommerce/commit/fb277d8e1e3612c5e9cf890a30d19cfd1ff70542), [`da0ae7d02`](https://github.com/graphcommerce-org/graphcommerce/commit/da0ae7d0236e4908ba0bf0fa16656be516e841d4)]:
14
+ - @graphcommerce/graphql@3.1.0
15
+ - @graphcommerce/graphql-mesh@4.1.0
16
+ - @graphcommerce/next-ui@4.6.1
17
+ - @graphcommerce/image@3.1.5
18
+
19
+ ## 4.1.6
20
+
21
+ ### Patch Changes
22
+
23
+ - 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)]:
24
+ - @graphcommerce/next-ui@4.6.0
25
+ - @graphcommerce/image@3.1.4
26
+
27
+ ## 4.1.5
28
+
29
+ ### Patch Changes
30
+
31
+ - [#1378](https://github.com/graphcommerce-org/graphcommerce/pull/1378) [`b610a6e40`](https://github.com/graphcommerce-org/graphcommerce/commit/b610a6e4049e8c9e8b5d2aeff31b8e1bfc24abe5) Thanks [@paales](https://github.com/paales)! - Pin all versions internally so we can’t end up in an unfixable state for the user
32
+
33
+ - Updated dependencies [[`b610a6e40`](https://github.com/graphcommerce-org/graphcommerce/commit/b610a6e4049e8c9e8b5d2aeff31b8e1bfc24abe5)]:
34
+ - @graphcommerce/graphql@3.0.7
35
+ - @graphcommerce/image@3.1.3
36
+ - @graphcommerce/next-ui@4.5.1
37
+
3
38
  ## 4.1.4
4
39
 
5
40
  ### Patch Changes
@@ -1,4 +1,4 @@
1
- import { Maybe, Region } from '@graphcommerce/graphql'
1
+ import { Maybe, Region } from '@graphcommerce/graphql-mesh'
2
2
  import { useFindCountry } from './useFindCountry'
3
3
 
4
4
  export function useFindRegion(
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.4",
5
+ "version": "4.1.7",
6
6
  "sideEffects": false,
7
7
  "prettier": "@graphcommerce/prettier-config-pwa",
8
8
  "eslintConfig": {
@@ -12,21 +12,22 @@
12
12
  }
13
13
  },
14
14
  "devDependencies": {
15
- "@graphcommerce/eslint-config-pwa": "^4.1.3",
16
- "@graphcommerce/prettier-config-pwa": "^4.0.5",
15
+ "@graphcommerce/eslint-config-pwa": "^4.1.5",
16
+ "@graphcommerce/prettier-config-pwa": "^4.0.6",
17
17
  "@graphcommerce/typescript-config-pwa": "^4.0.2",
18
- "@playwright/test": "^1.20.1",
19
- "type-fest": "2.12.1"
18
+ "@playwright/test": "^1.21.1",
19
+ "type-fest": "^2.12.2"
20
20
  },
21
21
  "dependencies": {
22
- "@graphcommerce/graphql": "^3.0.6",
23
- "@graphcommerce/image": "^3.1.2",
24
- "@graphcommerce/next-ui": "^4.5.0"
22
+ "@graphcommerce/graphql": "3.1.0",
23
+ "@graphcommerce/graphql-mesh": "4.1.0",
24
+ "@graphcommerce/image": "3.1.5",
25
+ "@graphcommerce/next-ui": "4.6.1"
25
26
  },
26
27
  "peerDependencies": {
27
28
  "@lingui/macro": "^3.13.2",
28
- "@mui/material": "^5.4.1",
29
- "next": "^12.0.10",
29
+ "@mui/material": "5.5.3",
30
+ "next": "12.1.2",
30
31
  "react": "^17.0.2",
31
32
  "react-dom": "^17.0.2"
32
33
  }
@@ -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 }