0
Fork 0
mirror of https://github.com/TanStack/router.git synced 2026-11-16 19:38:07 +00:00
Commit graph

6,470 commits

Author SHA1 Message Date
Tanner Linsley
b7e255f16e release: v1.132.15 v1.132.15 2025-09-27 19:33:43 +00:00
Manuel Schiller
1776259824 fix: types for server function with inputValidator and request middleware
fixes #5264
2025-09-27 21:26:34 +02:00
Tanner Linsley
dcd86c7fc5 release: v1.132.14 v1.132.14 2025-09-27 19:09:42 +00:00
Manuel Schiller
6cfe2fd925 fix: correctly resolve routes dir and routeTree path w.r.t. root 2025-09-27 21:02:09 +02:00
Júlio Mühlbauer
fa6e7d3d78
docs: add paraglide examples (#5257)
Co-authored-by: Manuel Schiller <manuel.schiller@caligano.de>
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2025-09-27 16:12:38 +02:00
Tanner Linsley
d50f2dd0cc release: v1.132.13 v1.132.13 2025-09-27 00:09:51 +00:00
autofix-ci[bot]
9831e54675
ci: apply automated fixes 2025-09-27 00:04:45 +00:00
Manuel Schiller
3500dde867 fix: add missing export 2025-09-27 02:03:37 +02:00
Manuel Schiller
53493af536 fix: move createServerRpc into separate package export
this avoids circular imports
2025-09-27 01:54:24 +02:00
Tanner Linsley
37391e803b release: v1.132.12 v1.132.12 2025-09-26 23:45:22 +00:00
Manuel Schiller
84537b714a fix: circular imports
before this happened:

```
vite:hmr circular imports detected: /src/routes/posts.route.tsx -> /src/utils/posts.tsx -> /node_modules/@tanstack/react-start/dist/esm/client.js?v=0794880d -> /node_modules/@tanstack/react-start-client/dist/esm/index.js?v=0794880d -> /node_modules/@tanstack/start-client-core/dist/esm/client/index.js?v=0794880d -> /node_modules/@tanstack/start-client-core/dist/esm/client/hydrateStart.js?v=0794880d -> /src/router.tsx -> /src/routeTree.gen.ts -> /src/routes/posts.route.tsx
```

the transform of `createServerFn` imported `createClientRpc` from `@tanstack/react-start/client` which also export `hydrateStart` in index.ts

moving `createClientRpc` into its own package export resolved this issue
2025-09-27 01:36:21 +02:00
Tanner Linsley
56f6f8df65 release: v1.132.11 v1.132.11 2025-09-26 23:21:30 +00:00
Manuel Schiller
87875da6b2 fix: server function types with request middleware installed
fixes #5238
2025-09-27 01:15:18 +02:00
Magnus May
2ff5bc20f7
docs: add Bun production server guide for TanStack Start (#5237)
Co-authored-by: Claude <noreply@anthropic.com>
Co-authored-by: Manuel Schiller <manuel.schiller@caligano.de>
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2025-09-27 01:01:49 +02:00
James Opstad
eca3a55745
tests: Add basic Cloudflare E2E tests (#5260)
Co-authored-by: Manuel Schiller <manuel.schiller@caligano.de>
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2025-09-26 23:06:21 +02:00
James Opstad
4d40d95c37
examples: Add start-basic-cloudflare example (#5254)
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2025-09-26 22:07:02 +02:00
Tanner Linsley
e55b436969 release: v1.132.10 v1.132.10 2025-09-26 19:08:05 +00:00
Paweł Błaszczyk
e46ba71cb9
fix: add StartInstance re-export which is used as a return type from createStart (#5259)
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2025-09-26 21:02:21 +02:00
Taegeon Alan Go
67dd66e77f
docs: nitro v3 plugin link in the hosting docs (#5253)
The nitro v3 plugin link is incorrect, fix with correct one

<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->

## Summary by CodeRabbit

* **Documentation**
* Updated Vercel deployment guide to reference the correct Nitro v3 Vite
plugin (now nitro-nightly), keeping the BETA status note.
* Clarifies deployment steps for React users relying on Nitro v3,
reducing confusion from outdated plugin naming.
* Ensures alignment with current tooling to improve setup reliability
and developer confidence.

<!-- end of auto-generated comment: release notes by coderabbit.ai -->
2025-09-26 20:38:59 +02:00
Tanner Linsley
0babe5d805 release: v1.132.9 v1.132.9 2025-09-26 03:57:47 +00:00
Manuel Schiller
159c8c182e docs: fix hosting 2025-09-26 05:55:35 +02:00
James Opstad
716cc05c7b
fix: Add optimizeDeps.entries for client and ssr environments (#5223)
Co-authored-by: Manuel Schiller <manuel.schiller@caligano.de>
2025-09-26 05:52:14 +02:00
autofix-ci[bot]
d56f7dba53
ci: apply automated fixes 2025-09-26 03:50:01 +00:00
mattfysh-ai
bb6e2e31fe
docs: Fix cloudflare config (#5225) 2025-09-26 05:48:50 +02:00
Tanner Linsley
2e7cb7ffa8 release: v1.132.8 v1.132.8 2025-09-26 03:33:53 +00:00
Manuel Schiller
f9bf3363d8
fix: compile createMiddleware using start-compiler-plugin (#5245) 2025-09-26 05:32:15 +02:00
Fabien Kovacic
7771c00db2
docs(router): typo fix installation-with-router-cli.md (#5158)
small typo

<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->

## Summary by CodeRabbit

* **Documentation**
* Corrected a typo in the Router CLI installation guide by removing a
duplicated word (“your”) in the scripts section. Improves clarity and
professionalism of the instructions. No functional impact or behavior
changes. No configuration updates required; users don’t need to take any
action beyond reading the updated doc. Purely editorial change.

<!-- end of auto-generated comment: release notes by coderabbit.ai -->

Co-authored-by: Nico Lynzaad <44094871+nlynzaad@users.noreply.github.com>
2025-09-26 00:47:24 +02:00
Alex Godfrey
903b17b197
Docs(Start): Update environment-functions.md with correct function names (#5236)
Since the RC, serverOnly and clientOnly no longer exist, and we use
createServerOnlyFn and createClientOnlyFn. I updated the docs to reflect
that.

<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->
## Summary by CodeRabbit

- New Features
- Introduced createServerOnlyFn and createClientOnlyFn helpers for
environment-bound execution.

- Documentation
- Updated guides, examples, import examples, error messages, and
tree-shaking notes to use the new helper names.

- Refactor
- Renamed public environment helpers (serverOnly → createServerOnlyFn,
clientOnly → createClientOnlyFn) and removed the old exports from the
public API.
<!-- end of auto-generated comment: release notes by coderabbit.ai -->

---------

Co-authored-by: Nico Lynzaad <44094871+nlynzaad@users.noreply.github.com>
2025-09-26 00:34:58 +02:00
Jakob Norlin
e216127677
docs: update build-from-scratch replacements for SolidJS (#5216)
The docs make references to react in a lot of places. I updated the ones
I could find in the build-from-scratch guide to use proper solid-js
package names and other references.

<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->
## Summary by CodeRabbit

- **Documentation**
- Expanded "build from scratch" guide for migrating from React to
SolidJS.
- Added comprehensive mapping of React libraries, tooling, and plugins
to Solid equivalents.
- Documents alternative React tooling options and Solid-compatible
plugin recommendations.
- Clarifies updating JSX runtime and project configuration for SolidJS.
- Describes import/usage changes and fragment/JSX differences needed for
Solid.
  - Notes removal of React-specific type artifacts during migration.
<!-- end of auto-generated comment: release notes by coderabbit.ai -->

---------

Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
Co-authored-by: Nico Lynzaad <44094871+nlynzaad@users.noreply.github.com>
Co-authored-by: Nico Lynzaad <nlynzaad@zylangroup.com>
2025-09-26 00:31:48 +02:00
MHeinonen
ed7004b43e
docs: fix router.tsx filename in snippet (#5218) 2025-09-25 20:31:01 +02:00
Rafał Goławski
5fc1ede8be
docs(server-functions): fix unclosed markdown code block (#5226)
This fixes an unclosed Markdown code block in the `server-functions`
documentation page. Without the closing fence, the rest of the page
renders incorrectly.

<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->

## Summary by CodeRabbit

* **Documentation**
* Standardized code block formatting in the React Server Functions guide
by replacing four-backtick fences with standard triple backticks for
TypeScript snippets.
* Improves readability, syntax highlighting, and consistency across
examples, including route loading and basic parameter sections.
  * No changes to behavior, APIs, or functionality.

<!-- end of auto-generated comment: release notes by coderabbit.ai -->

Co-authored-by: Nico Lynzaad <44094871+nlynzaad@users.noreply.github.com>
2025-09-25 18:30:31 +02:00
Tanner Linsley
8219466eee release: v1.132.7 v1.132.7 2025-09-25 15:30:09 +00:00
Manuel Schiller
e6ef21809c
fix: opt into SSR type level serializability check (#5233)
default `false` was not working for plain router

fixes #5222
2025-09-25 17:28:40 +02:00
Tanner Linsley
86aa74e345 release: v1.132.6 v1.132.6 2025-09-25 03:01:51 +00:00
Brooke Holmes
98a02d77b6
fix(router-core): avoid infinite serializer recursion for arrays (#5199)
Fixes some issues I was having with https://conform.guide (also fixes
https://github.com/TanStack/router/issues/4533)

<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->
## Summary by CodeRabbit

* **New Features**
* Compile-time serialization validation now recognizes readonly arrays
and tuples for inputs and results, preserving tuple shapes and improving
type inference and editor experience; no runtime changes.

* **Tests**
* Added type-level tests covering recursive, nested, readonly array and
tuple scenarios to verify compile-time validation and type propagation.
<!-- end of auto-generated comment: release notes by coderabbit.ai -->
2025-09-25 04:55:33 +02:00
Tanner Linsley
49e5fad4ea release: v1.132.5 v1.132.5 2025-09-24 20:41:09 +00:00
Manuel Schiller
5c6eed67ce fix: exclude start and router from optimizeDeps for solid as well 2025-09-24 22:33:11 +02:00
Tanner Linsley
9d3bbbd812 release: v1.132.4 v1.132.4 2025-09-24 20:24:21 +00:00
Manuel Schiller
c7213749df fix: export fake startInstance 2025-09-24 22:18:27 +02:00
Christoffer Bjelke
4f62cfaf1e
docs(Start): Revise migration guide for TanStack Start (#5211)
Update installation instructions and routing configurations for TanStack
Start.

<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->
## Summary by CodeRabbit

* **Documentation**
* Updated React migration guide from Next.js with current routing
conventions and defaults.
* Adjusted installation guidance to reflect updated tooling and plugin
placement.
* Clarified new project layout defaults (explicit src directory and
routes location).
  * Renamed and simplified example entry file and setup steps.
* Refreshed examples to use the new routing, link and server-function
patterns for parity with Next.js App Router.
<!-- end of auto-generated comment: release notes by coderabbit.ai -->
2025-09-24 22:03:44 +02:00
Tanner Linsley
956d5f27e0 release: v1.132.3 v1.132.3 2025-09-24 19:45:30 +00:00
Manuel Schiller
e4d5671ba9
fix: various fixes (#5215)
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2025-09-24 21:42:56 +02:00
Nico Lynzaad
06839407b9
Docs(Start): remove target from hosting docs (#5204)
This removes reference to the target property from the hosting docs as
this is now defined through vite plugins
2025-09-24 10:42:11 +02:00
Nico Lynzaad
065722ab29
docs(start): fix broken links (#5197)
corrects broken links in the start docs

<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->
## Summary by CodeRabbit

* **Documentation**
* Updated numerous cross‑reference links across React start guides
(authentication, execution model, server functions, environment
variables, middleware, router guides, migration) to point to correct
locations.
* Hosting guide: added a Netlify section with setup example; updated
Cloudflare Workers and Railway/Node.js anchors for clarity.
  * Authentication docs: minor formatting tweaks.
  * Server routes: removed merge conflict markers and cleaned content.
<!-- end of auto-generated comment: release notes by coderabbit.ai -->

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2025-09-24 03:18:36 +02:00
Tanner Linsley
c2f732d30f release: v1.132.2 v1.132.2 2025-09-23 22:38:18 +00:00
Manuel Schiller
bd5557613a
fix: deps (#5195) 2025-09-24 00:33:48 +02:00
John Colvin
0aa36667e5
Fix typo in error message for server rendering (#5161) 2025-09-24 00:28:41 +02:00
Manuel Schiller
70d2989546 docs: update to RC 2025-09-24 00:16:51 +02:00
Sarah
0c069fb66f
docs: Fix README images (#5162)
Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2025-09-23 23:42:59 +02:00
Tanner Linsley
f5ac86a045 release: v1.132.1 v1.132.1 2025-09-23 21:40:21 +00:00