@ultimat3/http 22.6.0 → 22.6.1

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/error-map.ts +4 -1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ultimat3/http",
3
- "version": "22.6.0",
3
+ "version": "22.6.1",
4
4
  "description": "Owned request lifecycle over Bun.serve: router, ordered pipeline, problem+json errors",
5
5
  "license": "MIT",
6
6
  "type": "module",
@@ -31,9 +31,9 @@
31
31
  "test": "bun test"
32
32
  },
33
33
  "dependencies": {
34
- "@ultimat3/core": "22.6.0",
35
- "@ultimat3/i18n": "22.6.0",
36
- "@ultimat3/schema": "22.6.0",
37
- "@ultimat3/time": "22.6.0"
34
+ "@ultimat3/core": "22.6.1",
35
+ "@ultimat3/i18n": "22.6.1",
36
+ "@ultimat3/schema": "22.6.1",
37
+ "@ultimat3/time": "22.6.1"
38
38
  }
39
39
  }
package/src/error-map.ts CHANGED
@@ -84,13 +84,16 @@ export const ERROR_STATUS = {
84
84
  X_WEBHOOK_SIGNATURE_INVALID: 401,
85
85
  X_WEBHOOK_SIGNATURE_STALE: 401,
86
86
  // Boot refusals of the app's HTTP declaration (a bearer mount, an action's pinned path or the
87
- // app's path style, the openapi block, the MCP oauth block, a page's `post`) — never a request's
87
+ // app's path style or a path derived before it, the openapi block, the MCP oauth block or an
88
+ // idempotent tool shadowing its key argument, a page's `post`) — never a request's
88
89
  // answer; 500 if one ever escaped into a response: the deployment is wrong, the caller is not.
89
90
  X_BEARER_MOUNT_INVALID: 500,
90
91
  X_ACTION_HTTP_PATH_INVALID: 500,
91
92
  X_ACTION_PATH_STYLE_INVALID: 500,
93
+ X_ACTION_PATH_DERIVED_EARLY: 500,
92
94
  X_OPENAPI_CONFIG_INVALID: 500,
93
95
  X_MCP_OAUTH_INVALID: 500,
96
+ X_MCP_IDEMPOTENCY_KEY_SHADOWED: 500,
94
97
  X_ROUTE_POST_INVALID: 500,
95
98
  // @ultimat3/action — the code every primitive throws when the CALLER's input fails the schema
96
99
  // the primitive declared. 400 because that is what the published OpenAPI operation promises for