Conversation
ryanrasti
added a commit
that referenced
this pull request
May 5, 2026
Typegres core - Subscription.cancel(reason?) rejects the wait promise; bus.stop() cancels every active sub on shutdown so consumers parked on `await sub.wait` wake with AbortError instead of hanging - db.live catches AbortError and exits cleanly through finally (closes ISSUES.md #2) - safeStringify(undefined) returns "null" so void-returning closures round-trip without breaking JSON.parse on the wire - Bus poll loop guards `t.unref?.()` — was Node-only, browser setTimeout returns a number and threw Demo - All 8 schemas register TypegresLiveEvents.makeTransformer() - runtime auto-startsLive - OperatorRoot.insertDraftOrder / advanceRandom / Api.resetLive for one-click mutations + cancellation - rpc.ts splits into `rpc` (direct) and `rpcQueued` (for the widget); page-internal helpers use rpc to avoid contaminating the playground's pickup queue - Orders.advance: qualifies `CASE orders.status` to dodge the live transformer's CTE-shadowing bug (filed as ISSUES.md #11 with proposed `.case()` builder fix) Play UI - Live toggle (generator emits .live(api.db) instead of .execute) - Run/Stop button, "● live" indicator, Insert order / Advance random buttons - Output renders as a table; new rows flash green, changed cells flash yellow (Tailwind keyframes) - orderBy column + direction control Tests - 8 demo tests including stop:cancellation - 9 exoeval rpc tests covering one-shot + streaming + null round-trip - 39 live tests still green Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.