@shopify/create-hydrogen 5.0.35 → 5.0.36
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/dist/assets/hydrogen/routes/locale-check.ts +2 -2
- package/dist/assets/hydrogen/starter/CHANGELOG.md +13 -0
- package/dist/assets/hydrogen/starter/package.json +8 -9
- package/dist/assets/hydrogen/starter/vite.config.ts +4 -2
- package/dist/assets/hydrogen/vite/package.json +1 -2
- package/dist/assets/hydrogen/vite/vite.config.js +3 -2
- package/package.json +1 -1
|
@@ -7,8 +7,8 @@ export async function loader({params, context}: LoaderFunctionArgs) {
|
|
|
7
7
|
params.locale &&
|
|
8
8
|
params.locale.toLowerCase() !== `${language}-${country}`.toLowerCase()
|
|
9
9
|
) {
|
|
10
|
-
// If the locale URL param is defined, yet we
|
|
11
|
-
// then the
|
|
10
|
+
// If the locale URL param is defined, yet we are still at the default locale
|
|
11
|
+
// then the locale param must be invalid, send to the 404 page
|
|
12
12
|
throw new Response(null, {status: 404});
|
|
13
13
|
}
|
|
14
14
|
|
|
@@ -1,5 +1,18 @@
|
|
|
1
1
|
# skeleton
|
|
2
2
|
|
|
3
|
+
## 2026.4.2
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Add support for Vite 7 and Vite 8. Hydrogen remains backwards-compatible with Vite 5+. ([#3617](https://github.com/Shopify/hydrogen/pull/3617)) by [@frandiox](https://github.com/frandiox)
|
|
8
|
+
|
|
9
|
+
Mini Oxygen's dev server has been refactored to use the [Vite Environment API](https://vite.dev/guide/api-environment), which is the standard way to run non-browser runtimes in Vite. This replaces the previous custom middleware approach with a first-class `FetchableDevEnvironment`, improving compatibility with Vite's built-in HMR and module invalidation.
|
|
10
|
+
|
|
11
|
+
New Hydrogen projects created with `npm create @shopify/hydrogen` will default to Vite 8. The `vite-tsconfig-paths` plugin is no longer needed in the skeleton template since Vite 8 supports `resolve.tsconfigPaths` natively.
|
|
12
|
+
|
|
13
|
+
- Updated dependencies [[`dc49699c799997d5893bc06e444f888e86a3bc29`](https://github.com/Shopify/hydrogen/commit/dc49699c799997d5893bc06e444f888e86a3bc29), [`50df825c57159757529f5f9f62c258d4de2a4b97`](https://github.com/Shopify/hydrogen/commit/50df825c57159757529f5f9f62c258d4de2a4b97), [`51f1e77fe63be5e5ded4ef0c91942bc304f1abc4`](https://github.com/Shopify/hydrogen/commit/51f1e77fe63be5e5ded4ef0c91942bc304f1abc4)]:
|
|
14
|
+
- @shopify/hydrogen@2026.4.2
|
|
15
|
+
|
|
3
16
|
## 2026.4.1
|
|
4
17
|
|
|
5
18
|
### Patch Changes
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"name": "skeleton",
|
|
3
3
|
"private": true,
|
|
4
4
|
"sideEffects": false,
|
|
5
|
-
"version": "2026.4.
|
|
5
|
+
"version": "2026.4.2",
|
|
6
6
|
"type": "module",
|
|
7
7
|
"scripts": {
|
|
8
8
|
"build": "shopify hydrogen build --codegen",
|
|
@@ -14,25 +14,25 @@
|
|
|
14
14
|
},
|
|
15
15
|
"prettier": "@shopify/prettier-config",
|
|
16
16
|
"dependencies": {
|
|
17
|
-
"@shopify/hydrogen": "2026.4.
|
|
17
|
+
"@shopify/hydrogen": "2026.4.2",
|
|
18
18
|
"graphql": "^16.10.0",
|
|
19
19
|
"graphql-tag": "^2.12.6",
|
|
20
20
|
"isbot": "^5.1.22",
|
|
21
21
|
"react": "^18.3.1",
|
|
22
22
|
"react-dom": "^18.3.1",
|
|
23
|
-
"react-router": "7.
|
|
24
|
-
"react-router-dom": "7.
|
|
23
|
+
"react-router": "7.14.0",
|
|
24
|
+
"react-router-dom": "7.14.0"
|
|
25
25
|
},
|
|
26
26
|
"devDependencies": {
|
|
27
27
|
"@eslint/compat": "^1.2.5",
|
|
28
28
|
"@eslint/eslintrc": "^3.2.0",
|
|
29
29
|
"@eslint/js": "^9.18.0",
|
|
30
30
|
"@graphql-codegen/cli": "5.0.2",
|
|
31
|
-
"@react-router/dev": "7.
|
|
32
|
-
"@react-router/fs-routes": "7.
|
|
31
|
+
"@react-router/dev": "7.14.0",
|
|
32
|
+
"@react-router/fs-routes": "7.14.0",
|
|
33
33
|
"@shopify/cli": "3.93.2",
|
|
34
34
|
"@shopify/hydrogen-codegen": "0.3.3",
|
|
35
|
-
"@shopify/mini-oxygen": "4.0
|
|
35
|
+
"@shopify/mini-oxygen": "4.1.0",
|
|
36
36
|
"@shopify/oxygen-workers-types": "^4.1.6",
|
|
37
37
|
"@shopify/prettier-config": "^1.1.2",
|
|
38
38
|
"@total-typescript/ts-reset": "^0.6.1",
|
|
@@ -54,8 +54,7 @@
|
|
|
54
54
|
"graphql-config": "^5.0.3",
|
|
55
55
|
"prettier": "^3.4.2",
|
|
56
56
|
"typescript": "^5.9.2",
|
|
57
|
-
"vite": "^
|
|
58
|
-
"vite-tsconfig-paths": "^4.3.1"
|
|
57
|
+
"vite": "^8.0.1"
|
|
59
58
|
},
|
|
60
59
|
"engines": {
|
|
61
60
|
"node": "^22 || ^24"
|
|
@@ -2,10 +2,12 @@ import {defineConfig} from 'vite';
|
|
|
2
2
|
import {hydrogen} from '@shopify/hydrogen/vite';
|
|
3
3
|
import {oxygen} from '@shopify/mini-oxygen/vite';
|
|
4
4
|
import {reactRouter} from '@react-router/dev/vite';
|
|
5
|
-
import tsconfigPaths from 'vite-tsconfig-paths';
|
|
6
5
|
|
|
7
6
|
export default defineConfig({
|
|
8
|
-
plugins: [hydrogen(), oxygen(), reactRouter()
|
|
7
|
+
plugins: [hydrogen(), oxygen(), reactRouter()],
|
|
8
|
+
resolve: {
|
|
9
|
+
tsconfigPaths: true,
|
|
10
|
+
},
|
|
9
11
|
build: {
|
|
10
12
|
// Allow a strict Content-Security-Policy
|
|
11
13
|
// without inlining assets as base64:
|
|
@@ -2,9 +2,11 @@ import {defineConfig} from 'vite';
|
|
|
2
2
|
import {hydrogen} from '@shopify/hydrogen/vite';
|
|
3
3
|
import {oxygen} from '@shopify/mini-oxygen/vite';
|
|
4
4
|
import {vitePlugin as remix} from '@remix-run/dev';
|
|
5
|
-
import tsconfigPaths from 'vite-tsconfig-paths';
|
|
6
5
|
|
|
7
6
|
export default defineConfig({
|
|
7
|
+
resolve: {
|
|
8
|
+
tsconfigPaths: true,
|
|
9
|
+
},
|
|
8
10
|
plugins: [
|
|
9
11
|
hydrogen(),
|
|
10
12
|
oxygen(),
|
|
@@ -17,7 +19,6 @@ export default defineConfig({
|
|
|
17
19
|
v3_routeConfig: false,
|
|
18
20
|
},
|
|
19
21
|
}),
|
|
20
|
-
tsconfigPaths(),
|
|
21
22
|
],
|
|
22
23
|
build: {
|
|
23
24
|
// Allow a strict Content-Security-Policy
|