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

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,21 @@
1
1
  # Change Log
2
2
 
3
- ## 9.0.1-canary.0
3
+ ## 9.0.1-canary.2
4
4
 
5
- ## 9.0.0
6
-
7
- ### Major Changes
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))
10
-
11
- ### Minor Changes
12
-
13
- - [#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
-
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
5
+ ## 9.0.1-canary.1
22
6
 
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
7
+ ### Patch Changes
36
8
 
37
- ## 9.0.0-canary.107
9
+ - [#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))
38
10
 
39
- ## 9.0.0-canary.106
11
+ - [#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))
40
12
 
41
- ## 9.0.0-canary.105
13
+ ## 9.0.0
42
14
 
43
- ## 9.0.0-canary.104
15
+ ### Minor Changes
44
16
 
45
- ## 9.0.0-canary.103
17
+ - [#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))
46
18
 
47
19
  ### Patch Changes
48
20
 
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))
21
+ - [#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.2",
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.2",
16
+ "@graphcommerce/eslint-config-pwa": "^9.0.1-canary.2",
17
+ "@graphcommerce/graphql": "^9.0.1-canary.2",
18
+ "@graphcommerce/image": "^9.0.1-canary.2",
19
+ "@graphcommerce/next-ui": "^9.0.1-canary.2",
20
+ "@graphcommerce/prettier-config-pwa": "^9.0.1-canary.2",
21
+ "@graphcommerce/typescript-config-pwa": "^9.0.1-canary.2",
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) {