@shopify/hydrogen 2026.4.0 → 2026.4.1
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 -3
- package/dist/vite/request-events.d.ts +0 -1
- package/dist/vite/request-events.js +1 -1
- package/package.json +3 -3
|
@@ -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 = {};
|
|
@@ -87,7 +87,6 @@ function hydrogen(pluginOptions = {}) {
|
|
|
87
87
|
requestHook: ({ request, response, meta }) => {
|
|
88
88
|
emitRequestEvent(
|
|
89
89
|
{
|
|
90
|
-
__fromVite: true,
|
|
91
90
|
eventType: "request",
|
|
92
91
|
url: request.url,
|
|
93
92
|
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.1",
|
|
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.1"
|
|
84
84
|
},
|
|
85
85
|
"devDependencies": {
|
|
86
86
|
"react-router": "7.12.0",
|
|
87
87
|
"@react-router/dev": "7.12.0",
|
|
88
|
-
"@shopify/generate-docs": "
|
|
88
|
+
"@shopify/generate-docs": "1.1.2",
|
|
89
89
|
"@testing-library/jest-dom": "^6.6.3",
|
|
90
90
|
"@types/node": "22.19.15",
|
|
91
91
|
"@types/react": "^18.3.28",
|