@shopify/hydrogen 2025.10.1 → 2026.1.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.
@@ -57,9 +57,7 @@ function setupHydrogenMiddleware(viteDevServer, options) {
57
57
  "/graphiql/customer-account.schema.json",
58
58
  function h2HandleGraphiQLCustomerSchema(req, res) {
59
59
  const require2 = createRequire(import.meta.url);
60
- const filePath = require2.resolve(
61
- "@shopify/hydrogen/customer-account.schema.json"
62
- );
60
+ const filePath = require2.resolve("@shopify/hydrogen/customer-account.schema.json");
63
61
  res.writeHead(200, { "Content-Type": "application/json" });
64
62
  createReadStream(filePath).pipe(res);
65
63
  }
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  setupHydrogenMiddleware
3
- } from "./chunk-MDCIB6DS.js";
3
+ } from "./chunk-XTDF5RJS.js";
4
4
  import "./chunk-ZSWP2RO7.js";
5
5
  export {
6
6
  setupHydrogenMiddleware
@@ -3,7 +3,7 @@ import {
3
3
  } from "./chunk-FAQ7TVHC.js";
4
4
  import {
5
5
  setupHydrogenMiddleware
6
- } from "./chunk-MDCIB6DS.js";
6
+ } from "./chunk-XTDF5RJS.js";
7
7
  import {
8
8
  emitRequestEvent
9
9
  } from "./chunk-ZSWP2RO7.js";
package/package.json CHANGED
@@ -5,7 +5,7 @@
5
5
  "@shopify:registry": "https://registry.npmjs.org"
6
6
  },
7
7
  "type": "module",
8
- "version": "2025.10.1",
8
+ "version": "2026.1.1",
9
9
  "license": "MIT",
10
10
  "main": "dist/index.cjs",
11
11
  "module": "dist/production/index.js",
@@ -16,17 +16,6 @@
16
16
  "url": "git+https://github.com/Shopify/hydrogen.git",
17
17
  "directory": "packages/hydrogen"
18
18
  },
19
- "scripts": {
20
- "build": "tsup --clean",
21
- "dev": "tsup --watch ./src --watch ../../node_modules/@shopify/hydrogen-react/dist/browser-prod/index.mjs",
22
- "typecheck": "tsc --noEmit",
23
- "test": "vitest run",
24
- "prepack": "npm run build",
25
- "test:watch": "vitest",
26
- "build-docs": "sh ./docs/build-docs.sh && npm run format",
27
- "format": "prettier --write \"{src,docs}/**/*\" --ignore-unknown",
28
- "preview-docs": "npm run dev --prefix ../../docs/preview"
29
- },
30
19
  "exports": {
31
20
  ".": {
32
21
  "types": "./dist/production/index.d.ts",
@@ -83,7 +72,7 @@
83
72
  "dist"
84
73
  ],
85
74
  "dependencies": {
86
- "@shopify/hydrogen-react": "2025.10.0",
75
+ "@shopify/hydrogen-react": "*2026.1.1",
87
76
  "content-security-policy-builder": "^2.2.0",
88
77
  "flame-chart-js": "2.3.1",
89
78
  "isbot": "^5.1.21",
@@ -97,15 +86,20 @@
97
86
  "react-router": "7.12.0",
98
87
  "@react-router/dev": "7.12.0",
99
88
  "@shopify/generate-docs": "0.16.4",
100
- "@shopify/hydrogen-codegen": "*",
101
- "@testing-library/jest-dom": "^5.17.0",
89
+ "@testing-library/jest-dom": "^6.6.3",
90
+ "@types/node": "^22",
91
+ "@types/react": "^18.3.28",
92
+ "@types/react-dom": "^18.3.7",
102
93
  "@testing-library/react": "^14.0.0",
103
94
  "@types/source-map-support": "^0.5.10",
104
95
  "formdata-polyfill": "^4.0.10",
105
- "happy-dom": "^17.0.0",
106
- "react": "18.3.1",
96
+ "graphql": "^16.12.0",
97
+ "happy-dom": "^20.0.0",
98
+ "react": "^18.3.1",
99
+ "react-dom": "^18.3.1",
107
100
  "schema-dts": "^1.1.2",
108
- "vitest": "^3.2.4"
101
+ "vitest": "^3.2.4",
102
+ "@shopify/hydrogen-codegen": "0.3.3"
109
103
  },
110
104
  "peerDependencies": {
111
105
  "react-router": "7.12.0",
@@ -117,5 +111,15 @@
117
111
  "vite": {
118
112
  "optional": true
119
113
  }
114
+ },
115
+ "scripts": {
116
+ "build": "tsup --clean",
117
+ "dev": "tsup --watch ./src --watch ../../node_modules/@shopify/hydrogen-react/dist/browser-prod/index.mjs",
118
+ "typecheck": "tsc --noEmit",
119
+ "test": "vitest run",
120
+ "test:watch": "vitest",
121
+ "build-docs": "sh ./docs/build-docs.sh && pnpm run format",
122
+ "format": "prettier --write \"{src,docs}/**/*\" --ignore-unknown",
123
+ "preview-docs": "pnpm --dir ../../docs/preview run dev"
120
124
  }
121
- }
125
+ }