Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
3670 commits
Select commit Hold shift + click to select a range
9da0af7
fix(start-plugin-core): start the route-set evidence empty with each …
Sheraff Nov 22, 2026
eb140e1
fix(router-plugin): a retired generator's late run prints no warning;…
Sheraff Nov 22, 2026
e2d30f8
test: wait on what a watch session hands over, and give GC a time bou…
Sheraff Nov 22, 2026
570daaa
fix(router-plugin): each plugin instance compiles only its own split ids
Sheraff Nov 23, 2026
928b9d2
test(react-start-rsc): wait for the route-set reload before the next …
Sheraff Nov 23, 2026
120921c
docs(compiler-test-utils): list the hydration mismatch of a save righ…
Sheraff Nov 23, 2026
b73eaf1
test(router-plugin): openRouteHmrPage takes more route trees, one rou…
Sheraff Nov 23, 2026
0d22de4
fix(router-core): route HMR updates every router that holds the edite…
Sheraff Nov 23, 2026
f7eaa75
fix(router-plugin): a split chunk copies a route file's @refresh comm…
Sheraff Nov 23, 2026
acf121d
docs: route HMR records per file, the reload mark, @refresh copies (S…
Sheraff Nov 23, 2026
1384059
fix(solid-router): a root route that renders the document marks the r…
Sheraff Nov 23, 2026
9a53970
fix(router-plugin): copy @refresh comments of the route's options; ke…
Sheraff Nov 23, 2026
facf22f
test: route HMR review rows (two trees on Rsbuild, lazy file after a …
Sheraff Nov 23, 2026
0d24870
fix(router-core): a lazy route component whose hot import failed stay…
Sheraff Nov 23, 2026
feb4a92
fix(router-core): route HMR's dev-only additions leave no trace in un…
Sheraff Nov 23, 2026
ab4902e
fix(router-plugin): a @refresh comment on an `import type` statement …
Sheraff Nov 23, 2026
639ffee
fix(router-core): a lazy route file's owner is the route that loaded …
Sheraff Nov 23, 2026
59def6f
docs: route HMR review round 1 (SPEC J3.3, KNOWN-BUGS, changeset)
Sheraff Nov 23, 2026
102e169
docs(compiler-test-utils): solid-refresh webpack mode keeps no regist…
Sheraff Nov 23, 2026
ff0ef3e
docs(compiler-test-utils): link the solid-refresh first-evaluation re…
Sheraff Nov 23, 2026
8f3e286
fix(router-core): the waiting preload of a lazy wrapper is the slot's…
Sheraff Nov 23, 2026
991867d
fix(router-core): route HMR skips a router that never read its route …
Sheraff Nov 23, 2026
15f9611
test(router-plugin): sort the two-routers row's imports
Sheraff Nov 23, 2026
394772f
feat(router-utils): one dead-code removal at every level, on one decl…
Sheraff Nov 23, 2026
57f977f
docs(compiler-test-utils): the removal rule's contract and its limits
Sheraff Nov 23, 2026
e5895d8
chore: changeset for the one dead-code removal
Sheraff Nov 23, 2026
60ec53a
fix(router-utils): follow an alias chain of any length, and a reopene…
Sheraff Nov 23, 2026
22c5d76
test(start-plugin-core): a declare before a live definition, on Rsbuild
Sheraff Nov 23, 2026
6111a26
docs(compiler-test-utils): review round 1 of the removal's limits
Sheraff Nov 23, 2026
3ae9e8f
docs(compiler-test-utils): two wording fixes from the round-1 re-checks
Sheraff Nov 23, 2026
63f1818
feat(start-plugin-core): one node_modules policy: markers in every pa…
Sheraff Nov 23, 2026
204d051
feat(start-plugin-core): crawl Start packages through workspace packa…
Sheraff Nov 23, 2026
e36d445
feat(start): mark the public server entries server-only
Sheraff Nov 23, 2026
ef76e3c
fix(start-plugin-core): ground a module only Rsbuild's RSC client ref…
Sheraff Nov 23, 2026
40d2287
feat(start-plugin-core): a bare import of a marked module is a violat…
Sheraff Nov 23, 2026
15f4b4b
test(react-start-rsc): conditional exports must re-export one definin…
Sheraff Nov 23, 2026
bfffcb7
test(start-plugin-core): what Vite bundles for the server from the cr…
Sheraff Nov 23, 2026
a3167f6
docs: the node_modules policy in the guides, SPEC J4.16/J6.1/J6.10, K…
Sheraff Nov 23, 2026
db805ed
fix(start-plugin-core): report a served mock at importers the grounde…
Sheraff Nov 23, 2026
213ce9b
fix(start-plugin-core): the no-text dependency hook takes dependency …
Sheraff Nov 23, 2026
46b9af2
fix(start-plugin-core): a bare asset-query import of a marked file ru…
Sheraff Nov 23, 2026
1d97f4f
test(react-start-rsc): the RSC reach walk enters packages that declar…
Sheraff Nov 23, 2026
26dcfd8
refactor(start-plugin-core): read an ordinary package's modules by th…
Sheraff Nov 23, 2026
611dc11
test(start-plugin-core): a Start package's namespace escape, the pers…
Sheraff Nov 23, 2026
f3049c5
fix(start-plugin-core): append D-c's Rspack rule after every other rule
Sheraff Nov 23, 2026
1dcc4fe
fix(start-plugin-core): a component Rsbuild's RSC client references h…
Sheraff Nov 23, 2026
146e301
fix(start-plugin-core): D-c holds for a marked file its name denies too
Sheraff Nov 23, 2026
8b832c7
fix(start-plugin-core): Vite's no-text filter matches a hoisted exemp…
Sheraff Nov 23, 2026
2de4763
fix(start-plugin-core): the unreached-package warning compares packag…
Sheraff Nov 23, 2026
eb51eda
fix(start-plugin-core): locate a package's import of a marked package…
Sheraff Nov 23, 2026
8623e3f
fix(start-plugin-core): one set of Start names for declarations and t…
Sheraff Nov 23, 2026
f8e9a84
fix(start-plugin-core): a conflict report names a package's plain imp…
Sheraff Nov 23, 2026
4015ded
fix(start-plugin-core): the RSC not-provided error gives the conditio…
Sheraff Nov 23, 2026
5385cd4
refactor: one DEPENDENCY_ID_RE, shared by the router plugin's and Sta…
Sheraff Nov 23, 2026
e57c923
fix(start-plugin-core): an Rsbuild build restored from the persistent…
Sheraff Nov 23, 2026
b0b5870
test(start-plugin-core): the server entry behind a package barrel in …
Sheraff Nov 23, 2026
31e72c2
fix(start-plugin-core): a module's warning records are its latest com…
Sheraff Nov 23, 2026
0d0bfab
fix(start-plugin-core): Vite's dependency prefilter lets through ever…
Sheraff Nov 23, 2026
c374434
fix(start-plugin-core): Vite's dependency prefilter lets every script…
Sheraff Nov 23, 2026
e9803db
fix(start-plugin-core): Rsbuild's package warning reads canonical pat…
Sheraff Nov 23, 2026
dad2f5a
fix(start-plugin-core): Rsbuild's warnings count a module a federatio…
Sheraff Nov 23, 2026
c8ed3d4
refactor(router-utils): a diagnostic sink may leave warnings to its host
Sheraff Nov 24, 2026
38f150e
fix(start-plugin-core): Rsbuild's generated modules are as current as…
Sheraff Nov 24, 2026
1b3e38c
fix(start-plugin-core): Rsbuild's module records, registry and warnin…
Sheraff Nov 24, 2026
ff0a164
fix(start-plugin-core): a worker's warning on Rsbuild no longer silen…
Sheraff Nov 24, 2026
12ffa50
test(start-plugin-core): Rsbuild build --watch with RSC drops a serve…
Sheraff Nov 24, 2026
5732ca9
docs(start-plugin-core): the Rsbuild host's four rules, known limits …
Sheraff Nov 24, 2026
a6ba68f
fix(start-plugin-core): Rsbuild checks the Start manifest module in e…
Sheraff Nov 24, 2026
f942e19
fix(start-plugin-core): Rsbuild's warnings are on a compilation at it…
Sheraff Nov 24, 2026
ba664fe
fix(start-plugin-core): Rsbuild indexes a worker's restored modules i…
Sheraff Nov 24, 2026
d2688a5
feat(router-utils): one walk of moved code on the language's table; t…
Sheraff Nov 24, 2026
3607f56
fix(start-plugin-core): a hoisted server fn reads what it takes from …
Sheraff Nov 24, 2026
3dcca0e
fix(start-plugin-core): Hydrate validates its children on the shared …
Sheraff Nov 24, 2026
b4e0718
feat(start-plugin-core): Hydrate passes a reassigned local by value w…
Sheraff Nov 24, 2026
61eb195
fix(router-utils): a Solid ref={x} counts as a possible assignment of…
Sheraff Nov 24, 2026
bdc5af5
docs(compiler-test-utils): hotspot 5's known limits, the moved-code w…
Sheraff Nov 24, 2026
762fda9
docs(start): deferred hydration lists the arguments refusal, React's …
Sheraff Nov 24, 2026
553d870
style(start-plugin-core): sorted imports
Sheraff Nov 24, 2026
c789d42
perf(router-utils): isReassigned asks without building the filtered list
Sheraff Nov 24, 2026
c26286e
fix(router-utils): a generator called in place runs its parameters at…
Sheraff Nov 24, 2026
c54a793
fix(start-plugin-core): 3a accounts for a var's initialisers and refu…
Sheraff Nov 24, 2026
e9132e6
fix(router-utils): a Solid ref on a callback let assigns only where a…
Sheraff Nov 24, 2026
9d86865
docs(compiler-test-utils): local var re-declaration limit; router-uti…
Sheraff Nov 24, 2026
991b790
fix(start-plugin-core): a handler passed by name that the module reas…
Sheraff Nov 24, 2026
473e266
docs(start): top-level setup statements stay in client code
Sheraff Nov 24, 2026
a331b3e
fix(start-plugin-core): Vite dev's package warning names the pre-bund…
Sheraff Nov 24, 2026
21226e3
fix(start-plugin-core): an installed package's module gets no advice …
Sheraff Nov 24, 2026
63d61f8
fix(start-plugin-core): start-server-param says what is visible and w…
Sheraff Nov 24, 2026
1273c10
fix(router-plugin): one owner environment per router warning; route-u…
Sheraff Nov 24, 2026
1189781
fix(router-plugin): exported-not-split points at the export and says …
Sheraff Nov 24, 2026
cee1d21
fix(start-plugin-core): Hydrate context refusals point at the use
Sheraff Nov 24, 2026
2c9746e
fix(router-generator): configuration errors throw once, naming the op…
Sheraff Nov 24, 2026
235edb6
fix(router-utils): an internal compiler error reaches the user as one…
Sheraff Nov 24, 2026
8a20ace
fix(start-plugin-core): one tag rule, one unknown-id text, and the sm…
Sheraff Nov 24, 2026
d8bd931
test(start-plugin-core): the onViolation false migration warning, and…
Sheraff Nov 24, 2026
1abd1ff
docs(changeset): the diagnostics spike's user-visible changes
Sheraff Nov 24, 2026
f57376f
fix: lint, a type of the onViolation false row, the spread text in a …
Sheraff Nov 24, 2026
f5a4e1e
fix(router-plugin): route-unrecognized's removal clause reads without…
Sheraff Nov 24, 2026
6bd46bd
fix(router-plugin): split-claimed stays the server environment's own …
Sheraff Nov 24, 2026
b8bf559
fix(start-plugin-core): the SSR environment's compile of a client pre…
Sheraff Nov 24, 2026
b727256
fix(start-plugin-core): a Vite pre-bundle's findings belong to the mo…
Sheraff Nov 24, 2026
3fced5f
fix(router-plugin): no split-claimed warning; exported names once; op…
Sheraff Nov 24, 2026
278fb0c
fix(router-utils): an internal compiler error carries its detail once
Sheraff Nov 24, 2026
69af8c4
fix(router-generator): read errors stay read errors; a non-object con…
Sheraff Nov 24, 2026
ea4bf10
docs(changeset): pre-bundle ownership, split-claimed, the spread wording
Sheraff Nov 24, 2026
5b6eab3
test(start-plugin-core): the wrapped-root row counts per channel; the…
Sheraff Nov 24, 2026
5b71af9
perf(react-start-rsc): the RSC client's refusals are compact in produ…
Sheraff Nov 24, 2026
7d8c296
docs(changeset): the RSC client's errors
Sheraff Nov 24, 2026
5c568e1
fix(start-plugin-core): a pre-bundle's attribution needs the optimize…
Sheraff Nov 24, 2026
867ed88
docs(start): the setup-statement example runs in the browser as it says
Sheraff Nov 24, 2026
c26246e
docs(changeset): pre-bundles edited first, workspace pre-bundles
Sheraff Nov 24, 2026
fedb750
test(start-plugin-core): an edited pre-bundle names no package; diagn…
Sheraff Nov 24, 2026
b3c6509
fix(start-plugin-core,router-plugin): server code passed by a name th…
Sheraff Nov 24, 2026
16b64d2
style(router-plugin): sort the router planner's type imports
Sheraff Nov 24, 2026
238cf09
perf(router-utils): no mutation model for a server-code name nothing …
Sheraff Nov 24, 2026
f1b94e5
test(start-plugin-core): a reassigned name in an installed Start pack…
Sheraff Nov 24, 2026
8ff908d
fix(router-utils,start-plugin-core,router-plugin): reassigned server …
Sheraff Nov 24, 2026
c3e95e4
docs: reassigned server code at route option forms, the client-read e…
Sheraff Nov 24, 2026
8b2b81e
fix(router-utils,router-plugin): the assignment is the write's smalle…
Sheraff Nov 24, 2026
fb15d0d
test(start-plugin-core): no escaped backticks in row titles and comments
Sheraff Nov 24, 2026
aa9ffaa
fix(router-utils,router-plugin): a function in a guard's test reads f…
Sheraff Nov 24, 2026
bd1e208
fix(router-utils,router-plugin): a guard is a presence or type check …
Sheraff Nov 25, 2026
1c09b92
fix(router-utils): presence checks through parentheses; a switch guar…
Sheraff Nov 25, 2026
0a0a9fd
docs(compiler-test-utils): presence checks written as switch cases build
Sheraff Nov 25, 2026
4f8d186
docs(compiler-test-utils): switch guards in J4.5; the handler-only ru…
Sheraff Nov 25, 2026
23c0b6c
fix(router-generator): one generation record, installed after a batch…
Sheraff Nov 25, 2026
2382be4
fix(router-generator): generation record review fixes
Sheraff Nov 25, 2026
401fd4e
fix(router-utils): every type export spelling is erased text for prov…
Sheraff Nov 25, 2026
f57f5a3
fix(router-utils): Tier 0 reads type-only exports from the declaratio…
Sheraff Nov 25, 2026
60f106f
fix(router-utils): exported declarations get the table's units; the c…
Sheraff Nov 25, 2026
2c5d3f7
fix(router-utils): a license between declarators stays when the list …
Sheraff Nov 25, 2026
0bb443d
refactor(router-utils): a type-space reference is in a type position …
Sheraff Nov 25, 2026
dfb0089
test(router-plugin): a split chunk reads an exported ambient enum the…
Sheraff Nov 25, 2026
669f488
fix(router-utils): export default of a type, and exported overload si…
Sheraff Nov 25, 2026
b270584
fix(router-utils): a declarator list the splitter moves whole keeps i…
Sheraff Nov 25, 2026
4e987fc
fix(router-utils): a declare global holding a value is copied into de…
Sheraff Nov 25, 2026
3d435e5
refactor(router-utils): more export readers ask the declaration table…
Sheraff Nov 25, 2026
4231c8b
fix(router-utils): an overload signature's types are erased text howe…
Sheraff Nov 25, 2026
05fe3a0
docs(compiler-test-utils): KNOWN-BUGS: a route file's upkeep is stamp…
Sheraff Nov 25, 2026
7f2783a
test(router-utils): settlement step 0 core rows: a check that waits w…
Sheraff Nov 25, 2026
3d9a321
test(start-plugin-core): settlement step 0 rows for Vite dev, Vite wa…
Sheraff Nov 25, 2026
7f205bd
test(compiler-test-utils): the cache-equivalence run
Sheraff Nov 25, 2026
5f3f410
test: the writeBundle-failure row is green on head; the equivalence r…
Sheraff Nov 25, 2026
4cccd75
test(start-plugin-core): the watch-build settlement rows split into f…
Sheraff Nov 25, 2026
7574277
test(compiler-test-utils): the cache-equivalence run's known differences
Sheraff Nov 25, 2026
ea63667
test(compiler-test-utils): rsbuild/dev-checkout's caches-off stats ch…
Sheraff Nov 25, 2026
18819de
fix(router-utils): the plans and facts cache knobs keep their entries…
Sheraff Nov 25, 2026
4debb0a
test(compiler-test-utils): the cache-equivalence run fails on any dif…
Sheraff Nov 25, 2026
fcb61e3
test(router-utils): settlement step 0 core rows observe rebuilds and …
Sheraff Nov 25, 2026
0bcb8d4
test(start-plugin-core): settlement step 0 rows after review
Sheraff Nov 25, 2026
5a2c01a
fix(router-utils): the targets cache knob keeps the facts a file last…
Sheraff Nov 25, 2026
ec3c445
test(compiler-test-utils): the equivalence run fails on a run with no…
Sheraff Nov 25, 2026
7d96e1d
test(router-utils): the cache knobs reach the same importers; the com…
Sheraff Nov 25, 2026
4695bff
test(start-plugin-core): the two-outputs row holds inside the transfo…
Sheraff Nov 25, 2026
1d6300f
test(start-plugin-core): the two-outputs row overlaps without a hot u…
Sheraff Nov 25, 2026
ba980a3
fix(compiler-test-utils): a diagnostic names a file by its whole path…
Sheraff Nov 25, 2026
de664e2
fix(compiler-test-utils): a tool's summary repeats each compiler's la…
Sheraff Nov 25, 2026
d134dc0
fix(compiler-test-utils): a pin fails when anything but its assertion…
Sheraff Nov 25, 2026
81b09de
fix(compiler-test-utils): one bound for an edit's wait; pages that fa…
Sheraff Nov 25, 2026
6c456de
fix(compiler-test-utils): builds own NODE_ENV for their whole run; th…
Sheraff Nov 25, 2026
29278be
fix(compiler-test-utils): only a module's top-level binding excuses a…
Sheraff Nov 25, 2026
8a934c5
chore(compiler-test-utils): yuku is a runtime dependency of the harness
Sheraff Nov 25, 2026
e722a50
test(router-plugin): the perf guard runs in a project of its own
Sheraff Nov 25, 2026
11ea737
fix(compiler-test-utils): the bundler-dropped-binding excuse follows …
Sheraff Nov 25, 2026
08b932d
fix(compiler-test-utils): the matcher reads the spellings tools print…
Sheraff Nov 25, 2026
1acd9a4
fix(compiler-test-utils): only Rsbuild's whole status line after a fa…
Sheraff Nov 25, 2026
9ff7f29
fix(compiler-test-utils): an answer read after the deadline is a timeout
Sheraff Nov 25, 2026
f54b47c
fix(compiler-test-utils): reads in code run at load are top-level rea…
Sheraff Nov 25, 2026
344fa21
fix(compiler-test-utils): one owner of NODE_ENV for every write, with…
Sheraff Nov 25, 2026
cda334b
fix(compiler-test-utils): webpack's natural module ids lay factories …
Sheraff Nov 25, 2026
dd23b4f
fix(compiler-test-utils): one rule for when a NODE_ENV hold starts
Sheraff Nov 25, 2026
8757514
fix(compiler-test-utils): a code frame's source names no other file; …
Sheraff Nov 25, 2026
3eb87c7
fix(compiler-test-utils): a live free read needs a module's top-level…
Sheraff Nov 25, 2026
cac2a9b
fix(compiler-test-utils): NODE_ENV holds by one predicate and one tra…
Sheraff Nov 25, 2026
5865e92
fix(compiler-test-utils): the matcher reads tools' locations, code fr…
Sheraff Nov 25, 2026
fc8d56c
fix(compiler-test-utils): reachability decides by what runs: hoisted …
Sheraff Nov 25, 2026
a55bf03
fix(compiler-test-utils): one path reading for both sides of the matcher
Sheraff Nov 25, 2026
960e972
fix(compiler-test-utils): a position asked in no file reads all of th…
Sheraff Nov 25, 2026
93fe52a
fix(compiler-test-utils): the functions declared in dead code that ru…
Sheraff Nov 25, 2026
757df93
fix(compiler-test-utils): fields read by the text's path reader, and …
Sheraff Nov 25, 2026
a2bebea
fix(compiler-test-utils): reachability built lazily and in linear tim…
Sheraff Nov 25, 2026
97175c1
fix(compiler-test-utils): one `#` rule: a fragment in a URL, part of …
Sheraff Nov 25, 2026
b616673
docs(compiler-test-utils): the fragment limit names Vite's module id too
Sheraff Nov 25, 2026
f267875
feat(router-utils): settleModule: a request's settlement and current(…
Sheraff Nov 25, 2026
856a5a3
refactor(start-plugin-core): the session settles; the registry and Rs…
Sheraff Nov 25, 2026
550f90d
refactor(router-plugin): a derived id of a file no longer a route mod…
Sheraff Nov 25, 2026
3f6fd13
docs(compiler-test-utils): a dependency whose text stops naming Start…
Sheraff Nov 25, 2026
c286a5b
fix(router-utils): current() is stamped where the core takes the answ…
Sheraff Nov 25, 2026
48235d4
fix(router-plugin): a split id of a file no longer a route module is …
Sheraff Nov 25, 2026
ef36c31
fix(start-plugin-core): every Rsbuild record inside the request reads…
Sheraff Nov 25, 2026
d34d556
docs(compiler-test-utils): an exhausted compile can commit after the …
Sheraff Nov 25, 2026
1ef6f4f
fix(router-utils): a published compile leaves flight; a loader gets n…
Sheraff Nov 25, 2026
2c011f7
docs(compiler-test-utils): the exhausted compile's write lasts until …
Sheraff Nov 25, 2026
d354bff
fix(router-utils,start-plugin-core): import protection decides on the…
Sheraff Nov 25, 2026
d01dd0b
fix(start-plugin-core): bare imports decided in the bundler's graph; …
Sheraff Nov 25, 2026
ad36647
fix(start-plugin-core): uncompiled importers judged by what the build…
Sheraff Nov 25, 2026
96954be
fix(start-plugin-core): plugin-added bare imports, Rsbuild pruned mar…
Sheraff Nov 25, 2026
95d0fa7
fix(start-plugin-core): import protection reports only what the final…
Sheraff Nov 25, 2026
a3280b7
fix(start-plugin-core): import protection decides a mock's evaluation…
Sheraff Nov 25, 2026
a0f6fcc
fix(start-plugin-core): import protection's `import type` advice and …
Sheraff Nov 25, 2026
dbbf595
refactor(router-utils): emit prototype — one statement rule, boundary…
Sheraff Nov 25, 2026
f7444e9
fix(router-utils): emit review fixes — pragma comment value, values o…
Sheraff Nov 25, 2026
943f697
perf(router-utils): test a recipe's text for CR, U+2028 and U+2029 wi…
Sheraff Nov 25, 2026
ca9b4f2
fix(router-utils): emit re-check fixes — pragma value on its line and…
Sheraff Nov 25, 2026
4a9b78e
fix(router-utils): copy a comment holding a JSX pragma verbatim, neve…
Sheraff Nov 25, 2026
ee588f4
fix(router-utils): derived headers keep pragma comments and directive…
Sheraff Nov 25, 2026
902f7d3
docs(compiler-test-utils): two JSX pragma limits that predate the emi…
Sheraff Nov 25, 2026
df4d9a3
refactor(router-plugin): one per-module ladder, RouterCompiler.transf…
Sheraff Nov 25, 2026
db409dd
test(router-plugin): R1-20 compares the asset's text exactly and chec…
Sheraff Nov 25, 2026
904171a
chore: bump yuku to 0.29.0
Sheraff Nov 25, 2026
a93ae22
fix(compiler-test-utils): a source the parser rejects gives no eviden…
Sheraff Nov 25, 2026
40a4b03
fix(start-plugin-core): an undeclared package's forwards are read fro…
Sheraff Nov 25, 2026
34768d7
docs(router-utils): an extensionless virtual module parses as TypeScr…
Sheraff Nov 25, 2026
1aed99f
refactor(start-plugin-core): session.transform behind Vite's main tra…
Sheraff Nov 25, 2026
5c7f9a6
fix(start-plugin-core): settlement step 2 review fixes
Sheraff Nov 25, 2026
c76fd0d
docs(start-plugin-core): retire is not for failed answers
Sheraff Nov 26, 2026
79885bb
refactor(start-plugin-core): the Vite late pass and asset load on ses…
Sheraff Nov 26, 2026
599d896
fix(start-plugin-core): settlement step 3 review fixes
Sheraff Nov 26, 2026
bbe0a81
fix(start-plugin-core): a deferred violation lives until its edge is …
Sheraff Nov 26, 2026
f184a99
fix(start-plugin-core): a deferred violation is per edge; no request …
Sheraff Nov 26, 2026
dd28f85
refactor(start-plugin-core): the Rsbuild loader on session.transform,…
Sheraff Nov 26, 2026
14439d8
fix(start-plugin-core): settlement step 4 review fixes
Sheraff Nov 26, 2026
2a5ba1a
perf(start-plugin-core): read Rspack's module type only where it can …
Sheraff Nov 26, 2026
9f86d4a
fix(start-plugin-core): a script new URL() makes an asset keeps its text
Sheraff Nov 26, 2026
a37f460
revert(start-plugin-core): a script new URL() makes an asset is compi…
Sheraff Nov 26, 2026
495ba66
test(compiler-test-utils): free-names linear-time row with headroom f…
Sheraff Nov 26, 2026
61d97e6
feat(router-utils): a type never keeps a value
Sheraff Nov 25, 2026
9876eba
fix(router-utils): a type never keeps a value, review fixes
Sheraff Nov 25, 2026
da78d54
perf(router-utils): read an export's declaration rows only where its …
Sheraff Nov 26, 2026
8470aa4
perf(router-utils): less work where the type rule has nothing to do
Sheraff Nov 26, 2026
77699d0
fix(router-utils): host-generated reads and a declare's imports under…
Sheraff Nov 26, 2026
a3ad975
fix(router-utils): the type rule leaves modules with decorators or an…
Sheraff Nov 26, 2026
083fcca
fix(router-utils): a JSX pragma's whole factory name; decorated abstr…
Sheraff Nov 26, 2026
fa1e69b
refactor(router-utils): one snapshot check, and every eviction moves …
Sheraff Nov 26, 2026
dd61102
fix(router-utils): step 6a review fixes: in-turn refusal, the evictio…
Sheraff Nov 26, 2026
e3915ad
fix(router-utils): step 6a review fixes, round 2: the hit's check is …
Sheraff Nov 26, 2026
e52e366
fix(router-utils,start-plugin-core): a virtual load that threw is no …
Sheraff Nov 26, 2026
c0d8a24
fix(router-utils): a thrown virtual load keeps its entry, without facts
Sheraff Nov 26, 2026
fa51c30
refactor(router-utils): settlement step 6b, the snapshot alone decides
Sheraff Nov 26, 2026
c511439
docs(compiler-test-utils): the slow-writer limit names the watchers t…
Sheraff Nov 26, 2026
8b0cdc1
refactor(start-plugin-core): settlement step 7, the Vite client-build…
Sheraff Nov 26, 2026
d8afe14
fix(start-plugin-core): settlement step 7 review fixes, no record nam…
Sheraff Nov 26, 2026
bded194
fix(start-plugin-core): settlement step 7, a watch build with skipWri…
Sheraff Nov 26, 2026
6466133
refactor(router-plugin): React route HMR always hoists a component fa…
Sheraff Nov 26, 2026
7a7adca
fix(start-plugin-core): a dynamic marker import is judged at its edge…
Sheraff Nov 26, 2026
1d9c790
refactor(start-plugin-core): a dynamic marker import is an ordinary i…
Sheraff Nov 26, 2026
57dff07
feat(start-plugin-core): decision 12, Hydrate keeps capture-family ch…
Sheraff Nov 26, 2026
5a82c12
fix(start-plugin-core,router-utils): decision 12 review fixes, one D-…
Sheraff Nov 26, 2026
01df105
docs(compiler-test-utils): a var declared again after a Hydrate bound…
Sheraff Nov 26, 2026
f26bfaa
test(start-plugin-core): expectNotSplit reads the case's own warning,…
Sheraff Nov 26, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
9 changes: 9 additions & 0 deletions .changeset/bundler-peer-floors.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
---
'@tanstack/start-plugin-core': minor
'@tanstack/react-start': minor
'@tanstack/solid-start': minor
'@tanstack/vue-start': minor
'@tanstack/react-start-rsc': minor
---

Raise Start's bundler peer ranges to the lowest versions Start's test suites pass on: `vite` `>=8.1.0` (8.0.x fails Start's dev and build suites), `@rsbuild/core` `^2.2.13`, the first Rsbuild that requires Rspack 2.2.9, and `@rspack/core` `>=2.2.9` for `@tanstack/react-start-rsc`. Earlier Rspack 2 releases leave dev builds stuck after a rebuild, fail RSC builds, and can report a stale client build after a server component's CSS edit, so the page keeps the old styles (web-infra-dev/rspack#15865). The router plugin's ranges are unchanged: it still supports Rsbuild 1.
18 changes: 18 additions & 0 deletions .changeset/chokidar-6-node-22-22.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
---
'@tanstack/router-cli': minor
'@tanstack/router-generator': minor
'@tanstack/router-plugin': minor
'@tanstack/router-vite-plugin': minor
'@tanstack/start-plugin-core': minor
'@tanstack/react-start': minor
'@tanstack/react-start-rsc': minor
'@tanstack/solid-start': minor
'@tanstack/vue-start': minor
---

Require Node `>=22.22.0`. Before this, `@tanstack/router-cli`, `@tanstack/router-generator` and `@tanstack/router-plugin` required `^20.19.0 || >=22.12.0`, `@tanstack/router-vite-plugin` `>=20.19`, and the Start packages `>=22.12.0`. The route generator and the CLI now depend on chokidar 6, which requires Node 22.22. Node versions below 22.22.0 are no longer supported, and Yarn 1 refuses to install these packages on them.

chokidar 6 fixes two cases where the route generator's file watcher could miss changes. That watcher runs under `tsr watch`, Rspack and webpack watch mode, Rsbuild dev and `vite build --watch`, but not Vite dev. Both were tested on Linux:

- A route file saved again within 50 ms of the previous save, for example by a format-on-save or a script, now reaches the route tree. Before, the route could keep the first save's content. A route file that is a symlink can still miss the second save.
- A routes directory that is deleted and created again, for example by a branch switch, is watched again. Before, route changes could stop reaching the route tree until the watcher was restarted.
13 changes: 13 additions & 0 deletions .changeset/compiler-performance.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
---
'@tanstack/router-plugin': patch
'@tanstack/start-plugin-core': patch
'@tanstack/router-generator': patch
'@tanstack/router-utils': patch
---

Faster builds and dev servers. On 333- and 1,485-route React and Solid apps, builds are 2.2–4.8× faster and dev cold start is 2.2–4.9× faster; Start builds end with 3–11× less heap.

- Production builds release an environment's compiler state as soon as that environment is built, so a build of several environments (client, SSR, then a server or RSC environment) no longer grows its heap with each one (#8794).
- A long-running dev server or `tsr watch` keeps a digest of each route file instead of its text, and an edit that leaves the route tree unchanged no longer goes over every route file.
- On Vite, dependency modules (`node_modules`) no longer pass through the router plugin's transform: Vite and Rolldown leave them out natively, as the webpack and Rspack loader rule does. A build no longer hands every dependency's source to the plugin to leave it unchanged (LibrePhotos: 9,763 of 10,950 calls, for 107 route files), which lowers build peak memory.
- On Rsbuild, Start's client manifest (route preloads and stylesheets), computed after every client compilation, no longer reads the module graph of the entry chunk and stops reading a chunk's modules once it has found every chunk it can import: 3–4× faster per compilation. In dev, an edit shows 37–40% sooner on a 1,485-route app (215–268 ms) and 27–35% sooner on a 338-route app.
23 changes: 23 additions & 0 deletions .changeset/compiler-yuku.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
---
'@tanstack/router-utils': minor
'@tanstack/router-generator': minor
'@tanstack/router-plugin': minor
'@tanstack/router-core': minor
'@tanstack/start-plugin-core': minor
'@tanstack/react-start-rsc': minor
---

The build-time compilers run on one compiler core built on [Yuku](https://github.com/yuku-toolchain/yuku) instead of Babel: route code splitting and route HMR in the router plugin, Start's server functions, environment separation, `<Hydrate>`, RSC CSS and import protection, and the route generator. Each module is compiled once per environment from its original source, with exact source maps.

**Dependencies.** `@babel/*`, `babel-dead-code-elimination`, `ansis` and `diff` are no longer dependencies, and the router plugin no longer depends on `chokidar` directly (the route generator brings it). `@babel/core` no longer comes with the router plugin or Start: if your app runs Babel itself (for example for the React Compiler), add `@babel/core` to your own `devDependencies`.

**New entries:** `@tanstack/router-utils/compiler` (the compiler core), `@tanstack/router-core/tooling` (the router-core helpers the plugins load instead of the router runtime) and `@tanstack/router-plugin/planners` (the route planners TanStack Start uses).

**Removed:**

- `@tanstack/router-utils`: the Babel helpers (`parseAst`, `generateFromAst`, `deadCodeElimination`, `findReferencedIdentifiers`, `stripTypeExports` and the binding helpers of `compiler-helpers`), `logDiff`, `createIdentifier` and `decodeIdentifier`.
- Start's experimental, Babel-typed `compilerTransforms` and `serverFnProviderModuleDirectives` options and the `StartCompilerPlugin`, `StartCompilerImportTransform`, `StartCompilerTransformContext` and `StartCompilerTransformCandidate` types. RSC integrations pass `rsc: { loadCssExpression, providerDirective }` instead.
- `@tanstack/react-start-rsc/plugin/rscCssTransform`: RSC CSS injection runs in Start's compiler.
- `ssrIsProvider` of `TanStackStartCoreOptions`: the Vite plugin derives it from `providerEnvironmentName`, the Rsbuild plugin from `rsc`.

**Router plugin context:** a context passed to the router plugins must come from `createRouterPluginContext()` (`@tanstack/router-plugin/context`), imported in the same module format (ESM or CJS) as the plugins. A hand-built `{ routesByFile: new Map() }`, or a context from the other module format, throws when the plugin is created, with an error naming the factory.
13 changes: 13 additions & 0 deletions .changeset/dead-code-removal.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
---
'@tanstack/router-utils': minor
'@tanstack/start-plugin-core': patch
'@tanstack/router-plugin': patch
---

Dead-code removal is one rule at every level of a module: what only removed code used (a server fn handler on the client, a `createServerOnlyFn` body, a split route option, a type the client erases) leaves with it, from a function's locals, a destructuring pattern, a namespace's members and the top level alike. Code that stays keeps its behaviour, but for the changes listed last.

- **Server code no longer reaches the client through:** a parameter default only server code reads (`make(db = getServerDb())` becomes `make(db = void 0)` on the client; literal defaults stay, `length` doesn't change); a sibling of a destructuring pattern nobody reads (`const { unused, secret } = getServerObj()`); a pattern default beside a rest element; a type alias, interface, namespace of types or `declare` that only removed code names, also through `import A = N.M` (a chain of aliases of any length), `export type { X }` and a reopened namespace's other block.
- **Registrations no longer disappear:** a value and a type of one name are two uses (`const Shape = register(); type Shape = …`), so a type only removed code names doesn't take a value of its name with it; a namespace of types beside a class, `enum` or `const` doesn't take the value either.
- **Code that throws keeps throwing:** a declaration that reads itself while it is initialised (`const { a = a } = o`, `const x = (() => x)()`) stays.
- **A type never keeps a value:** a declaration only types name (an annotation or a cast in code that runs, a type alias, `typeof`, an overload signature, an abstract or `declare` member) leaves with its initializer, client and server alike, so a call that only set it up no longer runs, and a class only types name is removed with its static blocks. An import only the types of code that stays name, directly, through type aliases or through a `declare`, is the host's (`verbatimModuleSyntax` keeps it), while an exported type (`export type`, `export interface`, `export type { X }`) still takes what only it names; a factory a classic JSX pragma names (`@jsx h`, `@jsxFrag`) is a read where JSX is; a module with decorators, or with a `React` of its own, keeps what types name, as before; a `declare` or a type alias nobody names or exports keeps what it names.
- **What changes on the client, by design:** a removed definition takes its own evaluation with it (a getter of a removed name isn't read, a removed default's call doesn't run); a pattern that stays drops its dead positions, so a `null` there no longer throws on the client; a name read only through a direct `eval` can be removed. The limits and their workarounds are listed in the compiler's known bugs.
11 changes: 11 additions & 0 deletions .changeset/dev-servers.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
---
'@tanstack/router-utils': patch
'@tanstack/router-plugin': patch
'@tanstack/start-plugin-core': patch
---

Dev servers:

- Vite: a module that imports a file that doesn't exist yet loads it once the file is created; it kept failing until a restart.
- A Vite dev server without HMR (`server.hmr: false`, as Vitest runs one) tells Start's compiler about file changes: a module whose import became (or stopped being) a server function builder kept its old compile, with the handler's code in the client module, until a restart.
- Vite: deleting a nested `package.json` whose `imports` or `exports` a module resolved through rebuilds that module in the client and in SSR. When the parent package's mapping pointed the import at a server function builder (or away from one), the old compile stayed until a restart.
28 changes: 28 additions & 0 deletions .changeset/diagnostics.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
---
'@tanstack/router-utils': patch
'@tanstack/router-plugin': patch
'@tanstack/router-generator': patch
'@tanstack/start-plugin-core': patch
'@tanstack/react-start-rsc': patch
---

Compiler and route generator messages:

- Files are named relative to the project root, with one position (line and column, from 1) and a `[tanstack-router]` or `[tanstack-start]` prefix, on every host. On Rsbuild, Rspack and webpack the position is the compilation's own location, so the terminal and the error overlay point at it (`File: ./src/fns.ts:3:28`, `WARNING in ./src/routes/index.tsx 2:22`) instead of `:1:1`.
- Invalid `codeSplitGroupings` fail the module at the value, naming the option. Invalid `codeSplittingOptions` fail with one readable error naming each option instead of a raw schema dump.
- Start's refusals say what to write instead, at the right position: a refused server function names its position, or the local it reads, with the fix (`.validator()` and `{ data }`); a builder kept in an object or assigned after its declaration gets the documented fix. Refusals in a Vue single-file component are reported at the SFC's line and column, in builds and on the dev server, on Vite and Rsbuild.
- The client stubs of the RSC helpers no longer recommend a route loader, and their explanation is development-only.
- A plugin that gives a route file different text under different module ids gets a warning.
- Internal checks: a client build fails with an internal compiler error, naming the file and the position, if a client module would hold server code (a server function's handler or validator, a middleware's or an isomorphic function's server implementation, a `createServerOnlyFn` body, a route option `deleteNodes` lists), or if an output would copy part of a module without a change the compiler planned there. These mean a compiler bug: please report them.
- A warning about how a module is written is for whoever can edit it: an installed package's module (`node_modules`) no longer gets advice for its author (a middleware factory's parameter read in `.server()`, an exported or `this`-using route option, a server compile's parse failure), and an error in one names the package to update or report. Warnings that server code reaches the client, import protection and the package warnings stay.
- Vite dev: the warning about a package that uses Start names the package and its manifest, not Vite's pre-bundle (`node_modules/.vite`), and gives a package that declares Start but that the app does not list the right remedy. In a pre-bundle holding several packages, each package a Start call is in gets its own warning (a kit that only imports the router gets none), wherever the app keeps Vite's `cacheDir`. A pre-bundle is installed code there too: no advice for its author, and its errors name the package; a workspace package the app pre-bundles keeps its author's advice. A pre-bundle another plugin edits before Start's transform names no package.
- `start-server-param` says what the browser can see and where secrets go, at the parameter: "Only server code reads `descriptor`. Arguments at calls included in client code can be visible to the browser. Public labels are fine. Read secrets inside `.server()`."
- A route option whose value the route file exports is reported at the export (the declaration of the first one listed), with how to split it: "`Page` stays in the route module because src/routes/x.tsx exports it. To split it, remove its export, or move it to another module and import it here."
- A route the compiler does not recognise (a wrapped route call, …) is reported once in a Start app, and says only what applies: a root route is not called not code-split, and a wrapped route a build does nothing to (a root or lazy route file without Start) is not reported. In a Start app, every router warning comes from the client's compile of the file.
- A spread of route options is reported as what it may hold: "If the spread holds `ssr`, `server` or `headers`, they stay in client code".
- A route option whose value is a server function written in place is no longer reported as not code-split: the client splits it (only the server's module keeps it).
- Hydrate's refusals of `this`, `super`, `new.target`, `await`, `yield` and a private name of the enclosing class point at the use, not the `<Hydrate` tag.
- An invalid generator option (`quoteStyle`, `target`, …) fails with one error naming the option and `tsr.config.json` when it is a source, instead of a raw schema dump; an invalid `tsr.config.json` names the file. The `experimental.enableCodeSplitting` and route group errors are printed once.
- An internal compiler error reaches the user as one: "Internal compiler error in src/x.tsx. Please report it at https://github.com/TanStack/router/issues with this file and the detail below.", the detail after it.
- Rsbuild, Rspack and webpack print a Start compile message with `[tanstack-start]`; a call by an unknown server function id answers "Server function info not found for <id>. If the page loaded before the server changed, reload it." on every host (Vite dev said "Invalid server function ID"); the import-protection marker conflict names the first marker as `src/x.ts:1:8`; the generator's missing root route names the file to add.
- The RSC client's `<CompositeComponent>` and `RscNodeRenderer` errors are tagged `[tanstack-start]` in development and compact in production.
16 changes: 16 additions & 0 deletions .changeset/hydrate.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
---
'@tanstack/start-plugin-core': patch
---

`<Hydrate>`:

- **Through the app's own re-exports** (`export { Hydrate } from '@tanstack/react-start'`, an imported `Hydrate` exported again, `export *`, a namespace import, chains of these), `<Hydrate>` splits its children like a direct import, in React and Solid, on Vite and Rsbuild; its children's code loaded with the page. A re-export under another name, or one from an installed package, isn't followed.
- **Solid:** children that call `use*()` functions directly are split; the calls run under the boundary's owner, with its context. They failed the build.
- **React:** the hook refusal now covers member calls too: a child calling `React.useId()` or `Route.useLoaderData()` directly fails the build like one calling `useId()`. Move the call into a child component, or use `split={false}`.
- **React:** so does React's `use` written directly in the children, `use(Context)` and `use(promise)` alike (also renamed, or as `React.use`): moved into the split component, `use(Context)` read another context than on the server. The error points at the call, for every hook.
- **New refusals**, where the split children would run on a copy or a snapshot (the build fails at the code; `split={false}` keeps the boundary in place):
- React: a function in the children that reads a `let` the component reassigns, also through a nested `<Hydrate>`. Keep the value in a ref (`useRef`).
- Children that assign a local of the component, or a module-level variable other code of the module also uses. The message names the variable; move it to a module of its own, with a function that assigns it.
- `new.target` in the children, and (Solid) a nested boundary assigning an outer local through `ref`.
- `await` or `yield` directly in the children, and a read of a private name of the class around the boundary (`this.#label`), fail the build with a message instead of a parse error. The deferred hydration guide lists every pattern that fails the build.
- **On the server, a hook call whose value only a `fallback` reads** is removed with the imports only it uses, in every file; outside a route's split component it was kept. A hook that needs the browser (`useState(() => window.innerWidth)`) no longer fails the server render there. A hook that takes an id (`useId`, Solid's `createUniqueId`, or a custom hook that calls one) shifts the ids after it on the server, as with `<ClientOnly>` children: call such a hook in a component inside the boundary.
12 changes: 12 additions & 0 deletions .changeset/import-protection-allow-import.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
---
'@tanstack/start-plugin-core': minor
'@tanstack/react-start': minor
'@tanstack/solid-start': minor
'@tanstack/vue-start': minor
---

Import protection: new `allowImport(info)` option, and `onViolation` only reports.

- `allowImport` runs during the build, before an import is replaced by its mock, in dev and in builds, once per import. Returning `true` gives the import the real module: it is not a violation, nothing is reported, and `onViolation` is not called. `false` or nothing is the normal outcome under `behavior`. It also sees imports that tree-shaking removes later, so use it to decide, not to report, and give stable answers. Its `info` is `onViolation`'s without `trace` and `snippet`.
- `onViolation` runs during the build, after tree-shaking of the importing environment, for imports that survive tree-shaking and were not allowed, and returns nothing. **If you returned `false` to allow an import, move that decision to `allowImport` and return `true`:** returning `false` now does nothing but print a message saying so. It used to silence the report, while a `.server` file stayed mocked and a file with a `server-only` marker shipped for real.
- With RSC, a `'use client'` file allowed from `rsc` is the real module in `ssr` too.
Loading
Loading