react-router-hono-server 2.8.3 → 2.8.4
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/adapters/aws-lambda.d.ts +1 -1
- package/dist/adapters/aws-lambda.js +1 -1
- package/dist/adapters/bun.d.ts +1 -1
- package/dist/adapters/bun.js +1 -1
- package/dist/adapters/cloudflare.d.ts +1 -1
- package/dist/adapters/cloudflare.js +1 -1
- package/dist/adapters/node.d.ts +1 -1
- package/dist/adapters/node.js +1 -1
- package/dist/{chunk-U6KHKHF4.js → chunk-GGTBX2N2.js} +3 -2
- package/dist/dev.js +4 -1
- package/dist/react-EHUEJIYR.js +1584 -0
- package/package.json +1 -1
- package/dist/react-552SQ3AP.js +0 -2186
|
@@ -2,7 +2,7 @@ import * as hono_aws_lambda from 'hono/aws-lambda';
|
|
|
2
2
|
import * as hono_types from 'hono/types';
|
|
3
3
|
import { BlankEnv } from 'hono/types';
|
|
4
4
|
import { Env, Hono } from 'hono';
|
|
5
|
-
import {
|
|
5
|
+
import { H as HonoServerOptionsBase, W as WithoutWebsocket } from '../helpers-DZ1r-Y-D.js';
|
|
6
6
|
export { c as createGetLoadContext } from '../helpers-DZ1r-Y-D.js';
|
|
7
7
|
import 'react-router';
|
|
8
8
|
import 'hono/ws';
|
package/dist/adapters/bun.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Serve, ServeOptions } from 'bun';
|
|
2
2
|
import { Env } from 'hono';
|
|
3
3
|
import { BlankEnv } from 'hono/types';
|
|
4
|
-
import {
|
|
4
|
+
import { H as HonoServerOptionsBase, a as WithWebsocket, W as WithoutWebsocket } from '../helpers-DZ1r-Y-D.js';
|
|
5
5
|
export { c as createGetLoadContext } from '../helpers-DZ1r-Y-D.js';
|
|
6
6
|
import 'react-router';
|
|
7
7
|
import 'hono/ws';
|
package/dist/adapters/bun.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import * as hono_types from 'hono/types';
|
|
2
2
|
import { BlankEnv } from 'hono/types';
|
|
3
3
|
import { Env, Hono } from 'hono';
|
|
4
|
-
import {
|
|
4
|
+
import { H as HonoServerOptionsBase, W as WithoutWebsocket } from '../helpers-DZ1r-Y-D.js';
|
|
5
5
|
export { c as createGetLoadContext } from '../helpers-DZ1r-Y-D.js';
|
|
6
6
|
import 'react-router';
|
|
7
7
|
import 'hono/ws';
|
package/dist/adapters/node.d.ts
CHANGED
|
@@ -2,7 +2,7 @@ import { AddressInfo } from 'node:net';
|
|
|
2
2
|
import { ServerType } from '@hono/node-server';
|
|
3
3
|
import { Env, Hono } from 'hono';
|
|
4
4
|
import { BlankEnv } from 'hono/types';
|
|
5
|
-
import {
|
|
5
|
+
import { H as HonoServerOptionsBase, a as WithWebsocket, W as WithoutWebsocket } from '../helpers-DZ1r-Y-D.js';
|
|
6
6
|
export { c as createGetLoadContext } from '../helpers-DZ1r-Y-D.js';
|
|
7
7
|
import { ServerOptions, createServer } from 'node:http';
|
|
8
8
|
import { ServerOptions as ServerOptions$2, createServer as createServer$2, SecureServerOptions, createSecureServer } from 'node:http2';
|
package/dist/adapters/node.js
CHANGED
|
@@ -88,8 +88,9 @@ function createGetLoadContext(getLoadContext) {
|
|
|
88
88
|
return getLoadContext;
|
|
89
89
|
}
|
|
90
90
|
async function getReactVersion() {
|
|
91
|
-
const
|
|
92
|
-
|
|
91
|
+
const reactPackage = await import("./react-EHUEJIYR.js");
|
|
92
|
+
const version = reactPackage.default.version || reactPackage.version;
|
|
93
|
+
return Number.parseInt(version.split(".")[0]);
|
|
93
94
|
}
|
|
94
95
|
|
|
95
96
|
export {
|
package/dist/dev.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
getReactVersion
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-GGTBX2N2.js";
|
|
4
4
|
import "./chunk-FTA5RKYX.js";
|
|
5
5
|
|
|
6
6
|
// src/dev.ts
|
|
@@ -107,6 +107,9 @@ Please add it to your plugins: import { cloudflareDevProxy } from "@react-router
|
|
|
107
107
|
const buildPath = path.join(pluginConfig.rootDirectory, pluginConfig.buildDirectory, "server", "index.js");
|
|
108
108
|
let content = await fs.promises.readFile(buildPath, "utf-8");
|
|
109
109
|
content = content.replace(reactRouterExport, "");
|
|
110
|
+
if (await getReactVersion() >= 19) {
|
|
111
|
+
content = content.replace(/react-dom\/server\.browser/g, "react-dom/server.edge");
|
|
112
|
+
}
|
|
110
113
|
await fs.promises.writeFile(buildPath, content);
|
|
111
114
|
console.log("\x1B[32mAll done!\x1B[0m");
|
|
112
115
|
},
|