@graphcommerce/hygraph-ui 9.0.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,47 +1,19 @@
1
1
  # Change Log
2
2
 
3
- ## 9.0.0
4
-
5
- ### Major Changes
6
-
7
- - [#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))
8
-
9
- ### Minor Changes
10
-
11
- - [#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))
12
-
13
- ## 9.0.0-canary.118
14
-
15
- ## 9.0.0-canary.117
16
-
17
- ## 9.0.0-canary.116
18
-
19
- ## 9.0.0-canary.115
3
+ ## 9.0.1-canary.1
20
4
 
21
- ## 9.0.0-canary.114
22
-
23
- ## 9.0.0-canary.113
24
-
25
- ## 9.0.0-canary.112
26
-
27
- ## 9.0.0-canary.111
28
-
29
- ## 9.0.0-canary.110
30
-
31
- ## 9.0.0-canary.109
32
-
33
- ## 9.0.0-canary.108
5
+ ### Patch Changes
34
6
 
35
- ## 9.0.0-canary.107
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))
36
8
 
37
- ## 9.0.0-canary.106
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))
38
10
 
39
- ## 9.0.0-canary.105
11
+ ## 9.0.0
40
12
 
41
- ## 9.0.0-canary.104
13
+ ### Minor Changes
42
14
 
43
- ## 9.0.0-canary.103
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))
44
16
 
45
17
  ### Patch Changes
46
18
 
47
- - [#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.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.0",
16
- "@graphcommerce/eslint-config-pwa": "^9.0.0",
17
- "@graphcommerce/graphql": "^9.0.0",
18
- "@graphcommerce/image": "^9.0.0",
19
- "@graphcommerce/next-ui": "^9.0.0",
20
- "@graphcommerce/prettier-config-pwa": "^9.0.0",
21
- "@graphcommerce/typescript-config-pwa": "^9.0.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) {