@rotorsoft/act-http 1.10.20 → 1.10.22

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 (55) hide show
  1. package/README.md +4 -4
  2. package/dist/.tsbuildinfo +1 -1
  3. package/dist/@types/api/sse-wiring.d.ts +1 -1
  4. package/dist/@types/hono/index.d.ts +18 -18
  5. package/dist/@types/hono/index.d.ts.map +1 -1
  6. package/dist/@types/openapi/index.d.ts +17 -17
  7. package/dist/@types/openapi/index.d.ts.map +1 -1
  8. package/dist/@types/receiver/express/index.d.ts.map +1 -1
  9. package/dist/@types/receiver/fastify/index.d.ts.map +1 -1
  10. package/dist/@types/receiver/finalize.d.ts +15 -2
  11. package/dist/@types/receiver/finalize.d.ts.map +1 -1
  12. package/dist/@types/receiver/hono/index.d.ts.map +1 -1
  13. package/dist/@types/receiver/index.d.ts +8 -4
  14. package/dist/@types/receiver/index.d.ts.map +1 -1
  15. package/dist/@types/receiver/trpc/index.d.ts.map +1 -1
  16. package/dist/@types/trpc/index.d.ts +38 -38
  17. package/dist/@types/trpc/index.d.ts.map +1 -1
  18. package/dist/api/index.cjs.map +1 -1
  19. package/dist/api/index.js +1 -1
  20. package/dist/{chunk-DMDU25DN.js → chunk-G5FNOSDX.js} +5 -3
  21. package/dist/{chunk-DMDU25DN.js.map → chunk-G5FNOSDX.js.map} +1 -1
  22. package/dist/{chunk-KC2NW7XQ.js → chunk-TTVMQYNN.js} +8 -17
  23. package/dist/chunk-TTVMQYNN.js.map +1 -0
  24. package/dist/{chunk-BGXQRSSQ.js → chunk-ZQGGGU4E.js} +1 -1
  25. package/dist/chunk-ZQGGGU4E.js.map +1 -0
  26. package/dist/hono/index.cjs +22 -9
  27. package/dist/hono/index.cjs.map +1 -1
  28. package/dist/hono/index.js +23 -10
  29. package/dist/hono/index.js.map +1 -1
  30. package/dist/openapi/index.cjs.map +1 -1
  31. package/dist/openapi/index.js.map +1 -1
  32. package/dist/receiver/express/index.cjs +4 -12
  33. package/dist/receiver/express/index.cjs.map +1 -1
  34. package/dist/receiver/express/index.js +3 -13
  35. package/dist/receiver/express/index.js.map +1 -1
  36. package/dist/receiver/fastify/index.cjs +4 -12
  37. package/dist/receiver/fastify/index.cjs.map +1 -1
  38. package/dist/receiver/fastify/index.js +3 -13
  39. package/dist/receiver/fastify/index.js.map +1 -1
  40. package/dist/receiver/hono/index.cjs +8 -15
  41. package/dist/receiver/hono/index.cjs.map +1 -1
  42. package/dist/receiver/hono/index.js +2 -2
  43. package/dist/receiver/index.cjs +8 -15
  44. package/dist/receiver/index.cjs.map +1 -1
  45. package/dist/receiver/index.js +2 -2
  46. package/dist/receiver/trpc/index.cjs +8 -15
  47. package/dist/receiver/trpc/index.cjs.map +1 -1
  48. package/dist/receiver/trpc/index.js +7 -16
  49. package/dist/receiver/trpc/index.js.map +1 -1
  50. package/dist/trpc/index.cjs.map +1 -1
  51. package/dist/trpc/index.js +1 -1
  52. package/dist/trpc/index.js.map +1 -1
  53. package/package.json +2 -2
  54. package/dist/chunk-BGXQRSSQ.js.map +0 -1
  55. package/dist/chunk-KC2NW7XQ.js.map +0 -1
package/README.md CHANGED
@@ -6,7 +6,7 @@
6
6
 
7
7
  _HTTP integrations for [@rotorsoft/act](https://www.npmjs.com/package/@rotorsoft/act) — outbound webhooks and incremental state broadcast over Server-Sent Events._
8
8
 
9
- > **Note.** This package consolidates the SSE integration that previously shipped as standalone `@rotorsoft/act-sse`. New projects should install this umbrella and import from the `/sse` subpath; existing `@rotorsoft/act-sse` users can migrate with a one-import change. See [@rotorsoft/act-sse](https://www.npmjs.com/package/@rotorsoft/act-sse) for the deprecation note + migration steps.
9
+ > **Note.** The `/sse` subpath is the home of the surface once published as `@rotorsoft/act-sse`. That package's status is in the [deprecation policy](../../STABILITY.md#deprecation-policy).
10
10
 
11
11
  ## Why this package
12
12
 
@@ -180,7 +180,7 @@ api.get("/openapi.json", (c) =>
180
180
  );
181
181
  ```
182
182
 
183
- Framework errors share one envelope (`{ error, detail?, code? }`) and one status table: `ValidationError` → 422, `InvariantError` → 409, `ConcurrencyError` → 412, `StreamClosedError` → 410, `NonRetryableError` → 400, anything else → 500. tRPC has no 410, so `StreamClosedError` is `NOT_FOUND` there. Optimistic concurrency (`expectedVersion`), `Idempotency-Key` handling, SSE subscriptions (`sse: { channel }`), auth composition and deployment recipes are in the [auto-generated API guide](https://rotorsoft.github.io/act-root/docs/guides/auto-generated-api).
183
+ Framework errors share one envelope (`{ error, detail?, code? }`) and [one status table](https://rotorsoft.github.io/act-root/docs/guides/auto-generated-api#apierror-envelope--error_map--toapierror). Optimistic concurrency (`expectedVersion`), `Idempotency-Key` handling, SSE subscriptions (`sse: { channel }`), auth composition and deployment recipes are in the [auto-generated API guide](https://rotorsoft.github.io/act-root/docs/guides/auto-generated-api).
184
184
 
185
185
  ### `sse` — live state broadcast
186
186
 
@@ -348,12 +348,12 @@ For the recommended receiver-side idempotency contract that pairs with `webhook`
348
348
 
349
349
  ## Stability
350
350
 
351
- Public API governed by the [Act Stability Charter](../../STABILITY.md). Both subpaths (`@rotorsoft/act-http/webhook` and `@rotorsoft/act-http/sse`) are covered by the charter. The `sse` subpath hosts the surface formerly published as `@rotorsoft/act-sse`, now deprecated. Charter is **in effect as of 1.0.0**; the milestone tracker is [milestone 1.0](https://github.com/Rotorsoft/act-root/milestone/1).
351
+ Public API governed by the [Act Stability Charter](../../STABILITY.md). Both subpaths (`@rotorsoft/act-http/webhook` and `@rotorsoft/act-http/sse`) are covered by the charter. Charter is **in effect as of 1.0.0**; the milestone tracker is [milestone 1.0](https://github.com/Rotorsoft/act-root/milestone/1).
352
352
 
353
353
  ## Related packages
354
354
 
355
355
  - **[@rotorsoft/act](https://www.npmjs.com/package/@rotorsoft/act)** — core framework. `webhook` composes with `.do(handler, { backoff })`; `BroadcastChannel` publishes from `app.do()` snapshots.
356
- - **[@rotorsoft/act-sse](https://www.npmjs.com/package/@rotorsoft/act-sse)** — predecessor of the `/sse` subpath here. Being deprecated; migrate to `@rotorsoft/act-http/sse`.
356
+ - **[@rotorsoft/act-sse](https://www.npmjs.com/package/@rotorsoft/act-sse)** — predecessor of the `/sse` subpath here; its status is in the [deprecation policy](../../STABILITY.md#deprecation-policy).
357
357
  - **[@rotorsoft/act-patch](https://www.npmjs.com/package/@rotorsoft/act-patch)** — the immutable patch utility that powers the SSE state merge.
358
358
  - **[@rotorsoft/act-pg](https://www.npmjs.com/package/@rotorsoft/act-pg)** / **[@rotorsoft/act-sqlite](https://www.npmjs.com/package/@rotorsoft/act-sqlite)** — store adapters. `webhook` reactions persist their watermarks through whichever store you've wired.
359
359