@tanstack/router-plugin 1.168.24-pre.0 → 1.168.25

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tanstack/router-plugin",
3
- "version": "1.168.24-pre.0",
3
+ "version": "1.168.25",
4
4
  "description": "Modern and scalable routing for React applications",
5
5
  "author": "Tanner Linsley",
6
6
  "license": "MIT",
@@ -106,11 +106,12 @@
106
106
  "chokidar": "^5.0.0",
107
107
  "unplugin": "^3.0.0",
108
108
  "zod": "^4.4.3",
109
- "@tanstack/router-core": "1.171.16-pre.0",
110
- "@tanstack/router-generator": "1.167.22-pre.0",
109
+ "@tanstack/router-core": "1.171.17",
110
+ "@tanstack/router-generator": "1.167.23",
111
111
  "@tanstack/router-utils": "1.162.2"
112
112
  },
113
113
  "devDependencies": {
114
+ "@rsbuild/core": "^2.1.0",
114
115
  "@types/babel__core": "^7.20.5",
115
116
  "@types/babel__template": "^7.4.4",
116
117
  "@types/node": ">=20"
@@ -120,7 +121,7 @@
120
121
  "vite": ">=5.0.0 || >=6.0.0 || >=7.0.0 || >=8.0.0",
121
122
  "vite-plugin-solid": "^2.11.10 || ^3.0.0-0",
122
123
  "webpack": ">=5.92.0",
123
- "@tanstack/react-router": "^1.170.19-pre.0"
124
+ "@tanstack/react-router": "^1.170.20"
124
125
  },
125
126
  "peerDependenciesMeta": {
126
127
  "@rsbuild/core": {
@@ -5,9 +5,10 @@ description: >-
5
5
  code splitting. Supports Vite, Webpack, Rspack, and esbuild.
6
6
  Configures autoCodeSplitting, routesDirectory, target framework,
7
7
  and code split groupings.
8
- type: core
9
- library: tanstack-router
10
- library_version: '1.166.2'
8
+ metadata:
9
+ type: core
10
+ library: tanstack-router
11
+ library_version: '1.168.23'
11
12
  sources:
12
13
  - TanStack/router:packages/router-plugin/src
13
14
  - TanStack/router:docs/router/routing/file-based-routing.md
@@ -170,6 +171,18 @@ The composed plugin assembles up to 3 sub-plugins:
170
171
  2. **Code Splitter** (when `autoCodeSplitting: true`) — Splits route files into lazy-loaded chunks using virtual modules
171
172
  3. **HMR** (dev mode, when code splitter is off) — Hot-reloads route changes without full refresh
172
173
 
174
+ ## Route Refactor Workflow
175
+
176
+ When moving, renaming, adding, or deleting file routes:
177
+
178
+ 1. Change the source files under `routesDirectory`. Keep the exported route identifier named `Route`.
179
+ 2. Let the bundler plugin regenerate the tree, or run `pnpm exec tsr generate` when the project uses the CLI.
180
+ 3. Inspect the generated diff for the expected route IDs, parents, paths, and imports. Never repair `routeTree.gen.ts` by hand.
181
+ 4. Update links, redirects, `from` narrowing, params, preload calls, and tests that reference the old route.
182
+ 5. Run route-generation tests, type tests, and a production build. A passing editor typecheck does not prove the plugin generated or split the new route correctly.
183
+
184
+ Commit `routeTree.gen.ts`; it is generated source used by the application at runtime.
185
+
173
186
  ## Individual Plugin Exports
174
187
 
175
188
  For advanced use, each sub-plugin is exported separately from the Vite entry:
@@ -227,6 +240,10 @@ function AboutPage() {
227
240
  }
228
241
  ```
229
242
 
243
+ ### 4. HIGH: Editing the generated route tree
244
+
245
+ Changes to `routeTree.gen.ts` are overwritten and can leave source routes, generated types, and runtime routing out of sync. Fix route filenames or plugin configuration, regenerate, and verify the generated diff instead.
246
+
230
247
  ## Cross-References
231
248
 
232
249
  - [router-core/code-splitting](../../../router-core/skills/router-core/code-splitting/SKILL.md) — manual code splitting concepts