@solidjs/start 2.0.0-beta.3 → 2.0.0-beta.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/CHANGELOG.md CHANGED
@@ -1,5 +1,11 @@
1
1
  # @solidjs/start
2
2
 
3
+ ## 2.0.0-beta.4
4
+
5
+ ### Patch Changes
6
+
7
+ - 21fdb2c: Update `h3` to `2.0.1-rc.25`.
8
+
3
9
  ## 2.0.0-beta.3
4
10
 
5
11
  ### Patch Changes
@@ -1,64 +1,6 @@
1
- import { type H3Event } from "h3/generic";
1
+ import { H3 } from "h3/generic";
2
2
  import type { JSX } from "solid-js";
3
3
  import type { FetchEvent, HandlerOptions, PageEvent } from "./types.ts";
4
- export declare function createBaseHandler(createPageEvent: (e: FetchEvent) => Promise<PageEvent>, fn: (context: PageEvent) => JSX.Element, options?: HandlerOptions | ((context: PageEvent) => HandlerOptions | Promise<HandlerOptions>)): {
5
- "~rou3": import("h3").RouterContext;
6
- request(request: import("srvx").ServerRequest | URL | string, options?: RequestInit, context?: import("h3").H3EventContext): Response | Promise<Response>;
7
- use(route: string, handler: import("h3").Middleware, opts?: import("h3").MiddlewareOptions): /*elided*/ any;
8
- use(handler: import("h3").Middleware, opts?: import("h3").MiddlewareOptions): /*elided*/ any;
9
- on(method: import("h3").HTTPMethod | Lowercase<import("h3").HTTPMethod> | "", route: string, handler: import("h3").HTTPHandler, opts?: import("h3").RouteOptions): /*elided*/ any;
10
- register(plugin: import("h3").H3Plugin): /*elided*/ any;
11
- mount(base: string, input: import("srvx").FetchHandler | {
12
- fetch: import("srvx").FetchHandler;
13
- } | /*elided*/ any): /*elided*/ any;
14
- all(route: string, handler: import("h3").HTTPHandler, opts?: import("h3").RouteOptions): /*elided*/ any;
15
- get(route: string, handler: import("h3").HTTPHandler, opts?: import("h3").RouteOptions): /*elided*/ any;
16
- post(route: string, handler: import("h3").HTTPHandler, opts?: import("h3").RouteOptions): /*elided*/ any;
17
- put(route: string, handler: import("h3").HTTPHandler, opts?: import("h3").RouteOptions): /*elided*/ any;
18
- delete(route: string, handler: import("h3").HTTPHandler, opts?: import("h3").RouteOptions): /*elided*/ any;
19
- patch(route: string, handler: import("h3").HTTPHandler, opts?: import("h3").RouteOptions): /*elided*/ any;
20
- head(route: string, handler: import("h3").HTTPHandler, opts?: import("h3").RouteOptions): /*elided*/ any;
21
- options(route: string, handler: import("h3").HTTPHandler, opts?: import("h3").RouteOptions): /*elided*/ any;
22
- connect(route: string, handler: import("h3").HTTPHandler, opts?: import("h3").RouteOptions): /*elided*/ any;
23
- trace(route: string, handler: import("h3").HTTPHandler, opts?: import("h3").RouteOptions): /*elided*/ any;
24
- readonly config: import("h3").H3Config;
25
- "~middleware": import("h3").Middleware[];
26
- "~routes": import("h3").H3Route[];
27
- fetch(_request: import("srvx").ServerRequest): Response | Promise<Response>;
28
- handler(event: H3Event): unknown | Promise<unknown>;
29
- "~request"(request: import("srvx").ServerRequest, context?: import("h3").H3EventContext): Response | Promise<Response>;
30
- "~findRoute"(_event: H3Event): import("h3").MatchedRoute<import("h3").H3Route> | void;
31
- "~getMiddleware"(event: H3Event, route: import("h3").MatchedRoute<import("h3").H3Route> | undefined): import("h3").Middleware[];
32
- "~addRoute"(_route: import("h3").H3Route): void;
33
- };
34
- export declare function createHandler(fn: (context: PageEvent) => JSX.Element, options?: HandlerOptions | ((context: PageEvent) => HandlerOptions | Promise<HandlerOptions>)): {
35
- "~rou3": import("h3").RouterContext;
36
- request(request: import("srvx").ServerRequest | URL | string, options?: RequestInit, context?: import("h3").H3EventContext): Response | Promise<Response>;
37
- use(route: string, handler: import("h3").Middleware, opts?: import("h3").MiddlewareOptions): /*elided*/ any;
38
- use(handler: import("h3").Middleware, opts?: import("h3").MiddlewareOptions): /*elided*/ any;
39
- on(method: import("h3").HTTPMethod | Lowercase<import("h3").HTTPMethod> | "", route: string, handler: import("h3").HTTPHandler, opts?: import("h3").RouteOptions): /*elided*/ any;
40
- register(plugin: import("h3").H3Plugin): /*elided*/ any;
41
- mount(base: string, input: import("srvx").FetchHandler | {
42
- fetch: import("srvx").FetchHandler;
43
- } | /*elided*/ any): /*elided*/ any;
44
- all(route: string, handler: import("h3").HTTPHandler, opts?: import("h3").RouteOptions): /*elided*/ any;
45
- get(route: string, handler: import("h3").HTTPHandler, opts?: import("h3").RouteOptions): /*elided*/ any;
46
- post(route: string, handler: import("h3").HTTPHandler, opts?: import("h3").RouteOptions): /*elided*/ any;
47
- put(route: string, handler: import("h3").HTTPHandler, opts?: import("h3").RouteOptions): /*elided*/ any;
48
- delete(route: string, handler: import("h3").HTTPHandler, opts?: import("h3").RouteOptions): /*elided*/ any;
49
- patch(route: string, handler: import("h3").HTTPHandler, opts?: import("h3").RouteOptions): /*elided*/ any;
50
- head(route: string, handler: import("h3").HTTPHandler, opts?: import("h3").RouteOptions): /*elided*/ any;
51
- options(route: string, handler: import("h3").HTTPHandler, opts?: import("h3").RouteOptions): /*elided*/ any;
52
- connect(route: string, handler: import("h3").HTTPHandler, opts?: import("h3").RouteOptions): /*elided*/ any;
53
- trace(route: string, handler: import("h3").HTTPHandler, opts?: import("h3").RouteOptions): /*elided*/ any;
54
- readonly config: import("h3").H3Config;
55
- "~middleware": import("h3").Middleware[];
56
- "~routes": import("h3").H3Route[];
57
- fetch(_request: import("srvx").ServerRequest): Response | Promise<Response>;
58
- handler(event: H3Event): unknown | Promise<unknown>;
59
- "~request"(request: import("srvx").ServerRequest, context?: import("h3").H3EventContext): Response | Promise<Response>;
60
- "~findRoute"(_event: H3Event): import("h3").MatchedRoute<import("h3").H3Route> | void;
61
- "~getMiddleware"(event: H3Event, route: import("h3").MatchedRoute<import("h3").H3Route> | undefined): import("h3").Middleware[];
62
- "~addRoute"(_route: import("h3").H3Route): void;
63
- };
4
+ export declare function createBaseHandler(createPageEvent: (e: FetchEvent) => Promise<PageEvent>, fn: (context: PageEvent) => JSX.Element, options?: HandlerOptions | ((context: PageEvent) => HandlerOptions | Promise<HandlerOptions>)): H3;
5
+ export declare function createHandler(fn: (context: PageEvent) => JSX.Element, options?: HandlerOptions | ((context: PageEvent) => HandlerOptions | Promise<HandlerOptions>)): H3;
64
6
  export declare function createPageEvent(ctx: FetchEvent): Promise<PageEvent>;
@@ -1,36 +1,8 @@
1
+ import type { H3 } from "h3/generic";
1
2
  import type { JSX } from "solid-js";
2
3
  import type { HandlerOptions, PageEvent } from "../types.ts";
3
4
  /**
4
5
  *
5
6
  * Read more: https://docs.solidjs.com/solid-start/reference/server/create-handler
6
7
  */
7
- export declare function createHandler(fn: (context: PageEvent) => JSX.Element, options?: HandlerOptions | ((context: PageEvent) => HandlerOptions)): {
8
- "~rou3": import("h3").RouterContext;
9
- request(request: import("srvx").ServerRequest | URL | string, options?: RequestInit, context?: import("h3").H3EventContext): Response | Promise<Response>;
10
- use(route: string, handler: import("h3").Middleware, opts?: import("h3").MiddlewareOptions): /*elided*/ any;
11
- use(handler: import("h3").Middleware, opts?: import("h3").MiddlewareOptions): /*elided*/ any;
12
- on(method: import("h3").HTTPMethod | Lowercase<import("h3").HTTPMethod> | "", route: string, handler: import("h3").HTTPHandler, opts?: import("h3").RouteOptions): /*elided*/ any;
13
- register(plugin: import("h3").H3Plugin): /*elided*/ any;
14
- mount(base: string, input: import("srvx").FetchHandler | {
15
- fetch: import("srvx").FetchHandler;
16
- } | /*elided*/ any): /*elided*/ any;
17
- all(route: string, handler: import("h3").HTTPHandler, opts?: import("h3").RouteOptions): /*elided*/ any;
18
- get(route: string, handler: import("h3").HTTPHandler, opts?: import("h3").RouteOptions): /*elided*/ any;
19
- post(route: string, handler: import("h3").HTTPHandler, opts?: import("h3").RouteOptions): /*elided*/ any;
20
- put(route: string, handler: import("h3").HTTPHandler, opts?: import("h3").RouteOptions): /*elided*/ any;
21
- delete(route: string, handler: import("h3").HTTPHandler, opts?: import("h3").RouteOptions): /*elided*/ any;
22
- patch(route: string, handler: import("h3").HTTPHandler, opts?: import("h3").RouteOptions): /*elided*/ any;
23
- head(route: string, handler: import("h3").HTTPHandler, opts?: import("h3").RouteOptions): /*elided*/ any;
24
- options(route: string, handler: import("h3").HTTPHandler, opts?: import("h3").RouteOptions): /*elided*/ any;
25
- connect(route: string, handler: import("h3").HTTPHandler, opts?: import("h3").RouteOptions): /*elided*/ any;
26
- trace(route: string, handler: import("h3").HTTPHandler, opts?: import("h3").RouteOptions): /*elided*/ any;
27
- readonly config: import("h3").H3Config;
28
- "~middleware": import("h3").Middleware[];
29
- "~routes": import("h3").H3Route[];
30
- fetch(_request: import("srvx").ServerRequest): Response | Promise<Response>;
31
- handler(event: import("h3").H3Event): unknown | Promise<unknown>;
32
- "~request"(request: import("srvx").ServerRequest, context?: import("h3").H3EventContext): Response | Promise<Response>;
33
- "~findRoute"(_event: import("h3").H3Event): import("h3").MatchedRoute<import("h3").H3Route> | void;
34
- "~getMiddleware"(event: import("h3").H3Event, route: import("h3").MatchedRoute<import("h3").H3Route> | undefined): import("h3").Middleware[];
35
- "~addRoute"(_route: import("h3").H3Route): void;
36
- };
8
+ export declare function createHandler(fn: (context: PageEvent) => JSX.Element, options?: HandlerOptions | ((context: PageEvent) => HandlerOptions)): H3;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@solidjs/start",
3
- "version": "2.0.0-beta.3",
3
+ "version": "2.0.0-beta.4",
4
4
  "type": "module",
5
5
  "files": [
6
6
  "dist",
@@ -42,7 +42,7 @@
42
42
  "es-module-lexer": "^2.0.0",
43
43
  "esbuild": "^0.27.4",
44
44
  "fast-glob": "^3.3.3",
45
- "h3": "2.0.1-rc.16",
45
+ "h3": "^2.0.1-rc.25",
46
46
  "html-to-image": "^1.11.13",
47
47
  "micromatch": "^4.0.8",
48
48
  "path-to-regexp": "^8.3.0",