Update bun-framework-react dependencies and imports

- Changed the version of `react-server-dom-bun` from a local link to a specific experimental version in `package.json` and `bun.lock`.
- Updated the import path for `renderToPipeableStream` to use the `.node` variant for compatibility.
- Added `neo-async` as a dependency for `react-server-dom-bun` to ensure proper functionality.
This commit is contained in:
Alistair Smith
2025-09-18 14:18:11 -07:00
parent c29c69b9b5
commit e554c4e1ca
4 changed files with 7 additions and 4 deletions

View File

@@ -6,7 +6,7 @@
"react": "19.2.0-canary-67a44bcd-20250915",
"react-dom": "19.2.0-canary-67a44bcd-20250915",
"react-refresh": "^0.17.0",
"react-server-dom-bun": "link:react-server-dom-bun",
"react-server-dom-bun": "^0.0.0-experimental-603e6108-20241029",
},
"devDependencies": {
"@types/react": "^19.1.13",
@@ -21,13 +21,15 @@
"csstype": ["csstype@3.1.3", "", {}, "sha512-M1uQkMl8rQK/szD0LNhtqxIPLpimGm8sOBwU7lLnCpSbTyY3yeU1Vc7l4KT5zT4s/yOxHH5O7tIuuLOCnLADRw=="],
"neo-async": ["neo-async@2.6.2", "", {}, "sha512-Yd3UES5mWCSqR+qNT93S3UoYUkqAZ9lLg8a7g9rimsWmYGK8cVToA4/sF3RrshdyV3sAGMXVUmpMYOw+dLpOuw=="],
"react": ["react@19.2.0-canary-67a44bcd-20250915", "", {}, "sha512-93GXCSAJhSkIpC0Z8adssVHP/MIgmufZ0eFBBP3TUWuLYNFk7Pv8Sal6UZ/UGVeX+KZPSu95vSR5guUvqtGrDQ=="],
"react-dom": ["react-dom@19.2.0-canary-67a44bcd-20250915", "", { "dependencies": { "scheduler": "0.27.0-canary-67a44bcd-20250915" }, "peerDependencies": { "react": "19.2.0-canary-67a44bcd-20250915" } }, "sha512-s+aP2nMr/wKdIrf0Z/fyYObl8IyMXbaW+ujekxG7hKtssuWjOJ2OhS9bg34/DFm1OaMczKKyW2Crv0BYRUlJfA=="],
"react-refresh": ["react-refresh@0.17.0", "", {}, "sha512-z6F7K9bV85EfseRCp2bzrpyQ0Gkw1uLoCel9XBVWPg/TjRj94SkJzUTGfOa4bs7iJvBWtQG0Wq7wnI0syw3EBQ=="],
"react-server-dom-bun": ["react-server-dom-bun@link:react-server-dom-bun", {}],
"react-server-dom-bun": ["react-server-dom-bun@0.0.0-experimental-603e6108-20241029", "", { "dependencies": { "neo-async": "^2.6.1" } }, "sha512-FfteCHlOgJSnDJRatgIkIU74jQQ9M1+fH2e6kfY9Sibu8FAWEUjgApKQPDfiXgjrkY7w0ITQu0b2FezC0eGzCw=="],
"scheduler": ["scheduler@0.27.0-canary-67a44bcd-20250915", "", {}, "sha512-smZ2mJWYQBKEpnEHOavM3YwhduC6pD4esZTefLPwQok/Ca65W/tWDHRHJhFHYi+A8ottJJA8G6tXfhA2wuGH0A=="],
}

View File

@@ -13,7 +13,7 @@
"react": "19.2.0-canary-67a44bcd-20250915",
"react-dom": "19.2.0-canary-67a44bcd-20250915",
"react-refresh": "^0.17.0",
"react-server-dom-bun": "link:react-server-dom-bun"
"react-server-dom-bun": "^0.0.0-experimental-603e6108-20241029"
},
"devDependencies": {
"@types/react": "^19.1.13",

View File

@@ -3,7 +3,7 @@ import * as Bake from "bun:app";
import { serverManifest } from "bun:app/server";
import type { AsyncLocalStorage } from "node:async_hooks";
import { PassThrough } from "node:stream";
import { renderToPipeableStream } from "react-server-dom-bun/server";
import { renderToPipeableStream } from "react-server-dom-bun/server.node";
import type { RequestContext } from "../../src/bake/hmr-runtime-server.ts";
function assertReactComponent(Component: unknown): asserts Component is React.JSXElementConstructor<unknown> {

View File

@@ -57,6 +57,7 @@ server_exports = {
const exports = await loadExports<ServerEntryPoint>(routerTypeMain);
console.log("exports", exports);
const serverRenderer = exports.render;
if (!serverRenderer) {