@graphcommerce/magento-store 9.0.0-canary.82 → 9.0.0-canary.84

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,13 @@
1
1
  # Change Log
2
2
 
3
+ ## 9.0.0-canary.84
4
+
5
+ ## 9.0.0-canary.83
6
+
7
+ ### Patch Changes
8
+
9
+ - [#2374](https://github.com/graphcommerce-org/graphcommerce/pull/2374) [`e61e1f4`](https://github.com/graphcommerce-org/graphcommerce/commit/e61e1f4fb1086f7a6341b42502135abf1839e43d) - Default to permanent redirects unless specified ([@hnsr](https://github.com/hnsr))
10
+
3
11
  ## 9.0.0-canary.82
4
12
 
5
13
  ## 9.0.0-canary.81
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": "9.0.0-canary.82",
5
+ "version": "9.0.0-canary.84",
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/eslint-config-pwa": "^9.0.0-canary.82",
16
- "@graphcommerce/graphql": "^9.0.0-canary.82",
17
- "@graphcommerce/graphql-mesh": "^9.0.0-canary.82",
18
- "@graphcommerce/image": "^9.0.0-canary.82",
19
- "@graphcommerce/next-ui": "^9.0.0-canary.82",
20
- "@graphcommerce/prettier-config-pwa": "^9.0.0-canary.82",
21
- "@graphcommerce/typescript-config-pwa": "^9.0.0-canary.82",
15
+ "@graphcommerce/eslint-config-pwa": "^9.0.0-canary.84",
16
+ "@graphcommerce/graphql": "^9.0.0-canary.84",
17
+ "@graphcommerce/graphql-mesh": "^9.0.0-canary.84",
18
+ "@graphcommerce/image": "^9.0.0-canary.84",
19
+ "@graphcommerce/next-ui": "^9.0.0-canary.84",
20
+ "@graphcommerce/prettier-config-pwa": "^9.0.0-canary.84",
21
+ "@graphcommerce/typescript-config-pwa": "^9.0.0-canary.84",
22
22
  "@lingui/core": "^4.2.1",
23
23
  "@lingui/macro": "^4.2.1",
24
24
  "@lingui/react": "^4.2.1",
@@ -105,8 +105,8 @@ export async function redirectOrNotFound(
105
105
  ? routeData.route.relative_url
106
106
  : undefined
107
107
 
108
- // There is a URL, so we need to check if it can be found in the database.
109
- const permanent = routeData.route?.redirect_code === 301
108
+ // For implicit redirects, always use permanent, otherwise use the given redirect type
109
+ const permanent = !routeData.route?.redirect_code || routeData.route?.redirect_code === 301
110
110
 
111
111
  if (
112
112
  isTypename(routeData.route, [