@ultimat3/http 25.2.0 → 26.0.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/README.md CHANGED
@@ -336,7 +336,8 @@ mechanism. It is a plain function and not a pipeline stage, because the secret i
336
336
  and only the route knows which one applies.
337
337
 
338
338
  ```ts
339
- // apps/web/api/webhooks/partner/route.ts
339
+ // apps/web/webhooks/partner.ts — mounted as a plain HTTP route through the `routes` runtime
340
+ // override (apps/web/runtime.ts); `api/` holds no route file
340
341
  import { verifyWebhookSignature } from '@ultimat3/http';
341
342
 
342
343
  declare const env: { readonly PARTNER_WEBHOOK_SECRET: string }; // the app's defineEnv() result
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ultimat3/http",
3
- "version": "25.2.0",
3
+ "version": "26.0.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.2.0",
39
- "@ultimat3/i18n": "25.2.0",
40
- "@ultimat3/schema": "25.2.0",
41
- "@ultimat3/time": "25.2.0"
38
+ "@ultimat3/core": "26.0.0",
39
+ "@ultimat3/i18n": "26.0.0",
40
+ "@ultimat3/schema": "26.0.0",
41
+ "@ultimat3/time": "26.0.0"
42
42
  }
43
43
  }
package/src/server.ts CHANGED
@@ -28,7 +28,7 @@ import { type RateLimitStore, rateLimiter } from './rate-limit';
28
28
  import { withRouteBuckets } from './rate-limit-buckets';
29
29
  import { adoptRateLimitStore } from './rate-limit-installed';
30
30
  import { jsonResponse } from './response';
31
- import { describeRoutes, httpRouter, type Route, type RouteDescription } from './router';
31
+ import { describeRoutes, httpRouter, type Route } from './router';
32
32
 
33
33
  /**
34
34
  * Beside its one caller rather than in `errors.ts`, which is at the 500-line ceiling — the
@@ -142,7 +142,6 @@ export interface ServerHandle {
142
142
  state(): LifecycleState;
143
143
  /** `http://host:port` once started; throws before `start()`. */
144
144
  url(): string;
145
- describe(): readonly RouteDescription[];
146
145
  start(): ServerHandle;
147
146
  /** Runs core's three-phase drain, on the deadline `drain.deadlineMs` set (`lifecycleForRole`). */
148
147
  stop(): Promise<void>;
@@ -306,7 +305,6 @@ const buildServer = (options: ServerOptions, releaseStore: () => void): ServerHa
306
305
  if (server === undefined) throw serverNotStarted('url()');
307
306
  return server.url.origin;
308
307
  },
309
- describe: () => describeRoutes(table),
310
308
  fetch: (request) => dispatch(request),
311
309
  start() {
312
310
  // FIRST, before the socket. `markReady()` refuses a process whose lifecycle already drained