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

2,717 commits

Author SHA1 Message Date
Manuel Schiller
c983854232 feat: add support for shouldThrow in RouteApi 2025-03-03 01:19:25 +01:00
Tanner Linsley
8e167d1f3c release: v1.112.6 2025-03-02 16:15:53 +00:00
Birk Skyum
c288bfd5bf
refactor(router-devtools): Revert #3631 to ensure backwards compat with react 18 (#3637)
Reverts #3631 - it's relying on peer Deps of react v18 or v19, so it
might be a problem if we use v19-only features.

There is work underway that'll uncouple this - but it's not in yet
2025-03-02 17:11:07 +01:00
Tanner Linsley
94e35b0240 release: v1.112.5 2025-03-02 14:50:13 +00:00
Birk Skyum
c32436f57f
refactor(router-devtools): Adopt recommendations for React 19 (#3631)
_Agnostic devtools step 1.5 of plan_

This is a follow up to below, so it'll be easier to review this diff
after that is merged / rebased
- #3629 

This pr was entirely made by eslint --fix, with exception of manually
adding a return type
[here](https://github.com/TanStack/router/pull/3631/files#diff-c546297e16a8306a05e3da924970bcdb458d59da2794af391f6757680a1c38a1R66-R70)
since the build would otherwise fail.

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2025-03-02 15:45:38 +01:00
Tanner Linsley
601b60b93b release: v1.112.4 2025-03-02 14:26:54 +00:00
Birk Skyum
743bfbc52d
refactor(router-devtools): have components in separate files like query-devtools (#3629)
_Agnostic devtools step 1 of plan_

This merely move some components into own files, as internal change in
router-devtools, so it's easier to keep an overview of imports.

This is a more similar structure to the query-devtools
-
https://github.com/TanStack/query/tree/main/packages/query-devtools/src

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2025-03-02 15:20:50 +01:00
Tanner Linsley
633d13b766 release: v1.112.3 2025-03-02 12:03:21 +00:00
Sean Cassiere
f2ccddff4b
refactor(router-generator): reduce use of boolean to identify file-system routes (#3626) 2025-03-03 01:00:05 +13:00
Birk Skyum
a119869219
fix(solid-start-config): adjust package name in noExternal (#3619)
It appear theres a `solid-` missing in this noExternal array

the package name is
[solid-start-router-manifest](https://github.com/TanStack/router/blob/main/packages/solid-start-router-manifest/package.json)

aligning with react-start-config
-
e2ac863540/packages/react-start-config/src/index.ts (L391)

This fixes the dev server when using the prerelease versions
2025-03-01 14:51:46 +01:00
Birk Skyum
e2ac863540
SolidJS driver for TanStack Start (#3522)
This PR introduce support for Solid to be used with TanStack Start.

There are several ongoing refactors that can influence the timing of
when it's most feasible to merge this.

### Status (build and run e2e/solid-start/basic)
- [X] SSR
- [x] API Routes
- [x] Server Functions
- [x] HMR
- [x] Streaming (/stream route)
- [X] Timely hydration

### Ongoing refactors

Refactor to make router packages (aka. client-only features) more
agnostic:
- #3552
- #3540
- #3538
- #3171

Refactor to make start packages (aka. server features) more agnostic:
- #3546 
- #3563 
- #3565 

### Upstream changes to solid-router
- #3592
- #3591
- #3589
- #3616 

### Passing E2E test suites
- [x]  basic
- [x]  website
- [x] scroll-restoration
- [x] server-functions

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
Co-authored-by: Brenley Dueck <brenleydueck@gmail.com>
Co-authored-by: Iha Shin <me@xiniha.dev>
Co-authored-by: Brenley Dueck <brenley@crowdbotics.com>
2025-03-01 13:38:00 +01:00
Tanner Linsley
6df662dd5b release: v1.112.2 2025-03-01 12:17:21 +00:00
Birk Skyum
409cdf114f
fix(solid-router): make HeadContent work for client navigation (#3616)
Picking solid-router relevant changes from
[commit](https://github.com/TanStack/router/pull/3522/commits/9eaa09ea1f95f786e9bd239fe787f10d6cb08e1c)
by @brenelz , that fixes assets handler in solid-router by using
`@solidjs/meta`.

With this, the head tags like the title will update on client
navigation.

The changes in this PR that affect most files are merely repetitions of:
- bumping solid 1.9.4 -> 1.9.5
- inserting `<HeadContent>` in the root route
- removing `<title>` from the index.html

Includes an automated test for solid-router corresponding to 
- https://github.com/TanStack/router/pull/3610

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2025-03-01 13:10:44 +01:00
Tanner Linsley
e3ca5f93c6 release: v1.112.1 2025-02-28 11:46:29 +00:00
Jon Sun
d467952025
fix(react-start-client): export ServerFnResponseType type (#3605)
Example
```
import { createMiddleware } from "@tanstack/react-start";

export const middleware = createMiddleware();
```

Issue
```
The inferred type of middleware cannot be named without a reference to ../../../../node_modules/@tanstack/react-start-client/dist/esm/createServerFn . This is likely not portable. A type annotation is necessary.
```

Solution
exporting `ServerFnResponseType` resolves this.
2025-02-28 12:38:13 +01:00
Tanner Linsley
41cefb7982 release: v1.112.0 2025-02-27 22:55:32 +00:00
Manuel Schiller
dda8d65ff1
feat(start): allow to return raw response from server function (#3532)
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2025-02-27 23:54:08 +01:00
Tanner Linsley
65b2fbbd5d release: v1.111.15 2025-02-27 21:35:56 +00:00
Manuel Schiller
fce71c534e
fix(react-start-client): execute head and scripts after custom hydration (#3594) 2025-02-27 22:31:34 +01:00
Tanner Linsley
f76e3721c6 release: v1.111.14 2025-02-27 20:52:51 +00:00
Brenley Dueck
24add745f6
fix(solid-router): remove delete linkProps.disabled (#3592) 2025-02-28 09:48:57 +13:00
Tanner Linsley
ff4af36fca release: v1.111.13 2025-02-27 13:36:22 +00:00
Iha Shin (신의하)
e1b5f07838
fix(solid-router): properly load components on lazy routes (#3589)
This fixes lazy routes on Solid Router, by waiting for loading the
component using `createResource()` instead of throwing a promise.
2025-02-27 14:31:00 +01:00
Birk Skyum
87d1d9e5b2
fix(solid-router): use createResource and Show in Await (#3591)
We can rely on Solid for this, so we don't throw in promises
2025-02-27 14:30:51 +01:00
Tanner Linsley
847874648f release: v1.111.12 2025-02-26 10:18:00 +00:00
Manuel Schiller
71acc58835
fix: move to react-start (#3573) 2025-02-26 11:16:23 +01:00
Tanner Linsley
0181ee4e25 release: v1.111.11 2025-02-25 23:35:22 +00:00
Sean Cassiere
74a3a06267
refactor: move routing documentation into its own section (#3567) 2025-02-26 12:33:22 +13:00
Tanner Linsley
70a4545d10 release: v1.111.10 2025-02-25 21:12:11 +00:00
Birk Skyum
0cf5e3e846
refactor(react-start): move start packages to react-start (#3563)
move start -> react-start, and keep start as proxy packages for
backwards compat.

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2025-02-25 22:05:25 +01:00
Tanner Linsley
b6dfe843de release: v1.111.9 2025-02-25 18:07:58 +00:00
Birk Skyum
e4d26cc953
refactor(start-client, start-server, start-server-functions-fetcher): work towards making agnostic (#3546)
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2025-02-25 19:03:05 +01:00
Birk Skyum
4a9d7717dd
chore: add react-router tests to solid-router (#3558) 2025-02-25 23:36:34 +13:00
Tanner Linsley
b2e68bf8f2 release: v1.111.8 2025-02-24 23:06:22 +00:00
Birk Skyum
c56a901610
fix(solid-router): add missing exports from solid-router (#3554)
cc @chorobin
2025-02-24 23:59:37 +01:00
Tanner Linsley
e29545523f release: v1.111.7 2025-02-24 22:25:37 +00:00
Christopher Horobin
844b66c795
refactor(router-core): migrate matches and route options to core (#3552)
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2025-02-24 23:17:58 +01:00
Lee
4d35542f98
fix(router-core): allow %25 in path params (#3419)
fixes #3402

---------

Signed-off-by: leesb971204 <leesb971204@gmail.com>
Co-authored-by: Sean Cassiere <33615041+SeanCassiere@users.noreply.github.com>
2025-02-25 11:13:27 +13:00
Birk Skyum
4cb2531860
fix(router-core,router-plugin) use router-core in router-plugin (#3551) 2025-02-24 21:36:56 +01:00
Birk Skyum
09be8a42ea
fix(router-generator) include ROUTE_MANIFEST_START for solid (#3550)
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2025-02-24 20:13:31 +01:00
Tanner Linsley
9e68c421dd release: v1.111.6 2025-02-24 18:38:10 +00:00
Christopher Horobin
b6aa1c81d6
refactor(router-core): move more types to router-core (#3540)
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2025-02-24 19:36:30 +01:00
Birk Skyum
e6be53d017
chore(react-cross-context,solid-cross-context): remove unused cross-context (#3549) 2025-02-24 16:36:15 +01:00
Tanner Linsley
471241ec0b release: v1.111.5 2025-02-24 10:01:09 +00:00
Manuel Schiller
eed83f1ffc
fix: allow getRouterManifest to be async (#3545) 2025-02-24 10:59:26 +01:00
Sean Cassiere
d9eab3d7d6
refactor: autoCodesplitting for all (#3544) 2025-02-24 21:43:55 +13:00
Tanner Linsley
17e5d6fbf2 release: v1.111.4 2025-02-24 07:54:28 +00:00
Brenley Dueck
b6da3ca040
fix: solid-router for ssr (#3541)
Looked at what Tanstack form does and this seems to fix part of the SSR
issue. Doesn't solve the whole thing but gets us partially there.


https://github.com/TanStack/form/blob/main/packages/solid-form/tsconfig.build.json

Fixes part of the problem discussed here
https://github.com/TanStack/router/issues/3521
2025-02-24 08:47:52 +01:00
Tanner Linsley
b9babba8e6 release: v1.111.3 2025-02-23 22:20:12 +00:00
Christopher Horobin
72b505c5d3
refactor(router-core): begin migrating types from react-router and solid-router to router-core (#3538)
Migrates many types over but there is still a lot to do D:

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2025-02-23 23:18:16 +01:00