Repository navigation
refactor(studio): name the sealed draft send by the microtask it waits for - #8541
Conversation
Edit accuracy: accurate 271 (base branch 271), smooth 48 of thoseThe gate passes. Quarantined, measured but not gated (0) |
vanceingalls
left a comment
There was a problem hiding this comment.
Approved at 098857d, CI green. This is a rename only, following Rames's note on #8537: sendAtTaskEnd becomes sendOnMicrotask, sendsAtTaskEnd becomes sendQueued, and the doc comment and two test titles now say "microtask" instead of "task". That matches what queueMicrotask actually does. There's no behaviour change (+10/-10), and typecheck in CI confirms no caller still uses the old names.
…icrotask-name-pr # Conflicts: # packages/studio/src/components/editor/previewDrafts.ts
vanceingalls
left a comment
There was a problem hiding this comment.
Re-approved at c459614, CI green. The new head is a main merge (#8542, #8546, #8544 and others). The PR's changed lines are identical to the approved 098857d8 (same two files, +10/-10), so it's still the rename only. The one conflict (#8301's sent beside the renamed sendQueued) keeps both, and no old names remain.
* chore: release v0.9.84 * chore: release v0.9.84 notes list everything merged through heygen-com#8541 * chore: release v0.9.84 notes list heygen-com#8552 * chore: release v0.9.84 notes list heygen-com#8551
What
Renames in
previewDrafts.tsonly. #8537 batches a sealed frame's draws into one send per microtask, but its names said "task".sendAtTaskEndis nowsendOnMicrotask, and the queue'ssendsAtTaskEndflag is nowsendQueued. The module comment and two test titles now say microtask.Why
A reviewer's non-blocking note on #8537: the draws are batched per microtask, not per task, so the old names were slightly off. #8537 was already in the merge queue, so the rename comes here.
How
Renames only, no behaviour change.
No visible change
Nothing a person sees changes.
Test plan
fails without the fix: none, since this is a rename. In
packages/studio/src/components/editor/previewDrafts.test.ts, only the titles of #8537's rows "keeps what each draw before one send set: a later field wins, and a size drawn earlier stays" and "sends a draw still waiting for its microtask before a save that carries its end" change; their bodies don't.previewDrafts.test.tspasses 16 of 16, three runs in a row, and the studio typecheck is clean.