@graphcommerce/hygraph-ui 9.0.1-canary.0 → 9.0.1-canary.1

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,49 +1,19 @@
1
1
  # Change Log
2
2
 
3
- ## 9.0.1-canary.0
3
+ ## 9.0.1-canary.1
4
4
 
5
- ## 9.0.0
5
+ ### Patch Changes
6
6
 
7
- ### Major Changes
7
+ - [#2461](https://github.com/graphcommerce-org/graphcommerce/pull/2461) [`838fe30`](https://github.com/graphcommerce-org/graphcommerce/commit/838fe30a649f8feedbd2a9333430e724b0ebd67f) - Solve issue where the preview mode wouldn't initialize if the hygraphLocales weren't defined ([@paales](https://github.com/paales))
8
8
 
9
- - [#2421](https://github.com/graphcommerce-org/graphcommerce/pull/2421) [`f71b4e2`](https://github.com/graphcommerce-org/graphcommerce/commit/f71b4e2d13e54dd311eb1465a49df41703b6fef5) - Renamed from `@graphcommerce/graphcms-ui` to `@graphcommerce/hygraph-ui`. See [CHANGELOG.md](../graphcms-ui/CHANGELOG.md) for details. ([@paales](https://github.com/paales))
9
+ - [#2461](https://github.com/graphcommerce-org/graphcommerce/pull/2461) [`68f2861`](https://github.com/graphcommerce-org/graphcommerce/commit/68f28616fd33aa64cb555e8cf9bf64954ea92383) - Support for new asset system of Hygraph ([@paales](https://github.com/paales))
10
+
11
+ ## 9.0.0
10
12
 
11
13
  ### Minor Changes
12
14
 
13
15
  - [#2223](https://github.com/graphcommerce-org/graphcommerce/pull/2223) [`0ccec63`](https://github.com/graphcommerce-org/graphcommerce/commit/0ccec630825d5fad398366beae90b3c90b2f84b8) - Added separate sitemap for Hygraph pages ([@bramvanderholst](https://github.com/bramvanderholst))
14
16
 
15
- ## 9.0.0-canary.118
16
-
17
- ## 9.0.0-canary.117
18
-
19
- ## 9.0.0-canary.116
20
-
21
- ## 9.0.0-canary.115
22
-
23
- ## 9.0.0-canary.114
24
-
25
- ## 9.0.0-canary.113
26
-
27
- ## 9.0.0-canary.112
28
-
29
- ## 9.0.0-canary.111
30
-
31
- ## 9.0.0-canary.110
32
-
33
- ## 9.0.0-canary.109
34
-
35
- ## 9.0.0-canary.108
36
-
37
- ## 9.0.0-canary.107
38
-
39
- ## 9.0.0-canary.106
40
-
41
- ## 9.0.0-canary.105
42
-
43
- ## 9.0.0-canary.104
44
-
45
- ## 9.0.0-canary.103
46
-
47
17
  ### Patch Changes
48
18
 
49
- - [#2421](https://github.com/graphcommerce-org/graphcommerce/pull/2421) [`f71b4e2`](https://github.com/graphcommerce-org/graphcommerce/commit/f71b4e2d13e54dd311eb1465a49df41703b6fef5) - Renamed from `@graphcommerce/graphcms-ui` to `@graphcommerce/hygraph-ui`. See [CHANGELOG.md](../graphcms-ui/CHANGELOG.md) for details. ([@paales](https://github.com/paales))
19
+ - [#2421](https://github.com/graphcommerce-org/graphcommerce/pull/2421) [`f71b4e2`](https://github.com/graphcommerce-org/graphcommerce/commit/f71b4e2d13e54dd311eb1465a49df41703b6fef5) - Renamed from `@graphcommerce/graphcms-ui` to `@graphcommerce/hygraph-ui`. ([@paales](https://github.com/paales))
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@graphcommerce/hygraph-ui",
3
3
  "homepage": "https://www.graphcommerce.org/",
4
4
  "repository": "github:graphcommerce-org/graphcommerce",
5
- "version": "9.0.1-canary.0",
5
+ "version": "9.0.1-canary.1",
6
6
  "sideEffects": false,
7
7
  "prettier": "@graphcommerce/prettier-config-pwa",
8
8
  "eslintConfig": {
@@ -12,13 +12,13 @@
12
12
  }
13
13
  },
14
14
  "peerDependencies": {
15
- "@graphcommerce/ecommerce-ui": "^9.0.1-canary.0",
16
- "@graphcommerce/eslint-config-pwa": "^9.0.1-canary.0",
17
- "@graphcommerce/graphql": "^9.0.1-canary.0",
18
- "@graphcommerce/image": "^9.0.1-canary.0",
19
- "@graphcommerce/next-ui": "^9.0.1-canary.0",
20
- "@graphcommerce/prettier-config-pwa": "^9.0.1-canary.0",
21
- "@graphcommerce/typescript-config-pwa": "^9.0.1-canary.0",
15
+ "@graphcommerce/ecommerce-ui": "^9.0.1-canary.1",
16
+ "@graphcommerce/eslint-config-pwa": "^9.0.1-canary.1",
17
+ "@graphcommerce/graphql": "^9.0.1-canary.1",
18
+ "@graphcommerce/image": "^9.0.1-canary.1",
19
+ "@graphcommerce/next-ui": "^9.0.1-canary.1",
20
+ "@graphcommerce/prettier-config-pwa": "^9.0.1-canary.1",
21
+ "@graphcommerce/typescript-config-pwa": "^9.0.1-canary.1",
22
22
  "@mui/material": "^5.10.16",
23
23
  "next": "*",
24
24
  "react": "^18.2.0",
@@ -18,11 +18,9 @@ export const graphqlConfig: FunctionPlugin<typeof graphqlConfigType> = (prev, co
18
18
 
19
19
  const locales = conf.storefront.hygraphLocales
20
20
 
21
- if (!locales) return prev(conf)
22
-
23
21
  const hygraphLink = setContext((_, context) => {
24
22
  if (!context.headers) context.headers = {}
25
- context.headers['gcms-locales'] = locales.join(',')
23
+ if (locales) context.headers['gcms-locales'] = locales.join(',')
26
24
 
27
25
  const stage = conf.previewData?.hygraphStage ?? 'DRAFT'
28
26
  if (conf.preview) {