@shopify/hydrogen 2026.4.0 → 2026.4.2
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/development/index.cjs +228 -174
- package/dist/development/index.cjs.map +1 -1
- package/dist/development/index.js +228 -174
- package/dist/development/index.js.map +1 -1
- package/dist/oxygen/index.d.ts +1 -1
- package/dist/production/index.cjs +121 -153
- package/dist/production/index.cjs.map +1 -1
- package/dist/production/index.d.cts +64 -1
- package/dist/production/index.d.ts +64 -1
- package/dist/production/index.js +121 -153
- package/dist/production/index.js.map +1 -1
- package/dist/vite/{chunk-ZSWP2RO7.js → chunk-4O5OI3OO.js} +0 -4
- package/dist/vite/{chunk-XTDF5RJS.js → chunk-QXBQVDMY.js} +1 -2
- package/dist/vite/hydrogen-middleware.js +2 -2
- package/dist/vite/plugin.js +2 -6
- package/dist/vite/request-events.d.ts +0 -1
- package/dist/vite/request-events.js +1 -1
- package/package.json +8 -8
|
@@ -29,10 +29,6 @@ function emitRequestEvent(payload, root) {
|
|
|
29
29
|
if (!payload || !payload.url || !payload.requestId) {
|
|
30
30
|
return;
|
|
31
31
|
}
|
|
32
|
-
if (payload.eventType === "request" && !payload.__fromVite) {
|
|
33
|
-
return;
|
|
34
|
-
}
|
|
35
|
-
delete payload.__fromVite;
|
|
36
32
|
const { pathname } = new URL(payload.url, "http://localhost");
|
|
37
33
|
if (IGNORED_ROUTES.has(pathname)) return;
|
|
38
34
|
const {
|
|
@@ -2,7 +2,7 @@ import {
|
|
|
2
2
|
clearHistory,
|
|
3
3
|
emitRequestEvent,
|
|
4
4
|
streamRequestEvents
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-4O5OI3OO.js";
|
|
6
6
|
|
|
7
7
|
// src/vite/hydrogen-middleware.ts
|
|
8
8
|
import crypto from "crypto";
|
|
@@ -24,7 +24,6 @@ function setupHydrogenMiddleware(viteDevServer, options) {
|
|
|
24
24
|
res.once("close", () => {
|
|
25
25
|
emitRequestEvent(
|
|
26
26
|
{
|
|
27
|
-
__fromVite: true,
|
|
28
27
|
eventType: "request",
|
|
29
28
|
url: req.url,
|
|
30
29
|
requestId: req.headers["request-id"],
|
package/dist/vite/plugin.js
CHANGED
|
@@ -3,10 +3,10 @@ import {
|
|
|
3
3
|
} from "./chunk-FAQ7TVHC.js";
|
|
4
4
|
import {
|
|
5
5
|
setupHydrogenMiddleware
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-QXBQVDMY.js";
|
|
7
7
|
import {
|
|
8
8
|
emitRequestEvent
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-4O5OI3OO.js";
|
|
10
10
|
|
|
11
11
|
// src/vite/plugin.ts
|
|
12
12
|
var sharedOptions = {};
|
|
@@ -25,9 +25,6 @@ function hydrogen(pluginOptions = {}) {
|
|
|
25
25
|
build: {
|
|
26
26
|
outDir: "dist"
|
|
27
27
|
},
|
|
28
|
-
server: {
|
|
29
|
-
watch: null
|
|
30
|
-
},
|
|
31
28
|
ssr: {
|
|
32
29
|
optimizeDeps: {
|
|
33
30
|
// Add CJS dependencies that break code in workerd
|
|
@@ -87,7 +84,6 @@ function hydrogen(pluginOptions = {}) {
|
|
|
87
84
|
requestHook: ({ request, response, meta }) => {
|
|
88
85
|
emitRequestEvent(
|
|
89
86
|
{
|
|
90
|
-
__fromVite: true,
|
|
91
87
|
eventType: "request",
|
|
92
88
|
url: request.url,
|
|
93
89
|
requestId: request.headers["request-id"],
|
package/package.json
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
"@shopify:registry": "https://registry.npmjs.org"
|
|
6
6
|
},
|
|
7
7
|
"type": "module",
|
|
8
|
-
"version": "2026.4.
|
|
8
|
+
"version": "2026.4.2",
|
|
9
9
|
"license": "MIT",
|
|
10
10
|
"main": "dist/index.cjs",
|
|
11
11
|
"module": "dist/production/index.js",
|
|
@@ -80,12 +80,12 @@
|
|
|
80
80
|
"use-resize-observer": "^9.1.0",
|
|
81
81
|
"worktop": "^0.7.3",
|
|
82
82
|
"@shopify/graphql-client": "1.4.1",
|
|
83
|
-
"@shopify/hydrogen-react": "2026.4.
|
|
83
|
+
"@shopify/hydrogen-react": "2026.4.2"
|
|
84
84
|
},
|
|
85
85
|
"devDependencies": {
|
|
86
|
-
"react-router": "7.
|
|
87
|
-
"@react-router/dev": "7.
|
|
88
|
-
"@shopify/generate-docs": "
|
|
86
|
+
"react-router": "7.14.0",
|
|
87
|
+
"@react-router/dev": "7.14.0",
|
|
88
|
+
"@shopify/generate-docs": "1.1.4",
|
|
89
89
|
"@testing-library/jest-dom": "^6.6.3",
|
|
90
90
|
"@types/node": "22.19.15",
|
|
91
91
|
"@types/react": "^18.3.28",
|
|
@@ -102,10 +102,10 @@
|
|
|
102
102
|
"@shopify/hydrogen-codegen": "0.3.3"
|
|
103
103
|
},
|
|
104
104
|
"peerDependencies": {
|
|
105
|
-
"react-router": "
|
|
106
|
-
"@react-router/dev": "
|
|
105
|
+
"react-router": "7.14.0",
|
|
106
|
+
"@react-router/dev": "7.14.0",
|
|
107
107
|
"react": "^18.3.1 || ~19.0.3 || ~19.1.4 || ^19.2.3",
|
|
108
|
-
"vite": "^5.1.0 || ^6.2.1"
|
|
108
|
+
"vite": "^5.1.0 || ^6.2.1 || ^7.0.0 || ^8.0.0"
|
|
109
109
|
},
|
|
110
110
|
"peerDependenciesMeta": {
|
|
111
111
|
"vite": {
|