@graphcommerce/magento-store 9.0.0-canary.80 → 9.0.0-canary.82
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 +8 -0
- package/package.json +8 -8
- package/utils/redirectOrNotFound.ts +5 -0
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,13 @@
|
|
|
1
1
|
# Change Log
|
|
2
2
|
|
|
3
|
+
## 9.0.0-canary.82
|
|
4
|
+
|
|
5
|
+
## 9.0.0-canary.81
|
|
6
|
+
|
|
7
|
+
### Minor Changes
|
|
8
|
+
|
|
9
|
+
- [#2373](https://github.com/graphcommerce-org/graphcommerce/pull/2373) [`53ffc91`](https://github.com/graphcommerce-org/graphcommerce/commit/53ffc91f9bfbe1183c002c62b1fe0c3f415d7b94) - Handle the case where one switches from using the default .html URL suffix, to not using one ([@hnsr](https://github.com/hnsr))
|
|
10
|
+
|
|
3
11
|
## 9.0.0-canary.80
|
|
4
12
|
|
|
5
13
|
## 9.0.0-canary.79
|
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.
|
|
5
|
+
"version": "9.0.0-canary.82",
|
|
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.
|
|
16
|
-
"@graphcommerce/graphql": "^9.0.0-canary.
|
|
17
|
-
"@graphcommerce/graphql-mesh": "^9.0.0-canary.
|
|
18
|
-
"@graphcommerce/image": "^9.0.0-canary.
|
|
19
|
-
"@graphcommerce/next-ui": "^9.0.0-canary.
|
|
20
|
-
"@graphcommerce/prettier-config-pwa": "^9.0.0-canary.
|
|
21
|
-
"@graphcommerce/typescript-config-pwa": "^9.0.0-canary.
|
|
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",
|
|
22
22
|
"@lingui/core": "^4.2.1",
|
|
23
23
|
"@lingui/macro": "^4.2.1",
|
|
24
24
|
"@lingui/react": "^4.2.1",
|
|
@@ -68,6 +68,11 @@ export async function redirectOrNotFound(
|
|
|
68
68
|
candidates.add(from.endsWith(suffix) ? from.slice(0, -suffix.length) : `${from}${suffix}`)
|
|
69
69
|
})
|
|
70
70
|
|
|
71
|
+
// Handle the case where we transition from using the default .html suffix, to not using one
|
|
72
|
+
if (from.endsWith('.html')) {
|
|
73
|
+
candidates.add(from.slice(0, -('.html'.length)))
|
|
74
|
+
}
|
|
75
|
+
|
|
71
76
|
const routePromises = [...candidates].filter(Boolean).map(
|
|
72
77
|
async (url) =>
|
|
73
78
|
(
|