NewYour coding agent can read the release notes before it upgrades.Set up the MCP server →
npm, #2454 most downloaded on npm
Modern and scalable routing for React applications
Latest stable
1.169.5
Last release 10 days ago
08 Nov 2026
Ships on a steady schedule
a new release about every 1 weeks
Nearly every release is documented
notes for 60 of the last 60 stable releases
Nothing withdrawn
no release was ever pulled
3 years old
851 releases · first in 2023
Drag across the ruler to compare, or tap a release to open it.
Updated dependencies [`0300f87`]:
0300f87]:
Updated dependencies [`5fa9e55`]:
5fa9e55]:
Your coding agent can read these notes before it upgrades. Set up the MCP server →
@tanstack/react-start-client@1.167.4
@tanstack/start-plugin-core@1.170.5
@tanstack/react-start-client@1.167.3
### Patch Changes - #8888 `bbf9b75` - Fix broken styling of the embedded TanStackRouterDevtoolsPanel (including inside shadow DOM) by giving the devto
@tanstack/start-plugin-core@1.170.2
Invalidation now retires matching active preloads so older speculative loader results cannot become fresh cache data after invalidation.
#7805 45c4ad8 - Rewrite match loading around a lane-based scheduler that tracks each navigation, preload, and background reload as an ordered unit of work. This fixes pending/redirect/retry state leaking between overlapping navigations, restores correct SSR status codes for redirects, errors, and not-found responses, and closes hydration gaps where the client re-ran work the server had already completed.
headers() now only runs on the server, matching the documented behavior — it is no longer invoked during client-side asset projection.gcTime and preloadGcTime now match the existing runtime default of 5 minutes (300_000).Removed / changed exported internals
RouterState no longer includes loadedAt, isTransitioning, statusCode, or redirect. Use match.updatedAt in place of loadedAt; subscribe to router.state.status / router.state.isLoading in place of isTransitioning; server response status and redirect handling are now internal to the server loader and are no longer exposed on router.state.RouteMatch.fetchCount has been removed, with no replacement — it was purely informational.RouteMatch.status no longer includes 'redirected' (it remains 'pending' | 'success' | 'error' | 'notFound') — redirected matches are dropped from the match list instead of being rendered.RouteMatch.globalNotFound has been renamed and privatized to the internal _notFound field. Use match.status === 'notFound' instead.Match components now accept routeId instead of matchId.RouterStores adapter contract now uses route-keyed presentation stores: matchesId is replaced by ids, matchStores by byRoute, and getRouteMatchStore() by getMatchStore(). The separate loadedAt, isLoading, isTransitioning, statusCode, and redirect stores have been removed, along with the pending/cache stores and their setters. StoreConfig.init has also been removed. Read application-facing state from router.state; preload and cache coordination are now internal.RouterCore members getMatch(), updateMatch(), cancelMatch(), and cancelMatches() — read matches from router.state.matches (e.g. router.state.matches.find((m) => m.id === id)); there is no replacement for mutating or cancelling an individual in-flight match from outside the router.RouterCore.hasNotFoundMatch() — use router.state.matches.some((m) => m.status === 'notFound').RouterCore.looseRoutesById — use routesById.RouterCore.isPrerendering(), RouterCore.isViewTransitionTypesSupported, and RouterCore.viewTransitionPromise, with no replacement.RouterCore.getParsedLocationHref() and RouterCore.clearExpiredCache(), with no replacement — expired cache entries are now reconciled automatically as part of match commit.RouterCore.latestLoadPromise and RouterCore.beforeLoad(), with no replacement.RouterCore.commitLocationPromise and RouterCore.pendingBuiltLocation have been replaced by the internal _commitPromise and _pendingLocation fields.GetMatchFn and UpdateMatchFn types, along with the methods they typed.getMatchedRoutes() export from @tanstack/router-core — use the router.getMatchedRoutes() instance method instead.RouterCore.loadRouteChunk() no longer accepts an array of component types as its second argument. One-argument usage is unchanged; the optional second argument is now 'errorComponent', 'notFoundComponent', or false for internal boundary loading.Redirect.redirectHandled, which was internal redirect bookkeeping.MatchRoutesOpts.preload and MatchRoutesOpts.dest have been removed.StartTransitionFn is now (fn, expected) => Promise<boolean> (previously (fn) => void). This only affects custom framework adapters that implement startTransition.Updated dependencies [45c4ad8]:
2387a2e]:
Updated dependencies \[`446ce1b`, `ff157f0`]:
446ce1b - Require Node ^20.19.0 || >=22.12.0 (was >=20.19), so the CommonJS builds can load ESM-only dependencies through require(esm). Node 21 and Node 22.0–22.11 do not enable it by default, so they are no longer supported.#8857 ad5b3b7 - A pathless layout inside a route group (routes/(group)/_layout.tsx) or a route group's own layout (routes/(group)/route.tsx) is typed with the full path '/' in FileRoutesByPath, like the router gives it at runtime, instead of ''. When no index route claims /, the layout also appears under '/' in FileRoutesByFullPath and FileRoutesByTo, as a pathless layout outside a group already does.
Updated dependencies [446ce1b, ff157f0]:
201e150, 5ae2ae5]:
@tanstack/start-plugin-core@1.169.20
Updated dependencies [`35e88f0`]:
35e88f0]:
Updated dependencies [`056337e`]:
056337e]:
Updated dependencies [`afa40ef`]:
afa40ef]:
Updated dependencies [`709627f`]:
709627f]:
Add experimental HTTP 103 Early Hints support to Start server handlers.
Updated dependencies [`96818b8`]:
96818b8]:
Add compiler-driven RSC CSS auto-injection for Start RSC render APIs and wire it into the React Start Vite and Rsbuild adapters. This ensures same-fil
Add compiler-driven RSC CSS auto-injection for Start RSC render APIs and wire it into the React Start Vite and Rsbuild adapters. This ensures same-file CSS module dependencies are discovered for renderServerComponent, createCompositeComponent, and JSX-based renderToReadableStream calls. (#7310)
Also add a configurable server function provider module directive hook used by the React Rsbuild RSC adapter to emit "use server-entry" only for extracted provider files.
Updated dependencies [ae453b7]:
@tanstack/react-start-client@1.166.47
Updated dependencies [`82b0613`]:
82b0613]:
Updated dependencies [`c4256c2`]:
c4256c2]:
Updated dependencies [`761fcc0`]:
761fcc0]:
fix exports for react-start so useServerFn is available with RSC
fix exports for react-start so useServerFn is available with RSC (#7292)
Updated dependencies [c992495]:
Updated dependencies \[`32a3360`, `689a7c5`]:
Updated dependencies \[`18154b1`]:
18154b1]:
d6decca]:
Updated dependencies \[`32a3360`]:
32a3360]:
71d9694]:
32a3360]:
Updated dependencies \[`18154b1`]:
18154b1]:
18154b1]:
Updated dependencies \[`71d9694`]:
71d9694]:
#7588 94d6d8e - Remove the built-in useSession API. Applications choose a session library, such as iron-session, and save or destroy sessions explicitly before returning or redirecting. Connect a cookie adapter through getCookie and setCookie, or append serialized cookies with appendResponseHeader('set-cookie', cookie). Existing session cookies require a deliberate migration or signing in again with a new cookie name.
createServerEntry keeps the complete callback, including custom error handling, inside the request context and converts errors that escape it. The built-in entry still converts errors automatically. Raw createStartHandler handlers now rethrow the original error. For custom reporting, catch inside createServerEntry, then rethrow for default conversion or return handleStartError(error) to preserve response-helper status, headers, and cookies. Return an explicit Response when choosing a custom error payload.
Response helpers now apply consistently across server routes, SSR, server functions, redirects, errors, and middleware response replacements. Helper setters override returned values; cookie helpers preserve independent cookies and replace matching cookie identities. Use appendResponseHeader('set-cookie', cookie) when adding a serialized cookie without replacing other cookies. Changed responses receive copied headers and reuse the body stream, so applications should inspect the response returned by Start rather than relying on mutation of the original response.
Updated dependencies [94d6d8e, 94d6d8e, 94d6d8e, 94d6d8e, 94d6d8e, 94d6d8e]:
8b97002]:
@tanstack/router-plugin@1.168.47
@tanstack/router-plugin@1.168.46
32a3360]:
#7588 94d6d8e - Remove the built-in useSession API. Applications choose a session library, such as iron-session, and save or destroy sessions explicitly before returning or redirecting. Connect a cookie adapter through getCookie and setCookie, or append serialized cookies with appendResponseHeader('set-cookie', cookie). Existing session cookies require a deliberate migration or signing in again with a new cookie name.
createServerEntry keeps the complete callback, including custom error handling, inside the request context and converts errors that escape it. The built-in entry still converts errors automatically. Raw createStartHandler handlers now rethrow the original error. For custom reporting, catch inside createServerEntry, then rethrow for default conversion or return handleStartError(error) to preserve response-helper status, headers, and cookies. Return an explicit Response when choosing a custom error payload.
Response helpers now apply consistently across server routes, SSR, server functions, redirects, errors, and middleware response replacements. Helper setters override returned values; cookie helpers preserve independent cookies and replace matching cookie identities. Use appendResponseHeader('set-cookie', cookie) when adding a serialized cookie without replacing other cookies. Changed responses receive copied headers and reuse the body stream, so applications should inspect the response returned by Start rather than relying on mutation of the original response.
Updated dependencies [94d6d8e, 94d6d8e, 94d6d8e, 94d6d8e, 94d6d8e, 94d6d8e]:
4d864ee]:
Updated dependencies \[`32a3360`]:
32a3360]:
18154b1]:
9252206]:
Updated dependencies \[`923d98b`]:
923d98b]:
32a3360]:
#8711 a80cd74 - Replace yargs with the dependency-free cac for parsing tsr arguments. tsr generate and tsr watch work as before. Running tsr with no command now prints help, and unknown commands, unknown options, or extra arguments now print an error and exit with code 1 instead of being ignored.
Updated dependencies []:
e66da18]:
18154b1]:
73bfc15]:
d521abd]:
Split Start plugin core bundler APIs into explicit Vite and Rsbuild subpaths so projects only need the bundler they use. Mark both vite and @rsbuild/core peers as optional where Start exposes both integrations. (#7249)
Updated dependencies [dda463c]:
@tanstack/start-client-core@1.170.38
d6ba115]:
d6ba115]:
@tanstack/start-client-core@1.170.37
57bd1a9]:
cd91cee]:
Updated dependencies \[`32a3360`]:
32a3360]:
#8204 cbbfbe3 - Stream large deferred SSR hydration payloads through a backpressure-aware router transport, fail known setup errors before response creation, and close cancelled or expired transforms safely.
Start now cancels discarded middleware and HEAD response bodies, including plain streams and derived branches.
Server-function raw streams share one ordered response. Arbitrary or sequential consumption can require potentially unbounded buffering of unread data on the client. Cancelling one raw stream discards it locally, while aborting the whole call cancels the response and server work. Consume streams concurrently, cancel unused streams promptly, or use separate calls when independent backpressure is required. A raw stream that exceeds its unread-byte limit now fails alone; sibling streams and the JSON result keep flowing.
The JSON wire shape of a RawStream server-function argument changed. Clients and servers must run matching versions for requests that pass a RawStream.
The frame-protocol constants (FRAME_TYPE_*, MAX_FRAME_PAYLOAD_SIZE, MAX_FRAMED_STREAMS) moved from the @tanstack/start-client-core root to the @tanstack/start-client-core/client-rpc subpath.
Router requests whose Accept header allows neither text/html nor */* now receive 406 Not Acceptable instead of 500.
Framework adapters share the body <Scripts> composition (getSsrBodyScriptParts, composeSsrBodyScripts) and the eager HTML response wrapper (renderSsrHtmlResponse) from @tanstack/router-core.
Solid SSR now emits one document type and renders late lazy errors through route boundaries. A Solid <Await> without a fallback no longer holds the streamed shell; it renders inside the nearest <Suspense> boundary like React and Vue, and now renders falsy resolved values.
Static server functions decode cached RawStream values with the client deserializer plugins.
SSR Query integrations now keep request cleanup and stream ownership aligned with the router lifecycle.
Updated dependencies [bc80866, e561fa1, cbbfbe3, a1c8d1a, cbbfbe3, a0b2ad9, 1ca361b]:
f7f0025]:
Updated dependencies \[`d521abd`]:
d521abd]:
18154b1]:
d76a332, b747fb8, 6cfb1e8, 700a714, 700a714, cb8749e, 7e349c3, 9b2adaf, 873c830, 7e349c3, 634da91, e9396c9, 634da91, f151ab0, bc57fa3, 9872d2a, 9b2adaf, d76a332, 634da91, 634da91, 7e349c3, 9448caa, e9396c9, 700a714, 634da91, 634da91]:
e30814d]:
Updated dependencies [ 8c43c71 , d914b08 ]:
#8451 740b0ce - Skip request middleware bookkeeping when no request middleware is configured, and stop copying serialization adapters when the router adds none.
Server route handlers and route middleware now receive the router's decoded pathname, the same one used for route matching. Characters that would change how the path is read, such as %2F, %3F, and %23, stay encoded.
Updated dependencies [d6ba115]:
Updated dependencies \[`94d6d8e`]:
#7588 94d6d8e - Reduce per-request work in Start: getNormalizedURL reads a URL input without cloning it, and runWithStartContext returns the callback's own result instead of wrapping it in a promise, so a synchronous throw from the callback now propagates synchronously.
Updated dependencies [94d6d8e]:
#8297 488d046 - Update seroval and seroval-plugins from 1.6.2 to 1.6.7. This picks up the typed array length guard, the maxBase64Length and compactArrayBufferViews options, and the isStream export.
Updated dependencies [488d046, 76a7c0b]:
c5ad329]:
Updated dependencies [ edf0e16 , 2f20c00 , 28a5e45 , 08eff50 , 216c0c4 , 2f91503 , f0b5eda , 50eafca , 0497cae , 0caf6b9 , ee28348 , c18e690 ]:
Fix @tanstack/react-start/server imports inside React Server Components by adding a react-server export condition that resolves to the request/response APIs without pulling in the SSR renderer entrypoints. (#7180)
This fixes RSC routes that call createServerFn loaders and read request headers in dev with @vitejs/plugin-rsc enabled.
Updated dependencies \[`3e016ac`]:
3e016ac]:
#8204 cbbfbe3 - Stream large deferred SSR hydration payloads through a backpressure-aware router transport, fail known setup errors before response creation, and close cancelled or expired transforms safely.
Start now cancels discarded middleware and HEAD response bodies, including plain streams and derived branches.
Server-function raw streams share one ordered response. Arbitrary or sequential consumption can require potentially unbounded buffering of unread data on the client. Cancelling one raw stream discards it locally, while aborting the whole call cancels the response and server work. Consume streams concurrently, cancel unused streams promptly, or use separate calls when independent backpressure is required. A raw stream that exceeds its unread-byte limit now fails alone; sibling streams and the JSON result keep flowing.
The JSON wire shape of a RawStream server-function argument changed. Clients and servers must run matching versions for requests that pass a RawStream.
The frame-protocol constants (FRAME_TYPE_*, MAX_FRAME_PAYLOAD_SIZE, MAX_FRAMED_STREAMS) moved from the @tanstack/start-client-core root to the @tanstack/start-client-core/client-rpc subpath.
Router requests whose Accept header allows neither text/html nor */* now receive 406 Not Acceptable instead of 500.
Framework adapters share the body <Scripts> composition (getSsrBodyScriptParts, composeSsrBodyScripts) and the eager HTML response wrapper (renderSsrHtmlResponse) from @tanstack/router-core.
Solid SSR now emits one document type and renders late lazy errors through route boundaries. A Solid <Await> without a fallback no longer holds the streamed shell; it renders inside the nearest <Suspense> boundary like React and Vue, and now renders falsy resolved values.
Static server functions decode cached RawStream values with the client deserializer plugins.
SSR Query integrations now keep request cleanup and stream ownership aligned with the router lifecycle.
Updated dependencies [cbbfbe3]:
d76a332, b747fb8, 6cfb1e8, 700a714, 700a714, cb8749e, 7e349c3, 9b2adaf, 873c830, 7e349c3, 634da91, e9396c9, 634da91, f151ab0, bc57fa3, 9872d2a, 9b2adaf, d76a332, 634da91, 634da91, 7e349c3, 9448caa, e9396c9, 700a714, 634da91, 634da91]:
d521abd]:
a581680]:
Updated dependencies \[`3e016ac`]:
3e016ac]:
3e016ac]:
8c43c71]:
@tanstack/router-plugin@1.168.34
@tanstack/router-plugin@1.168.33
105d056]:
Updated dependencies \[`3e016ac`]:
3e016ac]:
b0817f5]:
Updated dependencies \[`3e016ac`]:
3e016ac]:
0e2c900]:
Updated dependencies \[`5d3785d`, `63d2cc9`]:
51138a8]:
51138a8]:
51138a8]:
812792f]:
Updated dependencies \[`4c89b15`, `cf6ab17`, `0fdf9ff`, `bdaf73a`]:
31882c7]:
Updated dependencies \[`3e016ac`]:
3e016ac]:
7e93431]:
95dec51]:
d3f20fb]:
Updated dependencies \[`5d3785d`, `63d2cc9`]:
51138a8]:
ea3a665]:
ea3a665]:
ea3a665]:
6355bb7]:
Updated dependencies \[`4c89b15`, `cf6ab17`, `bdaf73a`]:
51138a8]:
migrate createStore > createAtom for simpler API (#7150)
Updated dependencies [459057c]:
Updated dependencies \[`31882c7`]:
31882c7]:
c59788c]:
ea3a665]:
b2908c6]:
b2908c6]:
b2908c6]:
Updated dependencies \[`7e93431`]:
7e93431]:
45c4ad8]:
45c4ad8]:
Updated dependencies \[`ea3a665`]:
ea3a665]:
51138a8]:
b2908c6]:
Updated dependencies \[`44a8c3e`, `5253e70`]:
9cac62a]:
45c4ad8]:
Updated dependencies \[`ea3a665`]:
ea3a665]:
b2908c6]:
f920527]:
Updated dependencies \[`84db4a8`, `9cac62a`, `6aefb33`]:
45c4ad8]:
Updated dependencies \[`b2908c6`]:
b2908c6]:
b29d64d]:
Updated dependencies \[`45c4ad8`]:
45c4ad8]:
4b9ed6c]:
Updated dependencies [`f7e9c5e`]:
f7e9c5e]:
Updated dependencies [`796406d`]:
796406d]:
@tanstack/react-start-client@1.166.24
One column per quarter.