Version Packages (next) - #587
Open
github-actions[bot] wants to merge 1 commit into
Open
Conversation
github-actions
Bot
force-pushed
the
changeset-release/next
branch
from
August 22, 2026 06:58
ddd9816 to
4f1f4a6
Compare
github-actions
Bot
force-pushed
the
changeset-release/next
branch
from
August 22, 2026 07:18
4f1f4a6 to
55dfbb7
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 next, this PR will be updated.
nextis currently in pre mode so this branch has prereleases rather than normal releases. If you want to exit prereleases, runchangeset pre exitonnext.Releases
@solidjs/router@2.0.0-next.18
Patch Changes
c81606b:
liveQuery()— keyed live queries over value-shaped streams (prototype)Declares a keyed live query: an async-iterable producer whose yields are
successive values of one logical query, re-yielding current state on every
invocation. liveQuery IS the live declaration — no separate wrapper needed:
server functions are declared GET at creation (like
query), the serverface brands the resolved iterable so SSR live policy applies (document face
renders the first value, hydration adopts it and reconnects), and the
client channel owns reconnect-with-backoff when a connected stream dies.
One connection per (name + args) key is shared by every consumer: late
subscribers receive the latest value immediately, delivery is latest-wins,
and the connection closes when the last consumer leaves (microtask linger
so a re-running memo doesn't thrash it). Connections are lazy — calling the
function returns a live-branded iterable; the first pull connects — so
hydration traces open nothing. Retry is for transient deaths only: a
definite rejection (4xx — the transport stamps HTTP statuses onto
failures) ends the channel and surfaces the error to consumers, like a
first-connect failure does. On the server, channels are request-scoped:
every consumer of a key within one render observes the same first value
(the record is retained past teardown for replay), and separate requests
never share connections. Calling under preload intent warms the channel
(a temporary hold spans the preload window), so navigation renders against
an already-connected stream instead of holding the transition on connect
plus first yield.
Live queries participate in both router data protocols. Explicit
revalidate(key)reconnects (the producer re-yields current state oninvocation). Single-flight participation is delivery-side: a mutation's
flight payload pushes straight into open channels — the mutation response
is the round trip — while the post-mutation sweep leaves the healthy
connection in place, since the live stream is itself the freshness
mechanism. New
registerRevalidateHook/registerFlightDataHookseams inquery let keyed stores join those protocols without coupling.
The callable carries the
queryconventions (key,keyFor) plus areactive
status(...args)read ("idle" | "connecting" | "connected" |"reconnecting" | "closed").