@ontrails/http 1.0.0-beta.22 → 1.0.0-beta.24

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,19 @@
1
1
  # @ontrails/http
2
2
 
3
+ ## 1.0.0-beta.24
4
+
5
+ ### Patch Changes
6
+
7
+ - @ontrails/core@1.0.0-beta.24
8
+
9
+ ## 1.0.0-beta.23
10
+
11
+ ### Patch Changes
12
+
13
+ - 9c5ecdc: Refresh HTTP docs for the stable RC pass so public package guidance uses the
14
+ binding vocabulary and beta install guidance avoids stale copied pin examples.
15
+ - @ontrails/core@1.0.0-beta.23
16
+
3
17
  ## 1.0.0-beta.22
4
18
 
5
19
  ### Patch Changes
package/README.md CHANGED
@@ -22,7 +22,7 @@ await surface(graph, { port: 3000 });
22
22
 
23
23
  This starts a Hono-based HTTP server. The `greet` trail becomes `GET /greet?name=...` because its `intent` is `'read'`.
24
24
 
25
- For Bun-native HTTP without Hono, use the Bun runtime materializer subpath:
25
+ For Bun-native HTTP without Hono, use the Bun-native HTTP binding subpath:
26
26
 
27
27
  ```typescript
28
28
  import { surface } from '@ontrails/http/bun';
@@ -32,13 +32,16 @@ await surface(graph, { port: 3000 });
32
32
 
33
33
  `@ontrails/http/bun` uses Bun's native `Bun.serve({ routes })` fast path and keeps the shared Web Fetch handler as the fallback. It requires Bun `>=1.2.3` and does not add a third-party runtime dependency.
34
34
 
35
- ## Projection and materialization
35
+ ## Projection and runtime binding
36
36
 
37
37
  The HTTP package follows the surface API naming split:
38
38
 
39
39
  - `derive*` exports are pure projections from the topo. Use `deriveHttpRoutes()` for route definitions and `deriveOpenApiSpec()` for the OpenAPI contract.
40
- - `create*` exports materialize runtime objects without opening a network boundary. `@ontrails/http/fetch` exports `createRouteHandler()` for one route and `createFetchHandler()` for a full topo dispatcher.
41
- - `surface()` opens the runtime boundary. `@ontrails/hono` opens a Hono server; `@ontrails/http/bun` opens Bun's native HTTP server.
40
+ - `create*` exports build runtime objects without opening a network boundary.
41
+ `@ontrails/http/fetch` exports `createRouteHandler()` for one route and
42
+ `createFetchHandler()` for a full topo dispatcher.
43
+ - `surface()` opens the runtime boundary. `@ontrails/hono` opens an adapter
44
+ binding to Hono; `@ontrails/http/bun` opens the native Bun HTTP binding.
42
45
 
43
46
  The shared `@ontrails/http/fetch` kernel owns query/body parsing, content-length validation, public error projection, diagnostics, request IDs, headers, abort propagation, and webhook verification/parsing behavior. Hono and Bun both consume that kernel so route semantics stay aligned.
44
47
 
@@ -73,7 +76,7 @@ const spec = deriveOpenApiSpec(graph, { basePath: '/api' });
73
76
  | `deriveHttpRoutes(graph, options?)` | Build framework-agnostic route definitions from a topo |
74
77
  | `deriveOpenApiSpec(graph, options?)` | Generate an OpenAPI 3.1 document for the HTTP surface |
75
78
  | `@ontrails/http/fetch` | Shared Web Fetch `createRouteHandler()` and `createFetchHandler()` kernel |
76
- | `@ontrails/http/bun` | Bun-native `createApp()` and `surface()` materializer |
79
+ | `@ontrails/http/bun` | Bun-native `createApp()` and `surface()` binding |
77
80
  | `@ontrails/http/testing` | Owner-owned adapter conformance factory for HTTP adapter authors |
78
81
 
79
82
  ## Adapter authoring
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ontrails/http",
3
- "version": "1.0.0-beta.22",
3
+ "version": "1.0.0-beta.24",
4
4
  "files": [
5
5
  "src/**/*.ts",
6
6
  "!src/**/__tests__/**",
@@ -25,7 +25,7 @@
25
25
  "clean": "rm -rf dist *.tsbuildinfo"
26
26
  },
27
27
  "dependencies": {
28
- "@ontrails/core": "^1.0.0-beta.22"
28
+ "@ontrails/core": "^1.0.0-beta.24"
29
29
  },
30
30
  "peerDependencies": {
31
31
  "zod": "^4.3.5"