Repository navigation
Version Packages - #243
Merged
Merged
Version Packages#243
Conversation
github-actions
Bot
force-pushed
the
changeset-release/main
branch
from
November 22, 2026 00:20
3e68e42 to
6ed600c
Compare
github-actions
Bot
force-pushed
the
changeset-release/main
branch
from
November 22, 2026 17:44
6ed600c to
38176b2
Compare
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.
This PR was opened by the Changesets release GitHub action. When you're ready to do a release, you can merge this and the packages will be published to npm automatically. If you're not ready to do a release yet, that's fine, whenever you add more changesets to main, this PR will be updated.
Releases
@typeonce/ritmo@0.27.0
Minor Changes
7828818:
FixedLoop'supdategets a second argument,at: FixedLoop.StepInFrame:at.lastis true on the frame's last update (by the accumulator andmaxStepsPerFrame), for code that acts once per frame after its steps, as a networked session does to send what the frame said in one message. Anupdatethat takes no arguments is unchanged.The
ritmoskill's netcode playbook says that a session sends one message per link per frame and repeats what was lost, so a link sends each message as it is (no outbox or batching of its own), that a game'supdatearoundsession.updatepasses the loop's arguments through, and to measure withstatus().sent.@typeonce/ritmo-netcode@0.27.0
Minor Changes
e7078d5:
session.eventsconfirms the ticks a save makes final. A save (the match's start,resync(), a page seated again after it loaded again, a hidden page back under"resync-on-return") is the host's world as it ran, guesses of other seats' input included. Until now every peer, the host too, withdrew the ticks it had run before the save but not confirmed yet, and never confirmed them: their events were gone without a word. Under rollback that is up tomaxRollbackticks on every page at each save: a page that reloads mid-match lets the others run on guesses of its seat until it is back, so a lap, a checkpoint, or a sound of that stretch never reached any page. The page the save seated was not affected: it confirms every tick from the save on, as before.predicted()handed out of them stands.lost()with the new reason"save", and what was predicted of them is withdrawn. A page the save seats for its first match (one that loaded again) is told nothing of the ticks before it: the save's world holds them.inputDelayticks after it;lost()reported one tick fewer when a resync ran them again with other events.The sync message carries the inputs (protocol version 6, with this release's other session changes): every page of a match runs this release.
Breaking (types only):
EventsLost["reason"]is"unread" | "resync" | "save". Aswitchover it adds a case; ticks reported"save"are ones whose events this peer cannot tell, like"resync":7828818: A session sends one message per link per frame, and lighter ones. Until now a session handed its links a message for each thing it said (inputs, checksums, pings, pongs), every step, so a frame that ran several steps sent several of each, and a relay that bills per message (a Cloudflare Durable Object) paid for all of them. Now everything one frame says goes out as one message per link, a bundle: driven by
session.updatefrom aFixedLoop, one per host frame however many steps it ran; eachadvancecalled directly is a frame of its own.status().sentcounts the messages handed to the links and their bytes in UTF-8.Over 120 ms with 60 ms of jitter and 5% loss, on pages at 60 Hz that sometimes run two or three steps in a frame: 2 peers went from 139 messages and 62 KiB a second to 97 and 16 to 23 KiB; 8 peers from 728 and 290 KiB to 387 and 73 to 103 KiB (the lower figure for input held 20 frames, the higher for input that changes nearly every frame).
Breaking: every page of a match must run this version. The session protocol changed (version 6): a peer on 0.26 or older ends with
ProtocolMismatch.Breaking: the function
session.update(...)returns takes the loop's two arguments. Passed toFixedLoop.startas it is, nothing changes. Called from the game's ownupdate, pass them through, so the session knows the frame's last step:const tick = session.update({ input: readInput, onHalted }) FixedLoop.start({ ...loop, - update: () => tick(), + update: (seconds, at) => tick(seconds, at), })A link that batched the session's messages itself (an outbox flushed once per task) can send each as it is now.
Patch Changes
@typeonce/ritmo-browser@0.27.0
Patch Changes
@typeonce/ritmo-devtools@0.27.0
Patch Changes
@typeonce/ritmo-math@0.27.0
Patch Changes
@typeonce/ritmo-pixi@0.27.0
Patch Changes
@typeonce/ritmo-render@0.27.0
Patch Changes
@typeonce/oxlint-plugin-ritmo@0.27.0
No changes in this release.
@typeonce/ritmo-tools@0.27.0
No changes in this release.