Repository navigation
v0.8.0
- @streamsy/core@0.8.0
- @streamsy/outbox@0.8.0
- @streamsy/projection@0.8.0
- @streamsy/serve@0.8.0
- @streamsy/storage@0.8.0
The Cloudflare object host logs requests (1a1a377)
StreamsyObject.make and objectHandlers built their web handler with disableLogger: true. A handler defect answered 500 and logged nothing, so the only sign of the failure was the status code.
- The object host now logs each request at INFO level when it ends, with method, URL and status.
- A failed request logs its full cause, stack included.
- Each request adds one line to Workers logs.
New @streamsy/outbox package replaces action delivery in serve (e57fe29)
Breaking change: @streamsy/serve/action and its sub-paths /action/errors, /action/outbox, /action/runtime and /action/sql are removed. Use @streamsy/outbox.
@streamsy/outbox is a transactional outbox for Effect. Outbox.enqueue writes entries in the caller's transaction, and Outbox.drain delivers them at least once in bounded passes. The package has no host dependencies.
@streamsy/outbox/memoryexportslayerMemory.@streamsy/outbox/sqlexportslayerSqlandmigrateOutboxfor SQLite, Postgres and MySQL.layerSqlbuilds the store from theSqlClientin context, soenqueuejoins the application's active transaction.- A drain pass delivers at most
limitentries (default 100) and returns{ name, attempted, delivered, retried, deadLettered, more }.moreis true when the pass stopped at its limit. OutboxBackingis the adapter protocol behindOutboxStore. Itssettle(id, Settlement)takes aSettlementwithDelivered,RetryandDeadcases.@streamsy/serve/cloudflareand@streamsy/serve/alchemyexportOutboxWakeup.make(definition, deliver, options), which drains an outbox scope from a host wakeup.
SQL stores no longer create their table. Run migrateOutbox(sql) once at startup on every dialect, outside any transaction. Without it, store operations fail with OutboxUnavailable.
The new table is streamsy_outbox. This release does not migrate the old streamsy_effect_outbox table or change it. Entries still pending in that table are not delivered after the upgrade. Drain them with the previous release before you upgrade, or move them yourself.
Create rejects invalid options and JSON with typed errors (320017c)
CreateError gains InvalidCreateRequest, a minor change to the public error union. Code that exhaustively matches CreateError must handle the new member. The error carries id and message.
- A remote plain create HTTP 400 response now fails with
InvalidCreateRequestand the response message instead ofInvalidForkRequest. Responses withstream-not-supportedstill fail withNotSupported, and fork HTTP 400 responses still fail withInvalidForkRequest. - Local and remote creates reject
ttlSecondscombined withexpiresAt, and reject anexpiresAtvalue thatDateTime.makecannot parse. Both fail withInvalidCreateRequestbefore storage access or an HTTP request. Local creates previously used the TTL when both were set and could create a stream that never expired for an invalid date. HTTP continues to return 400 with the same messages. - Invalid JSON
initialDataon a plain create, including typed toolkit create, now fails withInvalidCreateRequestandInvalid JSONinstead of dying withSyntaxError. Fork initial data fails withInvalidForkRequestand the same message. Append framing and its invalid JSON behavior are unchanged.