@ultimat3/http 25.1.0 → 25.2.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.
Files changed (2) hide show
  1. package/package.json +5 -5
  2. package/src/errors.ts +4 -5
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ultimat3/http",
3
- "version": "25.1.0",
3
+ "version": "25.2.0",
4
4
  "description": "Owned request lifecycle over Bun.serve: router, ordered pipeline, problem+json errors",
5
5
  "license": "MIT",
6
6
  "type": "module",
@@ -35,9 +35,9 @@
35
35
  "test": "bun test"
36
36
  },
37
37
  "dependencies": {
38
- "@ultimat3/core": "25.1.0",
39
- "@ultimat3/i18n": "25.1.0",
40
- "@ultimat3/schema": "25.1.0",
41
- "@ultimat3/time": "25.1.0"
38
+ "@ultimat3/core": "25.2.0",
39
+ "@ultimat3/i18n": "25.2.0",
40
+ "@ultimat3/schema": "25.2.0",
41
+ "@ultimat3/time": "25.2.0"
42
42
  }
43
43
  }
package/src/errors.ts CHANGED
@@ -129,11 +129,10 @@ export const bodyInvalid = (
129
129
  code: 'X_BODY_INVALID',
130
130
  cause: `${pathname} body rejected: ${issues.join('; ')}`,
131
131
  ...(meta === undefined ? {} : { meta }),
132
- // `x schema show` is not a command — not in the registry and not in `PLANNED_COMMANDS`, so it
133
- // exits `X_CLI_UNKNOWN_COMMAND`. The same axiom-4 inversion `x logs tail` had in `error-map`:
134
- // the one instruction the reader is given fails when they run it. `x routes` ships, and
135
- // `hasInputSchema` plus the route's name is what it prints.
136
- fix: `x routes --json # find ${pathname}, then send a body matching its input schema`,
132
+ // Only a route that declares `meta.input` reaches the body stage, and no action or query does
133
+ // (`invoke` and `runQuery` validate their own input, as `X_INPUT_INVALID`) — so this is a plain
134
+ // `runtime.ts` route, and `x routes --surface api` lists those by name since owner decision 2.
135
+ fix: `x routes --surface api --json # find ${pathname}, a runtime.ts route, then send a body its meta.input schema accepts`,
137
136
  });
138
137
 
139
138
  /** At construction: a hole in a scope, or a prefix shadowing `/api` or `/_x`, never serves. */