Repository navigation
chore: version packages - #63
Merged
Merged
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
github-actions
Bot
force-pushed
the
changeset-release/main
branch
from
October 13, 2026 01:54
2e082b1 to
d105cf4
Compare
This branch was successfully deployed
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
convex-svelte@0.15.0
Minor Changes
e8d95bc: ### Fixes
convexLoadHydrationhandle,convexLoadin+page.tsno longer queries without auth during hydration - SvelteKit re-runs universal load functions in the browser during hydration, beforesetupAuth()has authenticated the client.convexLoad/convexLoadPaginatedtherefore queried Convex unauthenticated, replacing the server-rendered data with anonymous results (or failing the load for auth-protected queries). With the opt-inconvexLoadHydrationhandle, the server embeds its results in the HTML and hydration reuses them: the live subscription starts after auth, and the page becomes interactive without waiting for the WebSocket. Without the handle, hydration still queries as before.convexLoad- on client-side navigation,convexLoadran a one-shot query and then subscribed again (Add → Remove → Add on the WebSocket), executing the query twice. It now opens the live subscription and awaits its first value.convexLoadPaginatedno longer fetches the first page twice.initialData,convexLoadPaginated(andusePaginatedQuerywithinitialData) briefly reportedisLoading: true/LoadingFirstPageright after hydration, so pages rendered their loading state over the server-rendered results. The initial args and the subscription's first empty snapshot now keep the SSR results visible and not loading.Features
convexLoadHydration- new SvelteKithandleexported from the new entry pointconvex-svelte/sveltekit/server/hydration(requires SvelteKit 2.56 or later). Add it tohooks.server.ts(combine with your own handle viasequence()) and put a%convex.hydration%placeholder in the<head>ofsrc/app.htmlto embedconvexLoadresults of universal loads in the SSR HTML. Without the placeholder nothing is embedded, and a dev warning says so. EverythingconvexLoadfetches while a universal load runs is embedded, including calls in helpers it invokes, but not inside remote functions. Server loads (+page.server.ts) never contribute, not even results they use internally, and the ones they return reach the browser through the transport. Universal loads and remote functions are detected via SvelteKit's internalis_in_universal_loadandis_in_remote_functionrequest-store flags (also used by SvelteKit's remote functions). If they can't be read, nothing is embedded and a warning is logged. Pages without results (e.g.ssr = false) get no payload and no dev warnings. An unreadable payload is ignored, so the load queries instead. It's a separate entry point so thatconvex-svelte/sveltekit/serverkeeps working on older SvelteKit versions. A streamed (not awaited)convexLoadresult is only embedded if it finished before the page HTML was generated; in development, a warning points out loads that miss the payload during hydration.hydrate: false-convexLoad/convexLoadPaginatedoption to leave a result out of the SSR payload, e.g. a large one. That load then queries Convex during hydration, beforesetupAuth(), as it did without the handle.d7cb157: ### Breaking
convex-svelte/sveltekitrequires SvelteKit 2.12 or later, because it now imports$app/state. It can no longer be imported outside a SvelteKit app, e.g. to usecreateConvexHttpClientin a Node script; useConvexHttpClientfromconvex/browserthere.@sveltejs/kit@^2.12.0is declared as an optional peer dependency.Fixes
convexLoad/convexLoadPaginatedsubscriptions are released after leaving a route (#57) - previously every query created throughconvexLoad,convexLoadPaginated, or the SvelteKit transport stayed subscribed for the life of the tab, so bandwidth and function calls grew with every visited page (including hover preloads andinvalidate()re-runs). These queries are now route-scoped: they stay subscribed while they are reachable frompage.data(all layouts plus the current page) or rendered by a component, and are released afterwards. A released query resubscribes automatically when it is used again.Features
initConvex(url, { queryCache: { maxIdleEntries, expiration } })(default{ maxIdleEntries: 10, expiration: 60_000 }), or passqueryCache: falseto unsubscribe immediately. The option names match convex-helpers'ConvexQueryCacheProvider; when the buffer is full, the query idle the longest is evicted.closeConvex()disposes all of these queries.keepAlive-convexLoad(query, args, { keepAlive: false })andconvexLoadPaginated(query, args, { initialNumItems, keepAlive: false })skip the idle buffer for that query.dispose()- results ofconvexLoad,convexLoadPaginated,createDetachedQuery, andcreateDetachedPaginatedQueryexposedispose()to stop the subscription explicitly. Afterdispose(),loadMore()returnsfalse.createDetachedQuery/createDetachedPaginatedQueryaccept{ scope: 'route' }to opt into route-scoped release.isStaleonconvexLoadresults - nowtruewhile a released query shows its last known data.