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

1,769 commits

Author SHA1 Message Date
Tanner Linsley
8e167d1f3c release: v1.112.6 2025-03-02 16:15:53 +00:00
Tanner Linsley
94e35b0240 release: v1.112.5 2025-03-02 14:50:13 +00:00
Tanner Linsley
601b60b93b release: v1.112.4 2025-03-02 14:26:54 +00:00
Tanner Linsley
633d13b766 release: v1.112.3 2025-03-02 12:03:21 +00: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
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 2025-02-27 22:55:32 +00:00
Tanner Linsley
65b2fbbd5d release: v1.111.15 2025-02-27 21:35:56 +00:00
Tanner Linsley
f76e3721c6 release: v1.111.14 2025-02-27 20:52:51 +00:00
Tanner Linsley
ff4af36fca release: 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
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
Tom Hackshaw
82b7c747b6
chore(examples): spelling error on Start Convex Trellaux (#3583) 2025-02-27 13:16:13 +13: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
Tanner Linsley
70a4545d10 release: v1.111.10 2025-02-25 21:12:11 +00:00
Tanner Linsley
b6dfe843de release: v1.111.9 2025-02-25 18:07:58 +00:00
Tanner Linsley
b2e68bf8f2 release: v1.111.8 2025-02-24 23:06:22 +00:00
Tanner Linsley
e29545523f release: v1.111.7 2025-02-24 22:25:37 +00:00
Birk Skyum
ed26995d7e
chore(react examples): Add start-bare, and fix code-splitting in start-basic (#3548)
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2025-02-24 19:41:57 +01:00
Tanner Linsley
9e68c421dd release: v1.111.6 2025-02-24 18:38:10 +00:00
Tanner Linsley
471241ec0b release: v1.111.5 2025-02-24 10:01:09 +00: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
Tanner Linsley
b9babba8e6 release: v1.111.3 2025-02-23 22:20:12 +00:00
Tanner Linsley
8ddc5c6db4 release: v1.111.2 2025-02-23 01:47:52 +00:00
Tanner Linsley
7081bee0b6
fix: global middleware (#3501)
Fixes global middleware via a new `app/global-middleware.ts` file
(configurable path) that is side-loaded automatically into the client
and server-fn environment to ensure registerGlobalMiddleware will run in
both environments

Fixes #3315

---------

Co-authored-by: Manuel Schiller <manuel.schiller@caligano.de>
2025-02-23 02:45:02 +01:00
Tanner Linsley
70921bb179 release: v1.111.1 2025-02-22 04:04:45 +00:00
Tanner Linsley
a7bb2c6083 release: v1.111.0 2025-02-22 03:10:56 +00:00
Tanner Linsley
c5be30b4ed release: v1.110.3 2025-02-22 03:04:20 +00:00
Tanner Linsley
52e1dc6f91 release: v1.110.2 2025-02-22 03:00:13 +00:00
Tanner Linsley
5f660a8352 release: v1.110.1 2025-02-22 02:48:18 +00:00
Tanner Linsley
d372e99dd8 release: v1.110.0 2025-02-21 14:23:56 +00:00
Tanner Linsley
7018daf2fd release: v1.109.2 2025-02-20 23:34:30 +00:00
Tanner Linsley
7b215ba6e9 release: v1.109.1 2025-02-20 22:18:18 +00:00
Tanner Linsley
4d5c84548f release: v1.109.0 2025-02-20 21:54:36 +00:00
Christopher Horobin
16a9c9e2bb
feat(react-router): final type utilities (#3485)
* feat(react-router): final type utilities

* docs(react-router): add type utilities docs
2025-02-20 22:52:57 +01:00
Tanner Linsley
b720151c28 release: v1.108.1 2025-02-20 19:05:56 +00:00
Tanner Linsley
1340ccead8 release: v1.108.0 2025-02-20 16:18:10 +00:00
Birk Skyum
ad20a68491
feat(solid-router): Add a SolidJS driver for TanStack Router (#3276)
* copy react-router

* update

* Move forward branch

* cleanup

* cleanup

* add publish

* bump deps

* ci: apply automated fixes

* remove unused imports

* ci: apply automated fixes

* bump  vite plugin solid

* fix imports

* ci: apply automated fixes

* remove react lint from solid-router

* fix types

* ci: apply automated fixes

* add structuralSharing

* downgrade vite plugin solid

* fix scroll-restoration in solid-router

* fix Transitioner

* fix imports from ScrollRestoration

* Fix tests

* Fix more tests

* Remove the react $$typeof

* add accessors to useLocation

* add remountDeps

* cleanup

* remove tanstack/store

* format

* add missing call to setupScrollRestoration

* format

* add optional

* align match component

* make matches a signal

* Bump vite-plugin-solid to stable

* add missing await

* Fix unknown error

* Tweak the tests to call functions

* remove unused vars

* fix lockfile

* Down to 25 failures

* Remove .only

* call search()

* remove the structuralSharing

* fix type test

* fix structuralSharing

* comment out structured sharing validation check

* fix typings

* comment out serialization check

* comment out serialization check

* cleanup

* improve types of useSearch

* fix "when setting search params with 2 parallel navigate calls"

* fix useParams

* fix types

* fix useParams types

* cleanup debug

* fix link data loader

* fix data loader signal

* fix type test

* fix Link "when navigating away from a route with a loader that errors"

* setup on() simpler

* make initial load a createRenderEffect

* Fix some link preload tests

* add accessor to UseMatchRoute

* fix: when navigating to /posts with a beforeLoad that returns context

* call parentRouteId

* re-enable invariant

* fix when navigating from /invoices to ./invoiceId and the current route is /posts/$postId/details

* use memo for prev

* remove browserhistory  workaround

* fix  "after a navigation, should have emitted the "onResolved" event twice"

* skip remount

* add types to useSearch

* fix search middleware

* don't need a getter

* sync react-router

* solid kitchen sink

* add the example to workspace

* lockfile

* fix solid kitchensink name

* add solid template

* fix example

* rename react to solid

* work on example

* add accessor

* fix type tests

* Fix login in example

* Don't destructure

* Fix stuck on pending component

* Fix where loaderData can be undefined

* Use For component

* More refactor

* Hacky way to fix loading spinner

* Fix one test

* Better MatchRoute fix

* Down to 1 failing test

* Fix last test

* cleanup subscription

* lockfile

* eslint

* ci: apply automated fixes

* fix router-core lint

* ci: apply automated fixes

* add e2e test for solid-router

* ci: apply automated fixes

* work on solid-router e2e suites

* fix comment

* use solid-virtualizer

* work on scroll-restauration

* work on scroll-restauration

* skip react-specific useRenderEffect test

* fix errorcomponent being used before it's defined

* set solid target for esbuild

* ci: apply automated fixes

* fix rspack tests

* fix query tets

* add solid-query example

* use memo for post

* add memo for posts

* fix example

* add jsx compiler flags to esbuild commands

* add esbuild-plugin-solid

* Fix some e2e

* ci: apply automated fixes

* port #3423 from react-router

* fix useLoaderData test-d

* add codeSplitGroupings

* Scroll restoration fixes

* add asset headcontent script

* remove solid-router-copy

* fix react use

* fix scroll restoration test

* skip esbuild because it's broken in react-router

* wait for timeout

* update scroll-restoration to match react

* useLocation

* use on() in match

* align useNavigate with react-router

* lockfile

* fix Scripts test

* align __TSR_SSR__ in ScriptOnce

* remove solid-router from publish

* lint

* ci: apply automated fixes

* align to react-router

* port over "exclude props from state equality check to prevent history push for equal url and state"

* align with react-router

* add shouldThrow

* fix typePrimitives

* use searchStr to fix the search middleware

* ci: add solid-router to the labeler

* use patched vite-plugin-solid

* eslint

* ci: apply automated fixes

* use vite-plugin-solid 2.11.2

* remove only modifier

* move vite-plugin-solid peerDep to router-plugin

* use latest vite-plugin-solid

* move vitest to root

* bump vitest

* revert onRendered

* lint

* add to publish

* fix scroll restoration

* ci: apply automated fixes

* align version with react-router

* sync to react-router

* sync with react-router

* sync navigate tests to react-router

* ci: apply automated fixes

* use Solid.JSX.Element consistently instead of Solid.JSXElement

* remove irrelevant test

* ci: apply automated fixes

* remove unused suite

* lint

---------

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: SeanCassiere <33615041+SeanCassiere@users.noreply.github.com>
2025-02-20 17:11:39 +01:00
Tanner Linsley
fb071895dd release: v1.107.0 2025-02-19 01:03:37 +00:00
Tanner Linsley
db9047c99c release: v1.106.0 2025-02-18 18:28:29 +00:00
Tanner Linsley
83b8ea9e37 release: v1.105.5 2025-02-18 16:44:03 +00:00
Christopher Horobin
2dd5b95a6a
refactor: remove clientAfter (#3426)
* refactor: remove clientAfter

* perf(start): add middleware types interface to avoid structural comparison

* docs(start): update to include inferring context from server to client
2025-02-18 17:37:56 +01:00
Julius Marminge
ea2c4add34
trpc queryoptions (#3464) 2025-02-17 18:04:15 -07:00