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

6,488 commits

Author SHA1 Message Date
Manuel Schiller
5bbf49deba
chore: replace <React.Fragment> by <> (#3672)
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2025-03-07 00:30:35 +01:00
Tanner Linsley
06237feeb1 release: v1.112.18 v1.112.18 2025-03-06 23:02:15 +00:00
Manuel Schiller
c9a32784ce
fix: use fullPath as from in Route/RouteApi useNavigate (#3684)
fixes #3679
2025-03-06 23:58:51 +01:00
Miciah Henderson
623e420de0
docs: streamline language in the quick-start guide for Solid (#3681) 2025-03-07 09:16:12 +13:00
Manuel Schiller
30e869042d
chore: add script to bump typescript version and bump it to 5.8 (#3618)
Co-authored-by: chorobin <chrishorobin@hotmail.com>
2025-03-06 21:06:32 +01:00
Andrew Peacock
d20088e0fb
chore(examples): add authenticated-routes example using firebase (#3669)
Co-authored-by: SeanCassiere <33615041+SeanCassiere@users.noreply.github.com>
2025-03-06 20:38:47 +13:00
Sean Cassiere
ffbcd7278c
chore(examples): fix up the start-trellaux example (#3675) 2025-03-06 16:08:43 +13:00
Tanner Linsley
70351e525e release: v1.112.17 v1.112.17 2025-03-06 00:37:45 +00:00
Manuel Schiller
f4d09c19c4
fix: rebuild link if matches change (#3674)
fixes #2988
2025-03-06 01:36:16 +01:00
Tanner Linsley
76b0c2e9f3 release: v1.112.16 v1.112.16 2025-03-05 23:52:06 +00:00
Manuel Schiller
bf0fc0044d
fix: use leaf match as from if none supplied for <Link> (#3673) 2025-03-06 00:50:51 +01:00
Tanner Linsley
cbc27fa900 release: v1.112.15 v1.112.15 2025-03-05 21:16:53 +00:00
Manuel Schiller
a638d77ac8
fix: use default from in useNavigate (#3671)
fixes #3668
2025-03-05 22:15:21 +01:00
Ryan Callahan
7b47db77f7
docs(start): Add note for verbatimModuleSyntax setting in tsconfig docs (#3670)
verbatimModuleSyntax can cause server bundles to quietly leak into
client bundles via exported types. It is an easy mistake to make that
can be _very_ difficult to debug.

Inspired by #3401

Co-authored-by: ryan-callahan-edo <ryan.callahan@edoinc.com>
2025-03-05 22:11:05 +01:00
Tanner Linsley
b04a9fbcf2 release: v1.112.14 v1.112.14 2025-03-05 17:12:44 +00:00
Paul Grau
051e2d5efa
fix: transform should return null to preserve source maps. Fixes #3661 (#3663)
Fixes #3661

I tested this in my own codebase. With this change, the warnings are
gone.

Rollup plugin docs specifically say that you should return `null` if you
didn't transform anything. Vite follows rollup's API.
2025-03-05 18:07:40 +01:00
Birk Skyum
c699da2bc3
Fix CI - Revert "refactor(react-router,solid-router): move redirect to router-core" (#3667)
Reverts TanStack/router#3662
2025-03-05 16:33:26 +01:00
Birk Skyum
3a2d51e11d
refactor(router-core): move redirect to core (#3662) 2025-03-05 11:37:52 +01:00
Tanner Linsley
9b460c4ed0 release: v1.112.13 v1.112.13 2025-03-04 23:00:57 +00:00
Manuel Schiller
c18ae80136
fix(react-router): ensure resetScroll works with strict mode on (#3659)
fixes #3408
2025-03-04 23:57:38 +01:00
Tanner Linsley
e6607f367e release: v1.112.12 v1.112.12 2025-03-04 20:50:19 +00:00
Christopher Horobin
7ef5d87096
refactor(router-core): move AnyRoute and AnyRouter to router-core (#3640) 2025-03-04 21:48:58 +01:00
Manuel Schiller
bb1acf00ab
chore: rename method (#3658) 2025-03-04 20:13:39 +01:00
Tanner Linsley
05c312d6c6 release: v1.112.11 v1.112.11 2025-03-04 09:57:45 +00:00
Manuel Schiller
dff7e7a8e6 fix: explicitly capture previous loadPromise 2025-03-04 10:50:21 +01:00
Tanner Linsley
eff01eb950 release: v1.112.10 v1.112.10 2025-03-04 09:46:17 +00:00
Brenley Dueck
8abb6242a2
fix(solid-router): check if promise is resolved before resolving in useRouterState (#3651)
Fixes #3639
2025-03-04 10:39:27 +01:00
Tanner Linsley
d8211c9eb2 release: v1.112.9 v1.112.9 2025-03-04 09:13:01 +00:00
Manuel Schiller
7eaa4a2888
fix: allow relative navigate without from (#3654)
if `from` is not specified, it defaults to the leaf match
2025-03-04 10:11:48 +01:00
Alex D'Elia
6e364a5654
docs(router): add viewTransition docs in NavigateOptionsType (#3652)
This PR adds viewTransition documentation to the NavigateOptionsType,
giving users more info on how they can use the viewTransition API in
Links and Navigates.

Will follow up in the next day or so with an example as well.
2025-03-04 08:50:50 +01:00
Tanner Linsley
2cdf128779 release: v1.112.8 v1.112.8 2025-03-04 05:49:13 +00:00
Hoseong Lee
418fd95827
fix(history): parseLocation in createHashHistory to handle search params correctly (#3644)
`parseLocation` in `createHashHistory` failed to parse search params when they appeared before the hash. This PR updates the parsing logic so that search params are correctly extracted and processed, regardless of their position.
fixes #3595
2025-03-04 18:42:14 +13:00
Tanner Linsley
35c7c495f3 release: v1.112.7 v1.112.7 2025-03-04 00:26:17 +00:00
Vladislav Pilgasov
1849f04e0b
fix(react-router,solid-router): scrollRestoration crashes if sessionStorage is not available (#3638)
Fixes #3634 

Simply checking the type of `window.sessionStorage` is apparently enough to trigger `SecurityError`. To address it we use try/catch and set the variable to true only if it's indeed available.
2025-03-04 13:19:25 +13: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