Skip to content

Keep indexed terminal requests inside their read transaction - #161

Merged
magiccodingman merged 2 commits into
masterfrom
fix/protected-read-transaction
Dec 1, 2026
Merged

magiccodingman merged 2 commits into
masterfrom
fix/protected-read-transaction

Conversation

@magiccodingman

Copy link
Copy Markdown
Owner

What changed

Indexed First and Last started an IndexedDB request before the planner opened its Dexie transaction, then waited on that request inside the transaction. An empty transaction could commit first. Start each indexed branch inside its own transaction so the wait is attached to the same request.

Verification

  • A deterministic browser case reproduced Dexie PrematureCommitError on the previous planner. The fixed planner checks plaintext indexed First/Last, exact primary-key hits, and missing keys.
  • The published fully trimmed and AOT Blazor fixture checks guarded writes and typed First/Last reads with 400 KiB and 2.73 MiB encrypted payloads, including missing/default.
  • The local migration browser suite passed 144 cases each on Chromium, Firefox, and Linux WebKit. The local published trimmed and AOT smoke passed on each of those engines.
  • Matching 4.1.1 runtime and CLI packages passed license inspection. Existing hosted gates stay required for merge and release.

@magiccodingman
magiccodingman merged commit 5709728 into master Dec 1, 2026
18 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant