@graphcommerce/magento-store 5.2.0-canary.5 → 5.2.0-canary.7
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 +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,13 @@
|
|
|
1
1
|
# Change Log
|
|
2
2
|
|
|
3
|
+
## 5.2.0-canary.7
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [#1749](https://github.com/graphcommerce-org/graphcommerce/pull/1749) [`16e91da42`](https://github.com/graphcommerce-org/graphcommerce/commit/16e91da42dcb454ea4761d1780b9338c88ef1463) - Fix spelling error incomming to incoming ([@paales](https://github.com/paales))
|
|
8
|
+
|
|
9
|
+
## 5.2.0-canary.6
|
|
10
|
+
|
|
3
11
|
## 5.2.0-canary.5
|
|
4
12
|
|
|
5
13
|
## 5.2.0-canary.4
|
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": "5.2.0-canary.
|
|
5
|
+
"version": "5.2.0-canary.7",
|
|
6
6
|
"sideEffects": false,
|
|
7
7
|
"prettier": "@graphcommerce/prettier-config-pwa",
|
|
8
8
|
"eslintConfig": {
|
|
@@ -12,15 +12,15 @@
|
|
|
12
12
|
}
|
|
13
13
|
},
|
|
14
14
|
"devDependencies": {
|
|
15
|
-
"@graphcommerce/eslint-config-pwa": "5.2.0-canary.
|
|
16
|
-
"@graphcommerce/prettier-config-pwa": "5.2.0-canary.
|
|
17
|
-
"@graphcommerce/typescript-config-pwa": "5.2.0-canary.
|
|
15
|
+
"@graphcommerce/eslint-config-pwa": "5.2.0-canary.7",
|
|
16
|
+
"@graphcommerce/prettier-config-pwa": "5.2.0-canary.7",
|
|
17
|
+
"@graphcommerce/typescript-config-pwa": "5.2.0-canary.7"
|
|
18
18
|
},
|
|
19
19
|
"dependencies": {
|
|
20
|
-
"@graphcommerce/graphql": "5.2.0-canary.
|
|
21
|
-
"@graphcommerce/graphql-mesh": "5.2.0-canary.
|
|
22
|
-
"@graphcommerce/image": "5.2.0-canary.
|
|
23
|
-
"@graphcommerce/next-ui": "5.2.0-canary.
|
|
20
|
+
"@graphcommerce/graphql": "5.2.0-canary.7",
|
|
21
|
+
"@graphcommerce/graphql-mesh": "5.2.0-canary.7",
|
|
22
|
+
"@graphcommerce/image": "5.2.0-canary.7",
|
|
23
|
+
"@graphcommerce/next-ui": "5.2.0-canary.7"
|
|
24
24
|
},
|
|
25
25
|
"peerDependencies": {
|
|
26
26
|
"@lingui/react": "^3.13.2",
|
|
@@ -49,8 +49,8 @@ export async function redirectOrNotFound(
|
|
|
49
49
|
|
|
50
50
|
const candidates = new Set([urlKey])
|
|
51
51
|
|
|
52
|
-
// If the
|
|
53
|
-
// if the
|
|
52
|
+
// If the incoming URL contains a suffix, we check if the URL without the suffix exists
|
|
53
|
+
// if the incoming URL does not contain a suffix, we check if the URL with the suffix exists
|
|
54
54
|
const suffixes = [prodSuffix, catSuffix].filter(nonNullable)
|
|
55
55
|
suffixes.forEach((suffix) => {
|
|
56
56
|
candidates.add(
|