hono 4.6.3 → 4.6.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/adapter/service-worker/handler.js +1 -1
- package/dist/cjs/adapter/service-worker/handler.js +1 -1
- package/dist/types/adapter/aws-lambda/handler.d.ts +1 -1
- package/dist/types/adapter/cloudflare-pages/handler.d.ts +1 -1
- package/dist/types/adapter/lambda-edge/handler.d.ts +2 -2
- package/dist/types/adapter/netlify/handler.d.ts +1 -1
- package/dist/types/client/utils.d.ts +1 -1
- package/dist/types/compose.d.ts +1 -1
- package/dist/types/context.d.ts +1 -1
- package/dist/types/helper/adapter/index.d.ts +1 -1
- package/dist/types/helper/dev/index.d.ts +3 -3
- package/dist/types/helper/factory/index.d.ts +6 -3
- package/dist/types/helper/ssg/utils.d.ts +1 -1
- package/dist/types/helper/streaming/sse.d.ts +1 -1
- package/dist/types/helper/streaming/stream.d.ts +1 -1
- package/dist/types/helper/streaming/text.d.ts +1 -1
- package/dist/types/helper/testing/index.d.ts +1 -1
- package/dist/types/hono-base.d.ts +1 -1
- package/dist/types/jsx/base.d.ts +4 -1
- package/dist/types/jsx/dom/index.d.ts +28 -28
- package/dist/types/jsx/dom/intrinsic-element/components.d.ts +1 -1
- package/dist/types/jsx/dom/server.d.ts +32 -32
- package/dist/types/jsx/hooks/index.d.ts +6 -6
- package/dist/types/jsx/index.d.ts +29 -29
- package/dist/types/middleware/cache/index.d.ts +4 -4
- package/dist/types/middleware/context-storage/index.d.ts +1 -1
- package/dist/types/middleware/ip-restriction/index.d.ts +2 -2
- package/dist/types/middleware/jwt/jwt.d.ts +2 -2
- package/dist/types/middleware/serve-static/index.d.ts +3 -3
- package/dist/types/utils/concurrent.d.ts +2 -2
- package/dist/types/utils/cookie.d.ts +1 -1
- package/dist/types/utils/filepath.d.ts +1 -1
- package/dist/types/utils/jwt/index.d.ts +2 -2
- package/dist/types/validator/validator.d.ts +3 -3
- package/package.json +3 -5
|
@@ -22,7 +22,7 @@ __export(handler_exports, {
|
|
|
22
22
|
});
|
|
23
23
|
module.exports = __toCommonJS(handler_exports);
|
|
24
24
|
const handle = (app, opts = {
|
|
25
|
-
fetch: globalThis.
|
|
25
|
+
fetch: globalThis.fetch.bind(globalThis)
|
|
26
26
|
}) => {
|
|
27
27
|
return (evt) => {
|
|
28
28
|
evt.respondWith(
|
|
@@ -70,7 +70,7 @@ export declare const streamHandle: <E extends Env = Env, S extends Schema = {},
|
|
|
70
70
|
/**
|
|
71
71
|
* Accepts events from API Gateway/ELB(`APIGatewayProxyEvent`) and directly through Function Url(`APIGatewayProxyEventV2`)
|
|
72
72
|
*/
|
|
73
|
-
export declare const handle: <E extends Env = Env, S extends Schema = {}, BasePath extends string = "/">(app: Hono<E, S, BasePath>) => (event: LambdaEvent, lambdaContext?: LambdaContext) => Promise<APIGatewayProxyResult
|
|
73
|
+
export declare const handle: <E extends Env = Env, S extends Schema = {}, BasePath extends string = "/">(app: Hono<E, S, BasePath>) => ((event: LambdaEvent, lambdaContext?: LambdaContext) => Promise<APIGatewayProxyResult>);
|
|
74
74
|
declare abstract class EventProcessor<E extends LambdaEvent> {
|
|
75
75
|
protected abstract getPath(event: E): string;
|
|
76
76
|
protected abstract getMethod(event: E): string;
|
|
@@ -16,7 +16,7 @@ export type EventContext<Env = {}, P extends string = any, Data = Record<string,
|
|
|
16
16
|
data: Data;
|
|
17
17
|
};
|
|
18
18
|
declare type PagesFunction<Env = unknown, Params extends string = any, Data extends Record<string, unknown> = Record<string, unknown>> = (context: EventContext<Env, Params, Data>) => Response | Promise<Response>;
|
|
19
|
-
export declare const handle: <E extends Env = Env, S extends Schema = BlankSchema, BasePath extends string = "/">(app: Hono<E, S, BasePath>) => PagesFunction<E["Bindings"]
|
|
19
|
+
export declare const handle: <E extends Env = Env, S extends Schema = BlankSchema, BasePath extends string = "/">(app: Hono<E, S, BasePath>) => PagesFunction<E["Bindings"]>;
|
|
20
20
|
export declare function handleMiddleware<E extends Env = {}, P extends string = any, I extends Input = {}>(middleware: MiddlewareHandler<E & {
|
|
21
21
|
Bindings: {
|
|
22
22
|
eventContext: EventContext;
|
|
@@ -81,7 +81,7 @@ interface CloudFrontResult {
|
|
|
81
81
|
body?: string;
|
|
82
82
|
bodyEncoding?: 'text' | 'base64';
|
|
83
83
|
}
|
|
84
|
-
export declare const handle: (app: Hono<any>) => (event: CloudFrontEdgeEvent, context?: CloudFrontContext, callback?: Callback) => Promise<CloudFrontResult
|
|
85
|
-
export declare const createBody: (method: string, requestBody: CloudFrontRequest[
|
|
84
|
+
export declare const handle: (app: Hono<any>) => ((event: CloudFrontEdgeEvent, context?: CloudFrontContext, callback?: Callback) => Promise<CloudFrontResult>);
|
|
85
|
+
export declare const createBody: (method: string, requestBody: CloudFrontRequest["body"]) => string | Uint8Array | undefined;
|
|
86
86
|
export declare const isContentTypeBinary: (contentType: string) => boolean;
|
|
87
87
|
export {};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import type { Hono } from '../../hono';
|
|
2
|
-
export declare const handle: (app: Hono<any, any>) => (req: Request, context: any) => Response | Promise<Response
|
|
2
|
+
export declare const handle: (app: Hono<any, any>) => ((req: Request, context: any) => Response | Promise<Response>);
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export declare const mergePath: (base: string, path: string) => string;
|
|
2
2
|
export declare const replaceUrlParam: (urlString: string, params: Record<string, string | undefined>) => string;
|
|
3
|
-
export declare const replaceUrlProtocol: (urlString: string, protocol:
|
|
3
|
+
export declare const replaceUrlProtocol: (urlString: string, protocol: "ws" | "http") => string;
|
|
4
4
|
export declare const removeIndexString: (urlSting: string) => string;
|
|
5
5
|
export declare function deepMerge<T>(target: T, source: Record<string, unknown>): T;
|
package/dist/types/compose.d.ts
CHANGED
|
@@ -26,5 +26,5 @@ interface ComposeContext {
|
|
|
26
26
|
*
|
|
27
27
|
* @returns {(context: C, next?: Function) => Promise<C>} - A composed middleware function.
|
|
28
28
|
*/
|
|
29
|
-
export declare const compose: <C extends ComposeContext, E extends Env = Env>(middleware: [[Function, unknown], ParamIndexMap | Params][], onError?: ErrorHandler<E
|
|
29
|
+
export declare const compose: <C extends ComposeContext, E extends Env = Env>(middleware: [[Function, unknown], ParamIndexMap | Params][], onError?: ErrorHandler<E>, onNotFound?: NotFoundHandler<E>) => ((context: C, next?: Function) => Promise<C>);
|
|
30
30
|
export {};
|
package/dist/types/context.d.ts
CHANGED
|
@@ -424,7 +424,7 @@ export declare class Context<E extends Env = any, P extends string = any, I exte
|
|
|
424
424
|
* })
|
|
425
425
|
* ```
|
|
426
426
|
*/
|
|
427
|
-
redirect: <T extends RedirectStatusCode = 302>(location: string, status?: T
|
|
427
|
+
redirect: <T extends RedirectStatusCode = 302>(location: string, status?: T) => Response & TypedResponse<undefined, T, "redirect">;
|
|
428
428
|
/**
|
|
429
429
|
* `.notFound()` can return the Not Found Response.
|
|
430
430
|
*
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
*/
|
|
5
5
|
import type { Context } from '../../context';
|
|
6
6
|
export type Runtime = 'node' | 'deno' | 'bun' | 'workerd' | 'fastly' | 'edge-light' | 'other';
|
|
7
|
-
export declare const env: <T extends Record<string, unknown>, C extends Context
|
|
7
|
+
export declare const env: <T extends Record<string, unknown>, C extends Context = Context<{}, any, {}>>(c: C, runtime?: Runtime) => T & C["env"];
|
|
8
8
|
export declare const knownUserAgents: Partial<Record<Runtime, string>>;
|
|
9
9
|
export declare const getRuntimeKey: () => Runtime;
|
|
10
10
|
export declare const checkUserAgentEquals: (platform: string) => boolean;
|
|
@@ -14,7 +14,7 @@ interface RouteData {
|
|
|
14
14
|
name: string;
|
|
15
15
|
isMiddleware: boolean;
|
|
16
16
|
}
|
|
17
|
-
export declare const inspectRoutes: <E extends Env>(hono: Hono<E
|
|
18
|
-
export declare const showRoutes: <E extends Env>(hono: Hono<E
|
|
19
|
-
export declare const getRouterName: <E extends Env>(app: Hono<E
|
|
17
|
+
export declare const inspectRoutes: <E extends Env>(hono: Hono<E>) => RouteData[];
|
|
18
|
+
export declare const showRoutes: <E extends Env>(hono: Hono<E>, opts?: ShowRoutesOptions) => void;
|
|
19
|
+
export declare const getRouterName: <E extends Env>(app: Hono<E>) => string;
|
|
20
20
|
export {};
|
|
@@ -67,7 +67,10 @@ export declare class Factory<E extends Env = any, P extends string = any> {
|
|
|
67
67
|
createHandlers: CreateHandlersInterface<E, P>;
|
|
68
68
|
}
|
|
69
69
|
export declare const createFactory: <E extends Env = any, P extends string = any>(init?: {
|
|
70
|
-
initApp?: InitApp<E
|
|
71
|
-
}
|
|
72
|
-
export declare const createMiddleware: <E extends Env = any, P extends string = string, I extends Input = {}
|
|
70
|
+
initApp?: InitApp<E>;
|
|
71
|
+
}) => Factory<E, P>;
|
|
72
|
+
export declare const createMiddleware: <E extends Env = any, P extends string = string, I extends Input = {}, E2 extends Env = {
|
|
73
|
+
Bindings: undefined extends E["Bindings"] ? any : E["Bindings"];
|
|
74
|
+
Variables: undefined extends E["Variables"] ? any : E["Variables"];
|
|
75
|
+
}>(middleware: MiddlewareHandler<E2, P, I>) => MiddlewareHandler<E2, P, I>;
|
|
73
76
|
export {};
|
|
@@ -10,5 +10,5 @@ export declare const joinPaths: (...paths: string[]) => string;
|
|
|
10
10
|
interface FilterStaticGenerateRouteData {
|
|
11
11
|
path: string;
|
|
12
12
|
}
|
|
13
|
-
export declare const filterStaticGenerateRoutes: <E extends Env>(hono: Hono<E
|
|
13
|
+
export declare const filterStaticGenerateRoutes: <E extends Env>(hono: Hono<E>) => FilterStaticGenerateRouteData[];
|
|
14
14
|
export {};
|
|
@@ -10,4 +10,4 @@ export declare class SSEStreamingApi extends StreamingApi {
|
|
|
10
10
|
constructor(writable: WritableStream, readable: ReadableStream);
|
|
11
11
|
writeSSE(message: SSEMessage): Promise<void>;
|
|
12
12
|
}
|
|
13
|
-
export declare const streamSSE: (c: Context, cb: (stream: SSEStreamingApi) => Promise<void>, onError?: (
|
|
13
|
+
export declare const streamSSE: (c: Context, cb: (stream: SSEStreamingApi) => Promise<void>, onError?: (e: Error, stream: SSEStreamingApi) => Promise<void>) => Response;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import type { Context } from '../../context';
|
|
2
2
|
import { StreamingApi } from '../../utils/stream';
|
|
3
|
-
export declare const stream: (c: Context, cb: (stream: StreamingApi) => Promise<void>, onError?: (
|
|
3
|
+
export declare const stream: (c: Context, cb: (stream: StreamingApi) => Promise<void>, onError?: (e: Error, stream: StreamingApi) => Promise<void>) => Response;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import type { Context } from '../../context';
|
|
2
2
|
import type { StreamingApi } from '../../utils/stream';
|
|
3
|
-
export declare const streamText: (c: Context, cb: (stream: StreamingApi) => Promise<void>, onError?: (
|
|
3
|
+
export declare const streamText: (c: Context, cb: (stream: StreamingApi) => Promise<void>, onError?: (e: Error, stream: StreamingApi) => Promise<void>) => Response;
|
|
@@ -8,5 +8,5 @@ import type { Hono } from '../../hono';
|
|
|
8
8
|
import type { Schema } from '../../types';
|
|
9
9
|
import type { UnionToIntersection } from '../../utils/types';
|
|
10
10
|
type ExtractEnv<T> = T extends Hono<infer E, Schema, string> ? E : never;
|
|
11
|
-
export declare const testClient: <T extends Hono<any, Schema, string>>(app: T, Env?:
|
|
11
|
+
export declare const testClient: <T extends Hono<any, Schema, string>>(app: T, Env?: ExtractEnv<T>["Bindings"] | {}, executionCtx?: ExecutionContext) => UnionToIntersection<Client<T>>;
|
|
12
12
|
export {};
|
|
@@ -207,7 +207,7 @@ declare class Hono<E extends Env = Env, S extends Schema = {}, BasePath extends
|
|
|
207
207
|
* ```
|
|
208
208
|
* @see https://hono.dev/docs/api/hono#request
|
|
209
209
|
*/
|
|
210
|
-
request: (input: RequestInfo | URL, requestInit?: RequestInit, Env?: E[
|
|
210
|
+
request: (input: RequestInfo | URL, requestInit?: RequestInit, Env?: E["Bindings"] | {}, executionCtx?: ExecutionContext) => Response | Promise<Response>;
|
|
211
211
|
/**
|
|
212
212
|
* `.fire()` automatically adds a global fetch event listener.
|
|
213
213
|
* This can be useful for environments that adhere to the Service Worker API, such as non-ES module Cloudflare Workers.
|
package/dist/types/jsx/base.d.ts
CHANGED
|
@@ -16,6 +16,9 @@ export declare namespace JSX {
|
|
|
16
16
|
interface IntrinsicElements extends IntrinsicElementsDefined {
|
|
17
17
|
[tagName: string]: Props;
|
|
18
18
|
}
|
|
19
|
+
interface IntrinsicAttributes {
|
|
20
|
+
key?: string | number | bigint | null | undefined;
|
|
21
|
+
}
|
|
19
22
|
}
|
|
20
23
|
export declare const getNameSpaceContext: () => Context<string> | undefined;
|
|
21
24
|
export declare const booleanAttributes: string[];
|
|
@@ -41,7 +44,7 @@ export declare const jsx: (tag: string | Function, props: Props | null, ...child
|
|
|
41
44
|
export declare const jsxFn: (tag: string | Function, props: Props, children: (string | number | HtmlEscapedString)[]) => JSXNode;
|
|
42
45
|
export declare const memo: <T>(component: FC<T>, propsAreEqual?: (prevProps: Readonly<T>, nextProps: Readonly<T>) => boolean) => FC<T>;
|
|
43
46
|
export declare const Fragment: ({ children, }: {
|
|
44
|
-
key?: string
|
|
47
|
+
key?: string;
|
|
45
48
|
children?: Child | HtmlEscapedString;
|
|
46
49
|
}) => HtmlEscapedString;
|
|
47
50
|
export declare const isValidElement: (element: unknown) => element is JSXNode;
|
|
@@ -20,29 +20,29 @@ declare const _default: {
|
|
|
20
20
|
version: string;
|
|
21
21
|
useState: {
|
|
22
22
|
<T>(initialState: T | (() => T)): [T, (newState: T | ((currentState: T) => T)) => void];
|
|
23
|
-
<
|
|
23
|
+
<T = undefined>(): [T | undefined, (newState: T | ((currentState: T | undefined) => T | undefined) | undefined) => void];
|
|
24
24
|
};
|
|
25
|
-
useEffect: (effect: () => void | (() => void), deps?: readonly unknown[]
|
|
26
|
-
useRef: <
|
|
27
|
-
useCallback: <
|
|
28
|
-
use: <
|
|
25
|
+
useEffect: (effect: () => void | (() => void), deps?: readonly unknown[]) => void;
|
|
26
|
+
useRef: <T>(initialValue: T | null) => import("..").RefObject<T>;
|
|
27
|
+
useCallback: <T extends Function>(callback: T, deps: readonly unknown[]) => T;
|
|
28
|
+
use: <T>(promise: Promise<T>) => T;
|
|
29
29
|
startTransition: (callback: () => void) => void;
|
|
30
30
|
useTransition: () => [boolean, (callback: () => void | Promise<void>) => void];
|
|
31
|
-
useDeferredValue: <
|
|
31
|
+
useDeferredValue: <T>(value: T, initialValue?: T) => T;
|
|
32
32
|
startViewTransition: (callback: () => void) => void;
|
|
33
33
|
useViewTransition: () => [boolean, (callback: () => void) => void];
|
|
34
|
-
useMemo: <
|
|
35
|
-
useLayoutEffect: (effect: () => void | (() => void), deps?: readonly unknown[]
|
|
36
|
-
useInsertionEffect: (effect: () => void | (() => void), deps?: readonly unknown[]
|
|
37
|
-
useReducer: <
|
|
34
|
+
useMemo: <T>(factory: () => T, deps: readonly unknown[]) => T;
|
|
35
|
+
useLayoutEffect: (effect: () => void | (() => void), deps?: readonly unknown[]) => void;
|
|
36
|
+
useInsertionEffect: (effect: () => void | (() => void), deps?: readonly unknown[]) => void;
|
|
37
|
+
useReducer: <T, A>(reducer: (state: T, action: A) => T, initialArg: T, init?: (initialState: T) => T) => [T, (action: A) => void];
|
|
38
38
|
useId: () => string;
|
|
39
|
-
useDebugValue: (_value: unknown, _formatter?: (
|
|
40
|
-
createRef: <
|
|
41
|
-
forwardRef: <
|
|
42
|
-
ref?: import("
|
|
43
|
-
}) => JSX.Element;
|
|
44
|
-
useImperativeHandle: <
|
|
45
|
-
useSyncExternalStore: <
|
|
39
|
+
useDebugValue: (_value: unknown, _formatter?: (value: unknown) => string) => void;
|
|
40
|
+
createRef: <T>() => import("..").RefObject<T>;
|
|
41
|
+
forwardRef: <T, P = {}>(Component: (props: P, ref?: import("..").RefObject<T>) => JSX.Element) => ((props: P & {
|
|
42
|
+
ref?: import("..").RefObject<T>;
|
|
43
|
+
}) => JSX.Element);
|
|
44
|
+
useImperativeHandle: <T>(ref: import("..").RefObject<T>, createHandle: () => T, deps: readonly unknown[]) => void;
|
|
45
|
+
useSyncExternalStore: <T>(subscribe: (callback: () => void) => () => void, getSnapshot: () => T, getServerSnapshot?: () => T) => T;
|
|
46
46
|
useFormStatus: () => {
|
|
47
47
|
pending: false;
|
|
48
48
|
data: null;
|
|
@@ -54,22 +54,22 @@ declare const _default: {
|
|
|
54
54
|
method: "get" | "post";
|
|
55
55
|
action: string | ((formData: FormData) => void | Promise<void>);
|
|
56
56
|
};
|
|
57
|
-
useActionState: <
|
|
58
|
-
useOptimistic: <
|
|
59
|
-
Suspense: import("
|
|
57
|
+
useActionState: <T>(fn: Function, initialState: T, permalink?: string) => [T, Function];
|
|
58
|
+
useOptimistic: <T, N>(state: T, updateState: (currentState: T, action: N) => T) => [T, (action: N) => void];
|
|
59
|
+
Suspense: import("..").FC<import("..").PropsWithChildren<{
|
|
60
60
|
fallback: any;
|
|
61
61
|
}>>;
|
|
62
|
-
ErrorBoundary: import("
|
|
62
|
+
ErrorBoundary: import("..").FC<import("..").PropsWithChildren<{
|
|
63
63
|
fallback?: Child;
|
|
64
|
-
fallbackRender?: import("../components").FallbackRender
|
|
65
|
-
onError?: import("../components").ErrorHandler
|
|
64
|
+
fallbackRender?: import("../components").FallbackRender;
|
|
65
|
+
onError?: import("../components").ErrorHandler;
|
|
66
66
|
}>>;
|
|
67
|
-
createContext: <
|
|
68
|
-
useContext: <
|
|
69
|
-
memo: <
|
|
67
|
+
createContext: <T>(defaultValue: T) => import("..").Context<T>;
|
|
68
|
+
useContext: <T>(context: import("..").Context<T>) => T;
|
|
69
|
+
memo: <T>(component: import("..").FC<T>, propsAreEqual?: (prevProps: Readonly<T>, nextProps: Readonly<T>) => boolean) => import("..").FC<T>;
|
|
70
70
|
isValidElement: (element: unknown) => element is JSXNode;
|
|
71
71
|
createElement: (tag: string | ((props: Props) => JSXNode), props: Props | null, ...children: Child[]) => JSXNode;
|
|
72
|
-
cloneElement: <
|
|
72
|
+
cloneElement: <T extends JSXNode | JSX.Element>(element: T, props: Props, ...children: Child[]) => T;
|
|
73
73
|
Children: {
|
|
74
74
|
map: (children: Child[], fn: (child: Child, index: number) => Child) => Child[];
|
|
75
75
|
forEach: (children: Child[], fn: (child: Child, index: number) => void) => void;
|
|
@@ -80,7 +80,7 @@ declare const _default: {
|
|
|
80
80
|
Fragment: (props: Record<string, unknown>) => JSXNode;
|
|
81
81
|
StrictMode: (props: Record<string, unknown>) => JSXNode;
|
|
82
82
|
flushSync: (callback: () => void) => void;
|
|
83
|
-
createPortal: (children: Child, container: HTMLElement, key?: string
|
|
83
|
+
createPortal: (children: Child, container: HTMLElement, key?: string) => Child;
|
|
84
84
|
};
|
|
85
85
|
export default _default;
|
|
86
86
|
export type { Context } from '../context';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { IntrinsicElements } from '../../intrinsic-elements';
|
|
2
2
|
import type { FC, PropsWithChildren, RefObject } from '../../types';
|
|
3
3
|
export declare const clearCache: () => void;
|
|
4
|
-
export declare const composeRef: <T>(ref:
|
|
4
|
+
export declare const composeRef: <T>(ref: RefObject<T> | Function | undefined, cb: (e: T) => void | (() => void)) => ((e: T) => () => void);
|
|
5
5
|
export declare const title: FC<PropsWithChildren>;
|
|
6
6
|
export declare const script: FC<PropsWithChildren<IntrinsicElements['script']>>;
|
|
7
7
|
export declare const style: FC<PropsWithChildren<IntrinsicElements['style']>>;
|
|
@@ -40,29 +40,29 @@ declare const _default: {
|
|
|
40
40
|
version: string;
|
|
41
41
|
useState: {
|
|
42
42
|
<T>(initialState: T | (() => T)): [T, (newState: T | ((currentState: T) => T)) => void];
|
|
43
|
-
<
|
|
43
|
+
<T = undefined>(): [T | undefined, (newState: T | ((currentState: T | undefined) => T | undefined) | undefined) => void];
|
|
44
44
|
};
|
|
45
|
-
useEffect: (effect: () => void | (() => void), deps?: readonly unknown[]
|
|
46
|
-
useRef: <
|
|
47
|
-
useCallback: <
|
|
48
|
-
use: <
|
|
45
|
+
useEffect: (effect: () => void | (() => void), deps?: readonly unknown[]) => void;
|
|
46
|
+
useRef: <T>(initialValue: T | null) => import("..").RefObject<T>;
|
|
47
|
+
useCallback: <T extends Function>(callback: T, deps: readonly unknown[]) => T;
|
|
48
|
+
use: <T>(promise: Promise<T>) => T;
|
|
49
49
|
startTransition: (callback: () => void) => void;
|
|
50
50
|
useTransition: () => [boolean, (callback: () => void | Promise<void>) => void];
|
|
51
|
-
useDeferredValue: <
|
|
51
|
+
useDeferredValue: <T>(value: T, initialValue?: T) => T;
|
|
52
52
|
startViewTransition: (callback: () => void) => void;
|
|
53
53
|
useViewTransition: () => [boolean, (callback: () => void) => void];
|
|
54
|
-
useMemo: <
|
|
55
|
-
useLayoutEffect: (effect: () => void | (() => void), deps?: readonly unknown[]
|
|
56
|
-
useInsertionEffect: (effect: () => void | (() => void), deps?: readonly unknown[]
|
|
57
|
-
useReducer: <
|
|
54
|
+
useMemo: <T>(factory: () => T, deps: readonly unknown[]) => T;
|
|
55
|
+
useLayoutEffect: (effect: () => void | (() => void), deps?: readonly unknown[]) => void;
|
|
56
|
+
useInsertionEffect: (effect: () => void | (() => void), deps?: readonly unknown[]) => void;
|
|
57
|
+
useReducer: <T, A>(reducer: (state: T, action: A) => T, initialArg: T, init?: (initialState: T) => T) => [T, (action: A) => void];
|
|
58
58
|
useId: () => string;
|
|
59
|
-
useDebugValue: (_value: unknown, _formatter?: (
|
|
60
|
-
createRef: <
|
|
61
|
-
forwardRef: <
|
|
62
|
-
ref?: import("
|
|
63
|
-
}) => import("../base").JSX.Element;
|
|
64
|
-
useImperativeHandle: <
|
|
65
|
-
useSyncExternalStore: <
|
|
59
|
+
useDebugValue: (_value: unknown, _formatter?: (value: unknown) => string) => void;
|
|
60
|
+
createRef: <T>() => import("..").RefObject<T>;
|
|
61
|
+
forwardRef: <T, P = {}>(Component: (props: P, ref?: import("..").RefObject<T>) => import("../base").JSX.Element) => ((props: P & {
|
|
62
|
+
ref?: import("..").RefObject<T>;
|
|
63
|
+
}) => import("../base").JSX.Element);
|
|
64
|
+
useImperativeHandle: <T>(ref: import("..").RefObject<T>, createHandle: () => T, deps: readonly unknown[]) => void;
|
|
65
|
+
useSyncExternalStore: <T>(subscribe: (callback: () => void) => () => void, getSnapshot: () => T, getServerSnapshot?: () => T) => T;
|
|
66
66
|
useFormStatus: () => {
|
|
67
67
|
pending: false;
|
|
68
68
|
data: null;
|
|
@@ -74,22 +74,22 @@ declare const _default: {
|
|
|
74
74
|
method: "get" | "post";
|
|
75
75
|
action: string | ((formData: FormData) => void | Promise<void>);
|
|
76
76
|
};
|
|
77
|
-
useActionState: <
|
|
78
|
-
useOptimistic: <
|
|
79
|
-
Suspense: import("
|
|
77
|
+
useActionState: <T>(fn: Function, initialState: T, permalink?: string) => [T, Function];
|
|
78
|
+
useOptimistic: <T, N>(state: T, updateState: (currentState: T, action: N) => T) => [T, (action: N) => void];
|
|
79
|
+
Suspense: import("..").FC<import("..").PropsWithChildren<{
|
|
80
80
|
fallback: any;
|
|
81
81
|
}>>;
|
|
82
|
-
ErrorBoundary: import("
|
|
82
|
+
ErrorBoundary: import("..").FC<import("..").PropsWithChildren<{
|
|
83
83
|
fallback?: Child;
|
|
84
|
-
fallbackRender?: import("../components").FallbackRender
|
|
85
|
-
onError?: import("../components").ErrorHandler
|
|
84
|
+
fallbackRender?: import("../components").FallbackRender;
|
|
85
|
+
onError?: import("../components").ErrorHandler;
|
|
86
86
|
}>>;
|
|
87
|
-
createContext: <
|
|
88
|
-
useContext: <
|
|
89
|
-
memo: <
|
|
90
|
-
isValidElement: (element: unknown) => element is import("
|
|
91
|
-
createElement: (tag: string | ((props: import("../base").Props) => import("
|
|
92
|
-
cloneElement: <
|
|
87
|
+
createContext: <T>(defaultValue: T) => import("..").Context<T>;
|
|
88
|
+
useContext: <T>(context: import("..").Context<T>) => T;
|
|
89
|
+
memo: <T>(component: import("..").FC<T>, propsAreEqual?: (prevProps: Readonly<T>, nextProps: Readonly<T>) => boolean) => import("..").FC<T>;
|
|
90
|
+
isValidElement: (element: unknown) => element is import("..").JSXNode;
|
|
91
|
+
createElement: (tag: string | ((props: import("../base").Props) => import("..").JSXNode), props: import("../base").Props | null, ...children: Child[]) => import("..").JSXNode;
|
|
92
|
+
cloneElement: <T extends import("..").JSXNode | import("../base").JSX.Element>(element: T, props: import("../base").Props, ...children: Child[]) => T;
|
|
93
93
|
Children: {
|
|
94
94
|
map: (children: Child[], fn: (child: Child, index: number) => Child) => Child[];
|
|
95
95
|
forEach: (children: Child[], fn: (child: Child, index: number) => void) => void;
|
|
@@ -97,10 +97,10 @@ declare const _default: {
|
|
|
97
97
|
only: (_children: Child[]) => Child;
|
|
98
98
|
toArray: (children: Child) => Child[];
|
|
99
99
|
};
|
|
100
|
-
Fragment: (props: Record<string, unknown>) => import("
|
|
101
|
-
StrictMode: (props: Record<string, unknown>) => import("
|
|
100
|
+
Fragment: (props: Record<string, unknown>) => import("..").JSXNode;
|
|
101
|
+
StrictMode: (props: Record<string, unknown>) => import("..").JSXNode;
|
|
102
102
|
flushSync: (callback: () => void) => void;
|
|
103
|
-
createPortal: (children: Child, container: HTMLElement, key?: string
|
|
103
|
+
createPortal: (children: Child, container: HTMLElement, key?: string) => Child;
|
|
104
104
|
};
|
|
105
105
|
};
|
|
106
106
|
export default _default;
|
|
@@ -23,7 +23,7 @@ type UseStateType = {
|
|
|
23
23
|
<T = undefined>(): [T | undefined, UpdateStateFunction<T | undefined>];
|
|
24
24
|
};
|
|
25
25
|
export declare const useState: UseStateType;
|
|
26
|
-
export declare const useReducer: <T, A>(reducer: (state: T, action: A) => T, initialArg: T, init?: (
|
|
26
|
+
export declare const useReducer: <T, A>(reducer: (state: T, action: A) => T, initialArg: T, init?: (initialState: T) => T) => [T, (action: A) => void];
|
|
27
27
|
export declare const useEffect: (effect: () => void | (() => void), deps?: readonly unknown[]) => void;
|
|
28
28
|
export declare const useLayoutEffect: (effect: () => void | (() => void), deps?: readonly unknown[]) => void;
|
|
29
29
|
export declare const useInsertionEffect: (effect: () => void | (() => void), deps?: readonly unknown[]) => void;
|
|
@@ -35,11 +35,11 @@ export declare const useRef: <T>(initialValue: T | null) => RefObject<T>;
|
|
|
35
35
|
export declare const use: <T>(promise: Promise<T>) => T;
|
|
36
36
|
export declare const useMemo: <T>(factory: () => T, deps: readonly unknown[]) => T;
|
|
37
37
|
export declare const useId: () => string;
|
|
38
|
-
export declare const useDebugValue: (_value: unknown, _formatter?: (
|
|
38
|
+
export declare const useDebugValue: (_value: unknown, _formatter?: (value: unknown) => string) => void;
|
|
39
39
|
export declare const createRef: <T>() => RefObject<T>;
|
|
40
|
-
export declare const forwardRef: <T, P = {}>(Component: (props: P, ref?: RefObject<T>
|
|
41
|
-
ref?: RefObject<T
|
|
42
|
-
}) => JSX.Element;
|
|
40
|
+
export declare const forwardRef: <T, P = {}>(Component: (props: P, ref?: RefObject<T>) => JSX.Element) => ((props: P & {
|
|
41
|
+
ref?: RefObject<T>;
|
|
42
|
+
}) => JSX.Element);
|
|
43
43
|
export declare const useImperativeHandle: <T>(ref: RefObject<T>, createHandle: () => T, deps: readonly unknown[]) => void;
|
|
44
|
-
export declare const useSyncExternalStore: <T>(subscribe: (callback: () => void) => () => void, getSnapshot: () => T, getServerSnapshot?: (
|
|
44
|
+
export declare const useSyncExternalStore: <T>(subscribe: (callback: () => void) => () => void, getSnapshot: () => T, getServerSnapshot?: () => T) => T;
|
|
45
45
|
export {};
|
|
@@ -15,50 +15,50 @@ declare const _default: {
|
|
|
15
15
|
version: string;
|
|
16
16
|
memo: <T>(component: import("./base").FC<T>, propsAreEqual?: (prevProps: Readonly<T>, nextProps: Readonly<T>) => boolean) => import("./base").FC<T>;
|
|
17
17
|
Fragment: ({ children, }: {
|
|
18
|
-
key?: string
|
|
19
|
-
children?: import("
|
|
18
|
+
key?: string;
|
|
19
|
+
children?: import("./base").Child | import("../utils/html").HtmlEscapedString;
|
|
20
20
|
}) => import("../utils/html").HtmlEscapedString;
|
|
21
21
|
StrictMode: ({ children, }: {
|
|
22
|
-
key?: string
|
|
23
|
-
children?: import("
|
|
22
|
+
key?: string;
|
|
23
|
+
children?: import("./base").Child | import("../utils/html").HtmlEscapedString;
|
|
24
24
|
}) => import("../utils/html").HtmlEscapedString;
|
|
25
25
|
isValidElement: (element: unknown) => element is import("./base").JSXNode;
|
|
26
26
|
createElement: (tag: string | Function, props: import("./base").Props | null, ...children: (string | number | import("../utils/html").HtmlEscapedString)[]) => import("./base").JSXNode;
|
|
27
|
-
cloneElement: <
|
|
27
|
+
cloneElement: <T extends import("./base").JSXNode | import("./base").JSX.Element>(element: T, props: Partial<import("./base").Props>, ...children: import("./base").Child[]) => T;
|
|
28
28
|
ErrorBoundary: import("./base").FC<import("./types").PropsWithChildren<{
|
|
29
29
|
fallback?: import("./base").Child;
|
|
30
|
-
fallbackRender?: import("./components").FallbackRender
|
|
31
|
-
onError?: import("./components").ErrorHandler
|
|
30
|
+
fallbackRender?: import("./components").FallbackRender;
|
|
31
|
+
onError?: import("./components").ErrorHandler;
|
|
32
32
|
}>>;
|
|
33
|
-
createContext: <
|
|
34
|
-
useContext: <
|
|
33
|
+
createContext: <T>(defaultValue: T) => import("./context").Context<T>;
|
|
34
|
+
useContext: <T>(context: import("./context").Context<T>) => T;
|
|
35
35
|
useState: {
|
|
36
|
-
<
|
|
37
|
-
<
|
|
36
|
+
<T>(initialState: T | (() => T)): [T, (newState: T | ((currentState: T) => T)) => void];
|
|
37
|
+
<T = undefined>(): [T | undefined, (newState: T | ((currentState: T | undefined) => T | undefined) | undefined) => void];
|
|
38
38
|
};
|
|
39
|
-
useEffect: (effect: () => void | (() => void), deps?: readonly unknown[]
|
|
40
|
-
useRef: <
|
|
41
|
-
useCallback: <
|
|
42
|
-
useReducer: <
|
|
39
|
+
useEffect: (effect: () => void | (() => void), deps?: readonly unknown[]) => void;
|
|
40
|
+
useRef: <T>(initialValue: T | null) => import("./hooks").RefObject<T>;
|
|
41
|
+
useCallback: <T extends Function>(callback: T, deps: readonly unknown[]) => T;
|
|
42
|
+
useReducer: <T, A>(reducer: (state: T, action: A) => T, initialArg: T, init?: (initialState: T) => T) => [T, (action: A) => void];
|
|
43
43
|
useId: () => string;
|
|
44
|
-
useDebugValue: (_value: unknown, _formatter?: (
|
|
45
|
-
use: <
|
|
44
|
+
useDebugValue: (_value: unknown, _formatter?: (value: unknown) => string) => void;
|
|
45
|
+
use: <T>(promise: Promise<T>) => T;
|
|
46
46
|
startTransition: (callback: () => void) => void;
|
|
47
47
|
useTransition: () => [boolean, (callback: () => void | Promise<void>) => void];
|
|
48
|
-
useDeferredValue: <
|
|
48
|
+
useDeferredValue: <T>(value: T, initialValue?: T) => T;
|
|
49
49
|
startViewTransition: (callback: () => void) => void;
|
|
50
50
|
useViewTransition: () => [boolean, (callback: () => void) => void];
|
|
51
|
-
useMemo: <
|
|
52
|
-
useLayoutEffect: (effect: () => void | (() => void), deps?: readonly unknown[]
|
|
53
|
-
useInsertionEffect: (effect: () => void | (() => void), deps?: readonly unknown[]
|
|
54
|
-
createRef: <
|
|
55
|
-
forwardRef: <
|
|
56
|
-
ref?: import("./hooks").RefObject<
|
|
57
|
-
}) => import("./base").JSX.Element;
|
|
58
|
-
useImperativeHandle: <
|
|
59
|
-
useSyncExternalStore: <
|
|
60
|
-
useActionState: <
|
|
61
|
-
useOptimistic: <
|
|
51
|
+
useMemo: <T>(factory: () => T, deps: readonly unknown[]) => T;
|
|
52
|
+
useLayoutEffect: (effect: () => void | (() => void), deps?: readonly unknown[]) => void;
|
|
53
|
+
useInsertionEffect: (effect: () => void | (() => void), deps?: readonly unknown[]) => void;
|
|
54
|
+
createRef: <T>() => import("./hooks").RefObject<T>;
|
|
55
|
+
forwardRef: <T, P = {}>(Component: (props: P, ref?: import("./hooks").RefObject<T>) => import("./base").JSX.Element) => ((props: P & {
|
|
56
|
+
ref?: import("./hooks").RefObject<T>;
|
|
57
|
+
}) => import("./base").JSX.Element);
|
|
58
|
+
useImperativeHandle: <T>(ref: import("./hooks").RefObject<T>, createHandle: () => T, deps: readonly unknown[]) => void;
|
|
59
|
+
useSyncExternalStore: <T>(subscribe: (callback: () => void) => () => void, getSnapshot: () => T, getServerSnapshot?: () => T) => T;
|
|
60
|
+
useActionState: <T>(fn: Function, initialState: T, permalink?: string) => [T, Function];
|
|
61
|
+
useOptimistic: <T, N>(state: T, updateState: (currentState: T, action: N) => T) => [T, (action: N) => void];
|
|
62
62
|
Suspense: import("./base").FC<import("./types").PropsWithChildren<{
|
|
63
63
|
fallback: any;
|
|
64
64
|
}>>;
|
|
@@ -31,8 +31,8 @@ import type { MiddlewareHandler } from '../../types';
|
|
|
31
31
|
*/
|
|
32
32
|
export declare const cache: (options: {
|
|
33
33
|
cacheName: string | ((c: Context) => Promise<string> | string);
|
|
34
|
-
wait?: boolean
|
|
35
|
-
cacheControl?: string
|
|
36
|
-
vary?: string | string[]
|
|
37
|
-
keyGenerator?: (
|
|
34
|
+
wait?: boolean;
|
|
35
|
+
cacheControl?: string;
|
|
36
|
+
vary?: string | string[];
|
|
37
|
+
keyGenerator?: (c: Context) => Promise<string> | string;
|
|
38
38
|
}) => MiddlewareHandler;
|
|
@@ -36,4 +36,4 @@ import type { Env, MiddlewareHandler } from '../../types';
|
|
|
36
36
|
* ```
|
|
37
37
|
*/
|
|
38
38
|
export declare const contextStorage: () => MiddlewareHandler;
|
|
39
|
-
export declare const getContext: <E extends Env = Env>() => Context<E
|
|
39
|
+
export declare const getContext: <E extends Env = Env>() => Context<E>;
|
|
@@ -24,8 +24,8 @@ export interface IPRestrictionRules {
|
|
|
24
24
|
*
|
|
25
25
|
* @param getIP function to get IP Address
|
|
26
26
|
*/
|
|
27
|
-
export declare const ipRestriction: (getIP: GetIPAddr, { denyList, allowList }: IPRestrictionRules, onError?: (
|
|
27
|
+
export declare const ipRestriction: (getIP: GetIPAddr, { denyList, allowList }: IPRestrictionRules, onError?: (remote: {
|
|
28
28
|
addr: string;
|
|
29
29
|
type: AddressType;
|
|
30
|
-
}, c: Context) => Response | Promise<Response>)
|
|
30
|
+
}, c: Context) => Response | Promise<Response>) => MiddlewareHandler;
|
|
31
31
|
export {};
|
|
@@ -46,9 +46,9 @@ export declare const jwt: (options: {
|
|
|
46
46
|
};
|
|
47
47
|
alg?: SignatureAlgorithm;
|
|
48
48
|
}) => MiddlewareHandler;
|
|
49
|
-
export declare const verify: (token: string, publicKey: SignatureKey, alg?:
|
|
49
|
+
export declare const verify: (token: string, publicKey: SignatureKey, alg?: SignatureAlgorithm) => Promise<import("../../utils/jwt/types").JWTPayload>;
|
|
50
50
|
export declare const decode: (token: string) => {
|
|
51
51
|
header: import("../../utils/jwt/jwt").TokenHeader;
|
|
52
52
|
payload: import("../../utils/jwt/types").JWTPayload;
|
|
53
53
|
};
|
|
54
|
-
export declare const sign: (payload: import("../../utils/jwt/types").JWTPayload, privateKey: SignatureKey, alg?:
|
|
54
|
+
export declare const sign: (payload: import("../../utils/jwt/types").JWTPayload, privateKey: SignatureKey, alg?: SignatureAlgorithm) => Promise<string>;
|
|
@@ -17,7 +17,7 @@ export type ServeStaticOptions<E extends Env = Env> = {
|
|
|
17
17
|
* This middleware is not directly used by the user. Create a wrapper specifying `getContent()` by the environment such as Deno or Bun.
|
|
18
18
|
*/
|
|
19
19
|
export declare const serveStatic: <E extends Env = Env>(options: ServeStaticOptions<E> & {
|
|
20
|
-
getContent: (path: string, c: Context<E
|
|
21
|
-
pathResolve?: (
|
|
22
|
-
isDir?: (
|
|
20
|
+
getContent: (path: string, c: Context<E>) => Promise<Data | Response | null>;
|
|
21
|
+
pathResolve?: (path: string) => string;
|
|
22
|
+
isDir?: (path: string) => boolean | undefined | Promise<boolean | undefined>;
|
|
23
23
|
}) => MiddlewareHandler;
|
|
@@ -35,6 +35,6 @@ export type CookiePrefixOptions = 'host' | 'secure';
|
|
|
35
35
|
export type CookieConstraint<Name> = Name extends `__Secure-${string}` ? CookieOptions & SecureCookieConstraint : Name extends `__Host-${string}` ? CookieOptions & HostCookieConstraint : CookieOptions;
|
|
36
36
|
export declare const parse: (cookie: string, name?: string) => Cookie;
|
|
37
37
|
export declare const parseSigned: (cookie: string, secret: string | BufferSource, name?: string) => Promise<SignedCookie>;
|
|
38
|
-
export declare const serialize: <Name extends string>(name: Name, value: string, opt?: CookieConstraint<Name>
|
|
38
|
+
export declare const serialize: <Name extends string>(name: Name, value: string, opt?: CookieConstraint<Name>) => string;
|
|
39
39
|
export declare const serializeSigned: (name: string, value: string, secret: string | BufferSource, opt?: CookieOptions) => Promise<string>;
|
|
40
40
|
export {};
|
|
@@ -8,5 +8,5 @@ type FilePathOptions = {
|
|
|
8
8
|
defaultDocument?: string;
|
|
9
9
|
};
|
|
10
10
|
export declare const getFilePath: (options: FilePathOptions) => string | undefined;
|
|
11
|
-
export declare const getFilePathWithoutDefaultDocument: (options: Omit<FilePathOptions,
|
|
11
|
+
export declare const getFilePathWithoutDefaultDocument: (options: Omit<FilePathOptions, "defaultDocument">) => string | undefined;
|
|
12
12
|
export {};
|
|
@@ -3,8 +3,8 @@
|
|
|
3
3
|
* JWT utility.
|
|
4
4
|
*/
|
|
5
5
|
export declare const Jwt: {
|
|
6
|
-
sign: (payload: import("./types").JWTPayload, privateKey: import("./jws").SignatureKey, alg?: "
|
|
7
|
-
verify: (token: string, publicKey: import("./jws").SignatureKey, alg?: "
|
|
6
|
+
sign: (payload: import("./types").JWTPayload, privateKey: import("./jws").SignatureKey, alg?: import("./jwa").SignatureAlgorithm) => Promise<string>;
|
|
7
|
+
verify: (token: string, publicKey: import("./jws").SignatureKey, alg?: import("./jwa").SignatureAlgorithm) => Promise<import("./types").JWTPayload>;
|
|
8
8
|
decode: (token: string) => {
|
|
9
9
|
header: import("./jwt").TokenHeader;
|
|
10
10
|
payload: import("./types").JWTPayload;
|
|
@@ -6,9 +6,9 @@ export type ValidationFunction<InputType, OutputType, E extends Env = {}, P exte
|
|
|
6
6
|
type ExcludeResponseType<T> = T extends Response & TypedResponse<any> ? never : T;
|
|
7
7
|
export declare const validator: <InputType, P extends string, M extends string, U extends ValidationTargetByMethod<M>, OutputType = ValidationTargets[U], OutputTypeExcludeResponseType = ExcludeResponseType<OutputType>, P2 extends string = P, V extends {
|
|
8
8
|
in: { [K in U]: K extends "json" ? unknown extends InputType ? OutputTypeExcludeResponseType : InputType : { [K2 in keyof OutputTypeExcludeResponseType]: ValidationTargets[K][K2]; }; };
|
|
9
|
-
out: { [
|
|
9
|
+
out: { [K in U]: OutputTypeExcludeResponseType; };
|
|
10
10
|
} = {
|
|
11
|
-
in: { [
|
|
12
|
-
out: { [
|
|
11
|
+
in: { [K in U]: K extends "json" ? unknown extends InputType ? OutputTypeExcludeResponseType : InputType : { [K2 in keyof OutputTypeExcludeResponseType]: ValidationTargets[K][K2]; }; };
|
|
12
|
+
out: { [K in U]: OutputTypeExcludeResponseType; };
|
|
13
13
|
}, E extends Env = any>(target: U, validationFunc: ValidationFunction<unknown extends InputType ? ValidationTargets[U] : InputType, OutputType, E, P2>) => MiddlewareHandler<E, P, V>;
|
|
14
14
|
export {};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "hono",
|
|
3
|
-
"version": "4.6.
|
|
3
|
+
"version": "4.6.4",
|
|
4
4
|
"description": "Web framework built on Web Standards",
|
|
5
5
|
"main": "dist/cjs/index.js",
|
|
6
6
|
"type": "module",
|
|
@@ -618,16 +618,14 @@
|
|
|
618
618
|
"nodejs"
|
|
619
619
|
],
|
|
620
620
|
"devDependencies": {
|
|
621
|
-
"@hono/eslint-config": "^1.0.
|
|
621
|
+
"@hono/eslint-config": "^1.0.2",
|
|
622
622
|
"@hono/node-server": "^1.8.2",
|
|
623
|
-
"@types/crypto-js": "^4.1.1",
|
|
624
623
|
"@types/glob": "^8.0.0",
|
|
625
624
|
"@types/jsdom": "^21.1.4",
|
|
626
625
|
"@types/node": "20.11.4",
|
|
627
626
|
"@types/supertest": "^2.0.12",
|
|
628
627
|
"@vitest/coverage-v8": "^2.0.5",
|
|
629
628
|
"arg": "^5.0.2",
|
|
630
|
-
"crypto-js": "^4.1.1",
|
|
631
629
|
"esbuild": "^0.15.12",
|
|
632
630
|
"eslint": "^9.10.0",
|
|
633
631
|
"glob": "7.2.3",
|
|
@@ -640,7 +638,7 @@
|
|
|
640
638
|
"typescript": "^5.3.3",
|
|
641
639
|
"vite-plugin-fastly-js-compute": "^0.4.2",
|
|
642
640
|
"vitest": "^2.0.5",
|
|
643
|
-
"wrangler": "
|
|
641
|
+
"wrangler": "3.58.0",
|
|
644
642
|
"ws": "^8.17.0",
|
|
645
643
|
"zod": "^3.20.2"
|
|
646
644
|
},
|