NewYour coding agent can read the release notes before it upgrades.Set up the MCP server →
npm
npm, #2171 most downloaded on npm
Modern and scalable routing for React applications
Latest stable
1.169.0
Last release 14 days ago
08 Nov 2026
Ships on a steady schedule
a new release about every 2 weeks
Nearly every release is documented
notes for 60 of the last 60 stable releases
Nothing withdrawn
no release was ever pulled
2 years old
694 releases · first in 2024
Drag across the ruler to compare, or tap a release to open it.
createServerEntry keeps the complete callback, including custom error handling, inside the request context and converts errors that escape it. The bui
f243c61 - TanStack Start is stable. To upgrade from a release candidate, follow Migrate from the Release Candidate.#8694 550f478 - Remove the deprecated .inputValidator() from createServerFn and createMiddleware. Use .validator(), which takes the same validator.
#7588 94d6d8e - Keep streaming a page when request middleware returns a response that reads the page body, such as a copy made through a wrapped global Response, a copy in Bun, or a body piped through a transform. Start now disposes a replaced page stream only when nothing reads it. transferResponseBodyOwnership is removed: return the derived response directly.
#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.
#8696 f243c61 - Require Vite 8 for Vite builds. Vite 7 is no longer supported.
Updated dependencies [94d6d8e, 550f478, 94d6d8e, f3d7ee3, 4104b8e, 94d6d8e, 94d6d8e, 94d6d8e, f243c61, 19524cc]:
Your coding agent can read these notes before it upgrades. Set up the MCP server →
#8855 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.
#8851 d250819 - Require Vite 6 or later: the vite peer range is now >=6.0.0. Vite 5 is no longer supported.
1ba19a0 - fix: webpack and Rspack production builds no longer put the code splitter's "will not be code-split" warning, with the route file's absolute path, into the client bundle when the build process's NODE_ENV isn't production. The bundler's mode decides, and a config without mode counts as production, as it does for webpack and Rspack. The warning still prints in the build output.
#8852 94f36c4 - The esbuild plugin now throws when autoCodeSplitting is enabled, and TanStackRouterCodeSplitterEsbuild throws, instead of silently bundling every route without splitting. Route generation with esbuild is unchanged.
#8856 533ca27 - Remove the undocumented plugin.hmr.style option and the HmrOptions type. Each bundler entry now picks its own HMR runtime: the webpack and Rspack entries already forced 'webpack', and on Vite, 'webpack' broke route HMR.
#8853 13b6256 - Remove internal code-splitter APIs: the codeSplittingOptions.compilerPlugins option, and the root-entry exports unpluginRouterCodeSplitterFactory, getObjectPropertyKeyName, CodeSplitCompilerPlugin, ReferenceRouteCompilerPlugin, ReferenceRouteCompilerPluginContext and VirtualRouteSplitNodeCompilerPluginContext.
#8860 b5e2ac9 - Source maps of split routes now point at the route file. On webpack and Rspack (including Rsbuild), a split component or shared code mapped to the wrong line, because unplugin's loader dropped the router plugin's map; unplugin now requires ^3.5.0, which keeps it. The maps of split and shared modules also name the route file itself instead of its ?tsr-split / ?tsr-shared module id, so debuggers bind breakpoints set in the route file.
#8870 f420d4a - Vite route HMR now writes import.meta.hot.accept( out instead of calling it through a hot alias. Vite only treats a module as a hot boundary when the call is spelled out, so an edit of a route file no framework plugin accepts (a .ts route file, or an app without @vitejs/plugin-react) reloaded the page instead of updating the route in place. With React HMR, a route file that declares its own top-level hot binding no longer fails to compile with Duplicate declaration "hot".
Updated dependencies [446ce1b, ad5b3b7, ff157f0]:
Updated dependencies \[`32a3360`, `689a7c5`]:
#8670 32a3360 - Reference agent skills in other packages by their intent load identifier (@tanstack/<package>#<skill>) instead of relative file links that break once packages are installed.
#8737 647cb73 - Remove the enableRouteGeneration option. Route generation now always runs, so autoCodeSplitting always has the route metadata it needs.
Updated dependencies [32a3360, 689a7c5]:
Updated dependencies \[`18154b1`]:
18154b1]:
Updated dependencies \[`923d98b`]:
923d98b]:
### Patch Changes - #8653 `d66a84b` - fix: a visible() boundary keeps its server HTML when the intersection arrives while React waits to replay the bo
d6ba115]:
Updated dependencies \[`32a3360`, `689a7c5`]:
#8655 e66da18 - Remove redundant string excludes from the reference code-splitter transform filter to avoid unnecessary glob compilation in unplugin bundler adapters.
Updated dependencies [57bd1a9, 94d6d8e]:
Updated dependencies \[`18154b1`]:
18154b1]:
Updated dependencies \[`32a3360`]:
32a3360]:
d6ba115]:
Updated dependencies \[`18154b1`]:
18154b1]:
Updated dependencies \[`d6ba115`]:
d6ba115]:
Updated dependencies \[`94d6d8e`, `550f478`, `94d6d8e`]:
Updated dependencies \[`dfe3dea`, `efc2042`, `efc2042`, `dfe3dea`, `d35aab4`, `e7ab157`, `efc2042`, `663282b`]:
d76a332, b747fb8, 6cfb1e8, 700a714, 700a714, 6387d58, 7e349c3, 9b2adaf, 873c830, 7e349c3, 634da91, e9396c9, 634da91, f151ab0, bc57fa3, 6387d58, 9872d2a, d76a332, 634da91, 634da91, 7e349c3, 9448caa, e9396c9, 700a714, 634da91, 634da91]:
Updated dependencies \[`d521abd`]:
d521abd]:
73bfc15]:
Updated dependencies \[`f5ffd38`, `488d046`, `0c1b5e3`, `3cdd1af`, `76a7c0b`]:
Updated dependencies \[`cecae54`, `0103578`, `ce10dcd`, `84936cc`, `bbd2336`]:
Updated dependencies \[`bc80866`, `e561fa1`, `cbbfbe3`, `a1c8d1a`, `cbbfbe3`, `a0b2ad9`, `1ca361b`]:
3e016ac]:
Updated dependencies [`5d3785d`, `63d2cc9`, `f75cada`]:
Updated dependencies \[`4c89b15`, `cf6ab17`, `0fdf9ff`, `bdaf73a`]:
Updated dependencies \[`0c25a7b`, `31882c7`]:
Updated dependencies \[`7e93431`, `f500760`, `1aafca9`, `aa10b65`]:
Updated dependencies \[`3e016ac`]:
3e016ac]:
51138a8]:
Updated dependencies \[`3e016ac`]:
3e016ac]:
Updated dependencies \[`5d3785d`, `63d2cc9`]:
ea3a665]:
Updated dependencies \[`4c89b15`, `cf6ab17`, `0fdf9ff`, `bdaf73a`]:
Updated dependencies \[`31882c7`, `3848503`]:
b0817f5]:
b2908c6]:
Updated dependencies \[`7e93431`, `f500760`, `1aafca9`, `aa10b65`]:
45c4ad8]:
Nothing published for this version
Updated dependencies \[`51138a8`]:
51138a8]:
51138a8]:
49f6863 - Preserve React component state during HMR when route components are declared with lowercase function names. The development-only React transforms cover split route component groups and unsplit root route component options, including shell, pending, and error components, without changing production output.Updated dependencies \[`44a8c3e`, `c59788c`, `5253e70`]:
78dd1a6]:
Updated dependencies \[`2fbc99f`, `6bede65`]:
e56a677]:
Updated dependencies \[`ea3a665`]:
ea3a665]:
ea3a665]:
e2dd204]:
Updated dependencies \[`2435885`, `84db4a8`, `9cac62a`, `86bf510`, `6aefb33`]:
9809a06]:
Updated dependencies \[`b2908c6`]:
b2908c6]:
b2908c6]:
776d8ef]:
Updated dependencies \[`45c4ad8`]:
45c4ad8]:
Updated dependencies [`ac10815`]:
ac10815]:
Updated dependencies [`301f6ba`, `2cca73c`, `7a83e67`, `76b3d3b`]:
Updated dependencies [`b4cd5af`]:
b4cd5af]:
Updated dependencies [`2f53749`]:
2f53749]:
Updated dependencies [`d1997b6`]:
d1997b6]:
Updated dependencies [`51a97a1`]:
51a97a1]:
Updated dependencies [`5268ba4`]:
5268ba4]:
Updated dependencies [`7df0d02`]:
7df0d02]:
Updated dependencies [`0300f87`, `0300f87`]:
Add deferred Hydrate boundary support for TanStack Start.
Update chokidar to v5. (#7439)
Add deferred Hydrate boundary support for TanStack Start. (#7362)
Hydrate boundaries can now be code-split by the Start compiler, preload their generated client chunks, preserve server-rendered fallback HTML, and replay interaction-triggered events after hydration. The compiler integration now uses a Start-owned compiler plugin for Hydrate virtual modules across Vite and Rsbuild, with dev invalidation for generated virtual modules.
Shared AST utilities used by the router code-splitter and Hydrate virtual modules were moved into @tanstack/router-utils so both pipelines can retain referenced top-level declarations, unwrap local exports, and let dead-code elimination remove unused route module code.
Updated dependencies [5fa9e55]:
Fix route mismatch warnings, HMR route index refresh, and generated route type preferences for duplicate pathless/index routes.
Fix Vite Fast Refresh detection for root routes created with createRootRouteWithContext type arguments.
createRootRouteWithContext type arguments. (#7420)Updated dependencies [`d9cf933`]:
d9cf933]:
### Patch Changes - #8888 `bbf9b75` - Fix broken styling of the embedded TanStackRouterDevtoolsPanel (including inside shadow DOM) by giving the devto
d533f87]:
Updated dependencies [`742941e`]:
742941e]:
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]:
Updated dependencies \[`3e016ac`]:
3e016ac]:
3e016ac]:
8c43c71]:
c5811aa]:
Updated dependencies \[`5d3785d`, `63d2cc9`]:
35e88f0]:
@tanstack/router-plugin@1.168.33
Parse plain TypeScript files without JSX when a filename is available, preventing angle-bracket type assertions from being interpreted as JSX during route and Start import-protection transforms. (#7342)
Updated dependencies [056337e]:
Updated dependencies \[`3e016ac`]:
3e016ac]:
b0817f5]:
Updated dependencies \[`3e016ac`]:
3e016ac]:
4a1e63f]:
Updated dependencies \[`5d3785d`, `63d2cc9`]:
51138a8]:
51138a8]:
51138a8]:
c992495]:
Updated dependencies \[`4c89b15`, `cf6ab17`, `0fdf9ff`, `bdaf73a`]:
31882c7]:
b5c4183]:
Updated dependencies \[`7e93431`]:
7e93431]:
3e016ac]:
95dec51]:
493148b]:
Updated dependencies \[`5d3785d`, `63d2cc9`]:
51138a8]:
ea3a665]:
ea3a665]:
ea3a665]:
a2ad394]:
One column per month.