Repository navigation
Conversation
🚀 Changeset Version Preview1 package(s) bumped directly, 8 bumped as dependents. 🟩 Patch bumps
|
Bundle Size Benchmarks
The following scenarios have bundle-size changes or lack baseline data for comparison:
Current gzip tracks all emitted client JS chunks. Initial gzip tracks only the entry/import graph. Trend sparkline is historical current gzip ending with this PR measurement; lower is better. |
…arations compile test The Vue case type-checked vue-router's source, which needs vue-router's own dependencies installed. Installs that cover only the generator's dependencies don't have them, so the case failed there. The Vue root-components fixtures remain snapshot tests, and the compile test counts every diagnostic again.
…thout nested ternaries
Owner
Author
|
This is an agentic response Raised upstream as TanStack#8833. |
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.
🎯 Changes
AI disclosure: an AI coding agent wrote the code, the tests and this description.
Motivation
isolatedDeclarations, declaration emit needs an explicit type on every declaration that ends up in a.d.tsfile. Tools such as oxc rely on this to emit declarations one file at a time.typeof PostsRoute), androuteTreeitself is exported. So withisolatedDeclarationson,tsc6.0 and 7.0 report TS9010 for every route const and forrouteTree, even though the file starts with// @ts-nocheck.Changes
isolatedDeclarationsoption to the generator, off by default. Turn it on intsr.config.jsonor in the bundler plugin's options, for exampletanstackRouter({ isolatedDeclarations: true }).any. Adding a route file for the path keeps its exact type.disableTypeson, the generated output doesn't change.Tests
routeTree.isolated.snapshot.ts: nested, lazy, lazy-only routes (typed asany), Vue root components (the one new fixture), anddisableTypes, whose output must not change.isolated-declarations.test.tscompiles the nested and lazy snapshots withisolatedDeclarationson. The annotated tree has no errors, the plain tree reports TS9010, and both trees have the same type.pnpm test:eslint,pnpm test:typesandpnpm test:unitfrom the repo root.✅ Checklist
🚀 Release Impact