@stratal/inertia 0.1.0 → 0.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.
Files changed (2) hide show
  1. package/CHANGELOG.md +20 -0
  2. package/package.json +5 -5
package/CHANGELOG.md CHANGED
@@ -1,5 +1,25 @@
1
1
  # @stratal/inertia
2
2
 
3
+ ## 0.1.1
4
+
5
+ ### Patch Changes
6
+
7
+ - 99e36c5: Fix `ReferenceError: require is not defined` 500 on every Inertia SSR page under the Cloudflare Workers
8
+ dev/SSR runtime.
9
+
10
+ `@stratal/inertia`'s SSR renderer imports the `react-dom/server` subpath. Because `@stratal/inertia` is
11
+ listed in the `stratalInertia()` plugin's `optimizeDepsExclude` (to avoid the Hono/stratal
12
+ duplicate-instance identity bug), Vite's optimizer never crawls into it and so never auto-discovers
13
+ `react-dom/server`. React 19's `react-dom/server` is a CJS shim whose conditional
14
+ `require('./cjs/react-dom-server.<env>.<mode>.js')` is only resolved by the optimizer's CJS→ESM
15
+ conversion — left undiscovered, that `require` reaches the workerd SSR runner (which has no `require`),
16
+ so every SSR page 500s. Force-optimizing the exact `react-dom/server` specifier makes esbuild perform the
17
+ CJS→ESM conversion; the framework's import then redirects to the converted copy.
18
+
19
+ - Updated dependencies [df54f36]
20
+ - stratal@0.1.1
21
+ - @stratal/testing@0.1.1
22
+
3
23
  ## 0.1.0
4
24
 
5
25
  ### Minor Changes
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@stratal/inertia",
3
- "version": "0.1.0",
3
+ "version": "0.1.1",
4
4
  "description": "Inertia.js v3 server adapter for Stratal framework — server-driven React SPAs",
5
5
  "type": "module",
6
6
  "license": "MIT",
@@ -94,11 +94,11 @@
94
94
  "@inertiajs/core": ">=3",
95
95
  "@inertiajs/react": ">=3",
96
96
  "@inertiajs/vite": ">=3",
97
- "@stratal/testing": ">=0.1.0",
97
+ "@stratal/testing": ">=0.1.1",
98
98
  "hono": ">=4",
99
99
  "react": ">=19",
100
100
  "react-dom": ">=19",
101
- "stratal": ">=0.1.0",
101
+ "stratal": ">=0.1.1",
102
102
  "vite": ">=8",
103
103
  "vitest": ">=4"
104
104
  },
@@ -134,7 +134,7 @@
134
134
  "@inertiajs/core": "^3.7.1",
135
135
  "@inertiajs/react": "^3.7.1",
136
136
  "@inertiajs/vite": "^3.7.1",
137
- "@stratal/testing": "0.1.0",
137
+ "@stratal/testing": "0.1.1",
138
138
  "@types/node": "^26.6.2",
139
139
  "@types/react": "^19.3.0",
140
140
  "@types/react-dom": "^19.3.0",
@@ -144,7 +144,7 @@
144
144
  "jsdom": "^30.1.0",
145
145
  "react": "^19.3.0",
146
146
  "react-dom": "^19.3.0",
147
- "stratal": "0.1.0",
147
+ "stratal": "0.1.1",
148
148
  "tsdown": "^0.23.0",
149
149
  "typescript": "^7.0.2",
150
150
  "vite": "^8.3.0",