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

4,055 commits

Author SHA1 Message Date
Manuel Schiller
c983854232 feat: add support for shouldThrow in RouteApi 2025-03-03 01:19:25 +01:00
Birk Skyum
1c71ab16c0
test(tanstack-solid-start-e2e-basic-tsr-config) (#3641)
Follow up to 
- https://github.com/TanStack/router/pull/3611

Port this test suite from react-start to solid-start

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2025-03-02 23:21:15 +01:00
Birk Skyum
eb21d01ea1
test(react-router) should update title on navigation (#3610)
when client navigating, the react-router doesn't update the head meta
tags, such as the title

---------

Co-authored-by: Manuel Schiller <manuel.schiller@caligano.de>
2025-03-02 22:56:22 +01:00
Birk Skyum
07b82499d6
test(react-start): check change to meta tags on client navigation (#3609)
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2025-03-02 22:16:32 +01:00
Julian Klumpers
5e6a774275
docs: Update server-functions.md docs (#3628)
Added clear description add the top that server functions cannot be
called from API Routes.
2025-03-02 19:39:04 +01:00
Tanner Linsley
8e167d1f3c release: v1.112.6 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 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 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 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
Raymond Kneipp
d8878af647
docs(start): fix installation script in "build-from-scratch" guide (#3623) 2025-03-02 17:10:34 +13:00
Birk Skyum
db1774b7dc
test(react-start): make basic-tsr-config test more strict (#3611)
make basic-tsr-config test more strict:
- #3597

---------

Co-authored-by: Sean Cassiere <33615041+SeanCassiere@users.noreply.github.com>
2025-03-02 17:06:42 +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 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 v1.112.1 2025-02-28 11:46:29 +00:00
Melvin Valster
96d84eb062
docs: Provide default RegisteredRouter type in type-utilities examples (#3604)
The docs don't provide the default `RegisteredRouter` assignment for all
the type generics.
2025-02-28 12:39:08 +01: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
Russ Painter
b125dd5de8
Documentation proofreading (#3603)
Just some typos and a clarification in the docs.
2025-02-28 12:38:02 +01:00
Sean Cassiere
8ebf6a7fab
chore(examples): move from "layout" to "pathlessLayout" (#3600) 2025-02-28 16:17:26 +13:00
Tanner Linsley
41cefb7982 release: v1.112.0 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
Sean Cassiere
5b6fd04ec4
docs: differentiate between "layout" and "pathless layout" routes (#3599) 2025-02-28 11:43:21 +13:00
Tanner Linsley
65b2fbbd5d release: v1.111.15 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 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
Sean Cassiere
f96a102347
chore(root): bump tinyglobby to 0.2.12 (#3596) 2025-02-28 09:10:37 +13:00
Tanner Linsley
ff4af36fca release: v1.111.13 v1.111.13 2025-02-27 13:36:22 +00:00
Birk Skyum
dc4adfaf60
docs(solid-router) fix examples that import workspace packages (#3590)
Follow up to
- https://github.com/TanStack/router/pull/3585

@SeanCassiere the new examples import from workspace which breaks when
opening them in stackblitz in the docs.

This import the published versions, so it works

I also cleaned up references to react router devtools
2025-02-27 14:31:44 +01: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
Robert Soriano
334ed7e67d
chore: Bump @clerk/tanstack-start dependencies to 0.11.0 (#3582)
This PR bumps `@clerk/tanstack-start` version to
[0.11.0](https://github.com/clerk/javascript/releases/tag/%40clerk%2Ftanstack-start%400.11.0)
which has a peer dependency of the updated `@tanstack/react-start`
package
2025-02-27 10:12:29 +01:00
Sean Cassiere
6e5cf1f603
chore(examples): add more file-based solid-router examples (#3585) 2025-02-27 14:26:11 +13:00
Sean Cassiere
4c9eecd8d3
docs(solid-router): missing steps for tsconfig.json (#3584) 2025-02-27 13:31:02 +13:00
KoolieKangarooMjolner
de44ad7b78
docs(react-router): update import from viteReact to react (#3574)
Co-authored-by: SeanCassiere <33615041+SeanCassiere@users.noreply.github.com>
2025-02-27 13:19:00 +13:00
Tom Hackshaw
82b7c747b6
chore(examples): spelling error on Start Convex Trellaux (#3583) 2025-02-27 13:16:13 +13:00
omar
e2baa29fcc
docs(start): missing syntax snippet from static-prerendering guide (#3581)
Co-authored-by: Sean Cassiere <33615041+SeanCassiere@users.noreply.github.com>
2025-02-27 09:55:39 +13:00
Vikas Wakde
66991ddfbf
docs: fix path-params guide link in file-naming-conventions.md (#3576)
Co-authored-by: Sean Cassiere <33615041+SeanCassiere@users.noreply.github.com>
2025-02-27 08:33:42 +13:00
Tanner Linsley
847874648f release: v1.111.12 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
Sean Cassiere
ab9c7f5272
docs(router): cleanup reference page for "file-based-routing" (#3569) 2025-02-26 13:41:21 +13:00
SeanCassiere
5fa2bb21f6
docs(router): rename from "guide" to "guides" 2025-02-26 12:43:40 +13:00
Tanner Linsley
0181ee4e25 release: v1.111.11 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
Birk Skyum
6279354663
refactor(react-start): rename e2e/start to e2e/react-start (#3565) 2025-02-25 22:37:01 +01:00