Skip to content

Release v23.11.0

Choose a tag to compare

@github-actions github-actions released this 15 Nov 11:37
ee3dcf1

Summary

Adds a non-mutating drift check and a validation projection report to the proxy generator, caps queued observable-query emissions per subscription, and flags command results whose command has no handler. Also fixes causation for events appended by response value handlers, and custom WebSocket connection handlers.

Added

  • Proxy generator --check option compares committed TypeScript clients with what the compiled backend would generate, without writing or deleting files. It lists missing, changed and obsolete files and exits 2 on drift, 0 when up to date and 1 on errors. (#3637)
  • Proxy generator --validation-report=text|json and --validation-report-file=<path> options explain which inspected server validation rules are projected into generated TypeScript clients and why others stay server-side. (#3638)
  • QueryOptions.MaxQueuedEmissionsPerSubscription (default 256) caps how many emissions can queue for one observable-query subscription. When a subscriber falls further behind than that over WebSocket, Server-Sent Events or the demultiplexer hub, Arc ends the subscription and the client reconnects with fresh data. (#3633)
  • Command results now report IsMissingHandler (isMissingHandler in TypeScript) when a command has no registered handler, so clients can tell a missing handler apart from other failures. CommandForm validation treats such a result as not run, with the reason missingHandler, instead of as a failed validation. (#3869)

Fixed

  • Events appended by response value handlers now carry the command on their causation chain, also when the transactional command scope completes after the command's causation scope has ended. (#3735)
  • Enumerable observable queries close the WebSocket connection again when a custom connection handler fails to send, instead of silently skipping each item (#3652)
  • Subclasses of WebSocketConnectionHandler that re-implement SendMessage are now used for query data pushes, not only for error frames (#3652)
  • Typed command results (Execute<TResult>) now keep the retryable flag from the underlying result. (part of #3869)