@ontrails/hono 0.2.3 → 0.3.0

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,23 @@
1
1
  # @ontrails/hono
2
2
 
3
+ ## 0.3.0
4
+
5
+ ### Minor Changes
6
+
7
+ - [`26d5341`](https://github.com/outfitter-dev/trails/commit/26d5341f9e44e2c63b75c9c85865c48ee122fb34): HTTP network surfaces never inherit a `createContext` permit. `deriveHttpRoutes` gains `credentialPosture` (`host` by default for in-process callers; the Web Fetch kernel, `@ontrails/http/bun`, `@ontrails/hono` and `@ontrails/cloudflare/workers` always build on `network`). On the network posture identity enters only through `resolvePermit`: a seeded `createContext` permit is discarded at runtime with one diagnostic through the seed's logger, a presented credential (`Authorization`, `x-api-key`, `x-auth-token`) with no resolver answers an `AuthError` instead of absence, and a surface that exposes protected trails without a resolver is refused at build time with a `ValidationError` naming them.
8
+
9
+ Migration: apps that seeded a permit through `createContext` on an HTTP host move that credential into a verifier passed as `resolvePermit` (for example a JWKS or opaque adapter from `@ontrails/permits`) and keep `createContext` for the logger, extensions and resources it seeds. `--dev-permit` is not a migration path for network surfaces.
10
+
11
+ ## 0.2.5
12
+
13
+ ### Patch Changes
14
+
15
+ - [`6b0232a`](https://github.com/outfitter-dev/trails/commit/6b0232a8a29156317c83daf05af205afc22a13cf): Refresh compatible Drizzle, Hono, LogTape, and Pino dependency ranges without changing adapter contracts.
16
+
17
+ ## 0.2.4
18
+
19
+ No changes in this release.
20
+
3
21
  ## 0.2.3
4
22
 
5
23
  No changes in this release.
package/README.md CHANGED
@@ -20,7 +20,7 @@ await surface(graph, {
20
20
  });
21
21
  ```
22
22
 
23
- Pass `resolvePermit` to resolve HTTP `Authorization: Bearer ...` credentials into `ctx.permit` before protected trails execute. The adapter forwards request headers to the framework-agnostic HTTP route executor, so malformed Authorization headers return `401` and resolved permits with insufficient scopes return `403`.
23
+ Pass `resolvePermit` to resolve HTTP `Authorization: Bearer ...` credentials into `ctx.permit` before protected trails execute. The adapter builds on the HTTP `network` credential posture: a `createContext` permit is discarded at runtime, a presented credential with no resolver answers 401, and `createApp` refuses a topo that exposes protected trails without a resolver. The adapter forwards request headers to the framework-agnostic HTTP route executor, so malformed Authorization headers return `401` and resolved permits with insufficient scopes return `403`.
24
24
 
25
25
  Generic non-TrailsError failures return a redacted 500 response while a redacted diagnostic rendering is written to server diagnostics. `TrailsError` responses keep their taxonomy category and class name but redact sensitive message fragments before writing the public body.
26
26
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ontrails/hono",
3
- "version": "0.2.3",
3
+ "version": "0.3.0",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "git+https://github.com/outfitter-dev/trails.git",
@@ -27,11 +27,14 @@
27
27
  "clean": "rm -rf dist *.tsbuildinfo"
28
28
  },
29
29
  "dependencies": {
30
- "@ontrails/core": "^0.2.3",
31
- "hono": "^4.7.0"
30
+ "@ontrails/core": "^0.3.0",
31
+ "hono": "^4.13.13"
32
+ },
33
+ "devDependencies": {
34
+ "@ontrails/http": "^0.3.0"
32
35
  },
33
36
  "peerDependencies": {
34
- "@ontrails/http": "^0.2.3",
37
+ "@ontrails/http": "^0.3.0",
35
38
  "zod": "^4.3.5"
36
39
  },
37
40
  "trails": {
package/src/surface.ts CHANGED
@@ -179,6 +179,7 @@ export const createApp = (
179
179
  basePath: options.basePath,
180
180
  configValues: options.configValues,
181
181
  createContext: options.createContext,
182
+ credentialPosture: 'network',
182
183
  exclude: options.exclude,
183
184
  include: options.include,
184
185
  intent: options.intent,