@ontrails/vite 1.0.0-beta.18 → 1.0.0-beta.21

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,15 @@
1
1
  # @ontrails/vite
2
2
 
3
+ ## 1.0.0-beta.21
4
+
5
+ ## 1.0.0-beta.20
6
+
7
+ ## 1.0.0-beta.19
8
+
9
+ ### Patch Changes
10
+
11
+ - ed5926b: Add missing TSDoc for public adapter and sink boundary types.
12
+
3
13
  ## 1.0.0-beta.18
4
14
 
5
15
  ## 1.0.0-beta.17
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ontrails/vite",
3
- "version": "1.0.0-beta.18",
3
+ "version": "1.0.0-beta.21",
4
4
  "files": [
5
5
  "src/**/*.ts",
6
6
  "!src/**/__tests__/**",
@@ -22,8 +22,8 @@
22
22
  "clean": "rm -rf dist *.tsbuildinfo"
23
23
  },
24
24
  "devDependencies": {
25
- "@ontrails/core": "^1.0.0-beta.17",
26
- "@ontrails/hono": "^1.0.0-beta.17",
25
+ "@ontrails/core": "^1.0.0-beta.21",
26
+ "@ontrails/hono": "^1.0.0-beta.21",
27
27
  "zod": "^4.3.5"
28
28
  }
29
29
  }
package/src/index.ts CHANGED
@@ -3,12 +3,17 @@ import { Readable } from 'node:stream';
3
3
  import { pipeline } from 'node:stream/promises';
4
4
  import type { ReadableStream as NodeReadableStream } from 'node:stream/web';
5
5
 
6
+ /**
7
+ * Fetch contract consumed by the Vite adapter when converting to middleware.
8
+ */
6
9
  export interface FetchSurface {
7
10
  fetch(request: Request): Response | Promise<Response>;
8
11
  }
9
12
 
13
+ /** Callback invoked when Connect middleware should continue execution. */
10
14
  export type ViteMiddlewareNext = (error?: unknown) => void;
11
15
 
16
+ /** Connect-style middleware wrapper around a Trails fetch surface. */
12
17
  export type ViteMiddleware = (
13
18
  req: IncomingMessage,
14
19
  res: ServerResponse,