@webjsdev/server 0.8.65 → 0.8.66
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/index.d.ts +6 -3
- package/package.json +7 -2
package/index.d.ts
CHANGED
|
@@ -25,7 +25,8 @@ import type { LayoutProps, PageProps, RouteHandlerContext } from '@webjsdev/core
|
|
|
25
25
|
|
|
26
26
|
// The `./testing` subpath types are re-exported wholesale (the helpers ship
|
|
27
27
|
// from both the main entry and the subpath; this avoids duplicating them).
|
|
28
|
-
|
|
28
|
+
import type { Handle } from './src/testing.js';
|
|
29
|
+
export * from './src/testing.js';
|
|
29
30
|
|
|
30
31
|
// ---------------------------------------------------------------------------
|
|
31
32
|
// Shared local types
|
|
@@ -34,8 +35,10 @@ export * from './src/testing.d.ts';
|
|
|
34
35
|
/** A webjs middleware: receives the request + a `next()` continuation. */
|
|
35
36
|
export type Middleware = (req: Request, next: () => Promise<Response>) => Promise<Response> | Response;
|
|
36
37
|
|
|
37
|
-
// `Handle` is re-exported from ./src/testing.
|
|
38
|
-
// is not re-declared here.
|
|
38
|
+
// `Handle` is re-exported from ./src/testing.js (the `export *` above), so it
|
|
39
|
+
// is not re-declared here. It is IMPORTED as well, because `export *` re-exports
|
|
40
|
+
// a name without creating a local binding, so `RequestHandler.handle` below
|
|
41
|
+
// could not otherwise see it.
|
|
39
42
|
|
|
40
43
|
/**
|
|
41
44
|
* The `ActionResult<T>` envelope a server action / page action returns.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@webjsdev/server",
|
|
3
|
-
"version": "0.8.
|
|
3
|
+
"version": "0.8.66",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "The server for WebJs, a full-stack JavaScript framework built on web components with server-side rendering and no build step. Provides the file-based router, SSR, server actions, route handlers, middleware, and live reload on Node 24+ or Bun.",
|
|
6
6
|
"main": "index.js",
|
|
@@ -28,7 +28,6 @@
|
|
|
28
28
|
"README.md"
|
|
29
29
|
],
|
|
30
30
|
"dependencies": {
|
|
31
|
-
"@webjsdev/core": "^0.7.51",
|
|
32
31
|
"ws": "^8.20.0"
|
|
33
32
|
},
|
|
34
33
|
"publishConfig": {
|
|
@@ -54,5 +53,11 @@
|
|
|
54
53
|
},
|
|
55
54
|
"optionalDependencies": {
|
|
56
55
|
"amaro": "^1.1.10"
|
|
56
|
+
},
|
|
57
|
+
"peerDependencies": {
|
|
58
|
+
"@webjsdev/core": "^0.7.51"
|
|
59
|
+
},
|
|
60
|
+
"devDependencies": {
|
|
61
|
+
"@webjsdev/core": "^0.7.51"
|
|
57
62
|
}
|
|
58
63
|
}
|