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