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

6,494 commits

Author SHA1 Message Date
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
Manuel Schiller
0c0af97063 docs: rename to @tanstack/react-start 2025-02-25 22:17:33 +01:00
Tanner Linsley
70a4545d10 release: v1.111.10 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
Tomasz Ducin
98465e1326
docs(router): syntax mistake in "document head management" guide (#3564)
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
fixes #3542
2025-02-26 08:05:09 +13:00
Tanner Linsley
b6dfe843de release: v1.111.9 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
Tomasz Ducin
9a7e0da4ce
docs: router docs update; fixes #3534 (#3562) 2025-02-25 19:02:42 +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 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
Kyle Gill
3520eab8b3
docs(router): remove inline TOC in routing concepts guide (#3543)
Co-authored-by: SeanCassiere <33615041+SeanCassiere@users.noreply.github.com>
2025-02-25 11:30:22 +13:00