react-router-hono-server 2.8.1 → 2.8.2

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.
@@ -2,8 +2,8 @@ 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 { W as WithoutWebsocket, H as HonoServerOptionsBase } from '../helpers-BboEKLhp.js';
6
- export { c as createGetLoadContext } from '../helpers-BboEKLhp.js';
5
+ import { W as WithoutWebsocket, H as HonoServerOptionsBase } from '../helpers-DZ1r-Y-D.js';
6
+ export { c as createGetLoadContext } from '../helpers-DZ1r-Y-D.js';
7
7
  import 'react-router';
8
8
  import 'hono/ws';
9
9
 
@@ -1,8 +1,8 @@
1
1
  import { Serve, ServeOptions } from 'bun';
2
2
  import { Env } from 'hono';
3
3
  import { BlankEnv } from 'hono/types';
4
- import { a as WithWebsocket, W as WithoutWebsocket, H as HonoServerOptionsBase } from '../helpers-BboEKLhp.js';
5
- export { c as createGetLoadContext } from '../helpers-BboEKLhp.js';
4
+ import { a as WithWebsocket, W as WithoutWebsocket, H as HonoServerOptionsBase } from '../helpers-DZ1r-Y-D.js';
5
+ export { c as createGetLoadContext } from '../helpers-DZ1r-Y-D.js';
6
6
  import 'react-router';
7
7
  import 'hono/ws';
8
8
 
@@ -1,8 +1,8 @@
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 { W as WithoutWebsocket, H as HonoServerOptionsBase } from '../helpers-BboEKLhp.js';
5
- export { c as createGetLoadContext } from '../helpers-BboEKLhp.js';
4
+ import { W as WithoutWebsocket, H as HonoServerOptionsBase } from '../helpers-DZ1r-Y-D.js';
5
+ export { c as createGetLoadContext } from '../helpers-DZ1r-Y-D.js';
6
6
  import 'react-router';
7
7
  import 'hono/ws';
8
8
 
@@ -2,8 +2,8 @@ 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 { a as WithWebsocket, W as WithoutWebsocket, H as HonoServerOptionsBase } from '../helpers-BboEKLhp.js';
6
- export { c as createGetLoadContext } from '../helpers-BboEKLhp.js';
5
+ import { a as WithWebsocket, W as WithoutWebsocket, H as HonoServerOptionsBase } from '../helpers-DZ1r-Y-D.js';
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';
9
9
  import { ServerOptions as ServerOptions$1, createServer as createServer$1 } from 'node:https';
@@ -41,7 +41,7 @@ interface HonoServerOptionsBase<E extends Env> {
41
41
  * ```
42
42
  */
43
43
  getLoadContext?: (
44
- c: Context,
44
+ c: Context<E>,
45
45
  options: {
46
46
  build: ServerBuild;
47
47
  mode: string;
@@ -92,7 +92,7 @@ interface WithoutWebsocket<E extends Env> {
92
92
  /**
93
93
  * Helper to create a getLoadContext function fully typed
94
94
  */
95
- declare function createGetLoadContext(getLoadContext: HonoServerOptionsBase<Env>["getLoadContext"]): ((c: hono.Context, options: {
95
+ declare function createGetLoadContext(getLoadContext: HonoServerOptionsBase<Env>["getLoadContext"]): ((c: hono.Context<Env, any, {}>, options: {
96
96
  build: ServerBuild;
97
97
  mode: string;
98
98
  }) => Promise<react_router.AppLoadContext> | react_router.AppLoadContext) | undefined;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "react-router-hono-server",
3
- "version": "2.8.1",
3
+ "version": "2.8.2",
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": {