react-router-hono-server 2.8.3 → 2.8.5
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 -2
- package/dist/adapters/bun.d.ts +1 -1
- package/dist/adapters/bun.js +1 -2
- package/dist/adapters/cloudflare.d.ts +1 -1
- package/dist/adapters/cloudflare.js +1 -2
- package/dist/adapters/node.d.ts +1 -1
- package/dist/adapters/node.js +1 -2
- package/dist/{chunk-U6KHKHF4.js → chunk-J24YMSRS.js} +3 -2
- package/dist/dev.js +4 -2
- package/dist/http.js +0 -2
- package/dist/middleware.js +0 -1
- package/package.json +8 -2
- package/dist/chunk-FTA5RKYX.js +0 -8
- 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';
|
|
@@ -2,11 +2,10 @@ import {
|
|
|
2
2
|
bindIncomingRequestSocketInfo,
|
|
3
3
|
createGetLoadContext,
|
|
4
4
|
importBuild
|
|
5
|
-
} from "../chunk-
|
|
5
|
+
} from "../chunk-J24YMSRS.js";
|
|
6
6
|
import {
|
|
7
7
|
cache
|
|
8
8
|
} from "../chunk-V3H4JZ4H.js";
|
|
9
|
-
import "../chunk-FTA5RKYX.js";
|
|
10
9
|
|
|
11
10
|
// src/adapters/aws-lambda.ts
|
|
12
11
|
import { serveStatic } from "@hono/node-server/serve-static";
|
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
|
@@ -5,11 +5,10 @@ import {
|
|
|
5
5
|
createWebSocket,
|
|
6
6
|
importBuild,
|
|
7
7
|
patchUpgradeListener
|
|
8
|
-
} from "../chunk-
|
|
8
|
+
} from "../chunk-J24YMSRS.js";
|
|
9
9
|
import {
|
|
10
10
|
cache
|
|
11
11
|
} from "../chunk-V3H4JZ4H.js";
|
|
12
|
-
import "../chunk-FTA5RKYX.js";
|
|
13
12
|
|
|
14
13
|
// src/adapters/bun.ts
|
|
15
14
|
import { Hono } from "hono";
|
|
@@ -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';
|
|
@@ -2,11 +2,10 @@ import {
|
|
|
2
2
|
bindIncomingRequestSocketInfo,
|
|
3
3
|
createGetLoadContext,
|
|
4
4
|
importBuild
|
|
5
|
-
} from "../chunk-
|
|
5
|
+
} from "../chunk-J24YMSRS.js";
|
|
6
6
|
import {
|
|
7
7
|
cache
|
|
8
8
|
} from "../chunk-V3H4JZ4H.js";
|
|
9
|
-
import "../chunk-FTA5RKYX.js";
|
|
10
9
|
|
|
11
10
|
// src/adapters/cloudflare.ts
|
|
12
11
|
import { Hono } from "hono";
|
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
|
@@ -5,11 +5,10 @@ import {
|
|
|
5
5
|
createWebSocket,
|
|
6
6
|
importBuild,
|
|
7
7
|
patchUpgradeListener
|
|
8
|
-
} from "../chunk-
|
|
8
|
+
} from "../chunk-J24YMSRS.js";
|
|
9
9
|
import {
|
|
10
10
|
cache
|
|
11
11
|
} from "../chunk-V3H4JZ4H.js";
|
|
12
|
-
import "../chunk-FTA5RKYX.js";
|
|
13
12
|
|
|
14
13
|
// src/adapters/node.ts
|
|
15
14
|
import { serve } from "@hono/node-server";
|
|
@@ -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");
|
|
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,7 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
getReactVersion
|
|
3
|
-
} from "./chunk-
|
|
4
|
-
import "./chunk-FTA5RKYX.js";
|
|
3
|
+
} from "./chunk-J24YMSRS.js";
|
|
5
4
|
|
|
6
5
|
// src/dev.ts
|
|
7
6
|
import fs from "node:fs";
|
|
@@ -107,6 +106,9 @@ Please add it to your plugins: import { cloudflareDevProxy } from "@react-router
|
|
|
107
106
|
const buildPath = path.join(pluginConfig.rootDirectory, pluginConfig.buildDirectory, "server", "index.js");
|
|
108
107
|
let content = await fs.promises.readFile(buildPath, "utf-8");
|
|
109
108
|
content = content.replace(reactRouterExport, "");
|
|
109
|
+
if (await getReactVersion() >= 19) {
|
|
110
|
+
content = content.replace(/react-dom\/server\.browser/g, "react-dom/server.edge");
|
|
111
|
+
}
|
|
110
112
|
await fs.promises.writeFile(buildPath, content);
|
|
111
113
|
console.log("\x1B[32mAll done!\x1B[0m");
|
|
112
114
|
},
|
package/dist/http.js
CHANGED
package/dist/middleware.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "react-router-hono-server",
|
|
3
|
-
"version": "2.8.
|
|
3
|
+
"version": "2.8.5",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "The Vite plugin you need to create a Hono server for your React Router app in less than 10 seconds.",
|
|
6
6
|
"exports": {
|
|
@@ -78,7 +78,6 @@
|
|
|
78
78
|
"react-router-hono-server": "dist/cli.js"
|
|
79
79
|
},
|
|
80
80
|
"files": ["dist"],
|
|
81
|
-
"workspaces": [".", "examples/**/*"],
|
|
82
81
|
"homepage": "https://github.com/rphlmr/react-router-hono-server#readme",
|
|
83
82
|
"dependencies": {
|
|
84
83
|
"@drizzle-team/brocli": "^0.11.0",
|
|
@@ -89,6 +88,7 @@
|
|
|
89
88
|
},
|
|
90
89
|
"devDependencies": {
|
|
91
90
|
"@biomejs/biome": "^1.9.4",
|
|
91
|
+
"@cloudflare/workers-types": "^4.20241112.0",
|
|
92
92
|
"@types/bun": "^1.1.14",
|
|
93
93
|
"@types/node": "^22.9.3",
|
|
94
94
|
"@vitest/coverage-v8": "^2.1.5",
|
|
@@ -99,12 +99,18 @@
|
|
|
99
99
|
"vitest": "^2.1.5"
|
|
100
100
|
},
|
|
101
101
|
"peerDependencies": {
|
|
102
|
+
"@cloudflare/workers-types": "^4.20241112.0",
|
|
103
|
+
"@types/react": "^18.3.10 || ^19.0.0",
|
|
104
|
+
"@react-router/dev": "^7.0.0",
|
|
102
105
|
"miniflare": "^3.20241205.0",
|
|
103
106
|
"react-router": "^7.1.0",
|
|
104
107
|
"vite": "^5.1.0 || ^6.0.0",
|
|
105
108
|
"wrangler": "^3.91.0"
|
|
106
109
|
},
|
|
107
110
|
"peerDependenciesMeta": {
|
|
111
|
+
"@cloudflare/workers-types": {
|
|
112
|
+
"optional": true
|
|
113
|
+
},
|
|
108
114
|
"miniflare": {
|
|
109
115
|
"optional": true
|
|
110
116
|
},
|
package/dist/chunk-FTA5RKYX.js
DELETED