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

6,510 commits

Author SHA1 Message Date
Sean Cassiere
8678c30b00
docs(router): backfill guides for solid-router (#3509) 2025-02-22 15:52:50 +13:00
Tanner Linsley
5f660a8352 release: v1.110.1 v1.110.1 2025-02-22 02:48:18 +00:00
Birk Skyum
1df29f535e
refactor(start-server-functions-server): make agnostic (#3514) 2025-02-22 15:43:51 +13:00
espada-edalex
5099513449
chore: update 404 route docs for file-based routing (#3506) 2025-02-21 22:54:28 +01:00
Birk Skyum
185f53691e
docs(solid-router): add getting-started pages (#3481)
* add solid installation guide

* ci: apply automated fixes

* remove react native notice

* add quck-start and overview

* solid-router imports

* move the overview to core

* ci: apply automated fixes

* add overview core page

* fix import of solidjs render

* className -> class

* fix solid overview page

* ci: apply automated fixes

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2025-02-21 13:16:01 -07:00
Tanner Linsley
d372e99dd8 release: v1.110.0 v1.110.0 2025-02-21 14:23:56 +00:00
Birk Skyum
ac2b279198
feat(solid-router): final type utilities (#3505) 2025-02-21 15:19:36 +01:00
sai nivas mangu
605faf200e
docs(router): fix missing "of" in "overview.md" (#3502) 2025-02-21 19:20:40 +13:00
espada-edalex
a4619369d9
docs(router): typo in description of "route.tsx" files (#3500) 2025-02-21 19:20:22 +13:00
Tanner Linsley
7018daf2fd release: v1.109.2 v1.109.2 2025-02-20 23:34:30 +00:00
Manuel Schiller
cca6a806ee
fix(react-router, solid-router): do not strip search params if search validation fails (#3496) 2025-02-21 00:32:45 +01:00
Jack Herrington
12ab448252
fix: doc fix for createRootRoute (#3487) 2025-02-21 00:10:02 +01:00
Tanner Linsley
7b215ba6e9 release: v1.109.1 v1.109.1 2025-02-20 22:18:18 +00:00
Christopher Horobin
7ce39ef6eb
doc: fix headings for type utilities (#3495) 2025-02-20 23:07:11 +01:00
Manuel Schiller
09b7d7d4d5 fix(start-client): do not import from node:fs/promises directly
this breaks when client polyfills node env
instead, destructure the import from `node:fs`
2025-02-20 23:05:47 +01:00
Tanner Linsley
4d5c84548f release: v1.109.0 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 v1.108.1 2025-02-20 19:05:56 +00:00
Manuel Schiller
fb07a927d7
fix(start-client): preload route chunks prior to hydration (#3493) 2025-02-20 19:58:25 +01:00
Tanner Linsley
1340ccead8 release: v1.108.0 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
David Burles
b299ee8dae
docs(router): update notFound whole page example (#3466) 2025-02-20 00:57:38 +13:00
Tanner Linsley
fb071895dd release: v1.107.0 v1.107.0 2025-02-19 01:03:37 +00:00
Manuel Schiller
391fbadac3
feat(start): add AbortSignal for server functions (#3477) 2025-02-19 01:49:53 +01:00
Tanner Linsley
db9047c99c release: v1.106.0 v1.106.0 2025-02-18 18:28:29 +00:00
Ben Durrant
3abf4c19f7
fix(start,router): Change DCE so it only affects *newly* dead code (#3422)
Co-authored-by: Manuel Schiller <manuel.schiller@caligano.de>
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2025-02-18 19:20:52 +01:00
Ben Durrant
47614bb252
fix(start): ensure generic h3 functions remain generic, including new overloads (#3285) 2025-02-18 19:20:38 +01:00
Ryan Gillie
8ba5e77b8f
feat(react-router-with-query): Handle redirects thrown inside mutations/queries. (#3460)
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2025-02-18 19:20:25 +01:00
Manuel Schiller
4e8cc040c9 tests(react-router): import locally in test 2025-02-18 19:19:27 +01:00
Manuel Schiller
c0f2b82f7b fix(react-router): avoid empty script tag if scroll restoration is disabled 2025-02-18 19:19:27 +01:00
Tanner Linsley
83b8ea9e37 release: v1.105.5 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
Manuel Schiller
0277309b1b
fix(react-router): only navigate once in StrictMode (#3465) 2025-02-18 02:10:05 +01:00
Julius Marminge
ea2c4add34
trpc queryoptions (#3464) 2025-02-17 18:04:15 -07:00
Tanner Linsley
bcfcc99aea release: v1.105.4 v1.105.4 2025-02-17 23:58:13 +00:00
Manuel Schiller
63ea664091
fix: propagate cookies from server functions during SSR (#3463)
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2025-02-18 00:56:43 +01:00
Manuel Schiller
4252fdc51f
tests: move e2e server functions tests into dedicated project (#3454)
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2025-02-16 22:20:15 +01:00
Tanner Linsley
7be247504a release: v1.105.3 v1.105.3 2025-02-16 14:15:47 +00:00
Christopher Horobin
805d8f221a
fix(start): use FetcherData by default for return type (#3451)
* fix(start): use FetcherData by default for return type

* chore: add type tests
2025-02-16 15:13:28 +01:00
Tanner Linsley
adcdde4d57 release: v1.105.2 v1.105.2 2025-02-16 04:27:56 +00:00
Manuel Schiller
c6a240969c
fix(directive-functions-plugin): handle anonymous default exports (#3447) 2025-02-15 21:26:10 -07:00
Manuel Schiller
dfd583176a
tests: bump react in e2e tests (#3445) 2025-02-15 14:41:29 +01:00
Manuel Schiller
4ba035488e docs: react 18 or 19 in router installation 2025-02-15 14:28:27 +01:00
Tanner Linsley
22da8822f3 docs: more 2025-02-14 22:37:33 -07:00
Tanner Linsley
ffc194bf3d Merge branch 'main' of https://github.com/TanStack/router 2025-02-14 21:02:51 -07:00
Tanner Linsley
b6fed0a512 docs: add head management initial docs 2025-02-14 21:02:49 -07:00
Tanner Linsley
0943f29f1f release: v1.105.1 v1.105.1 2025-02-15 00:05:24 +00:00
Manuel Schiller
2e5c597d41
fix(start): fix HMR preamble issue (#3441) 2025-02-15 00:58:07 +01:00
Tanner Linsley
c1c9e36475 release: v1.105.0 v1.105.0 2025-02-14 22:20:39 +00:00
Manuel Schiller
4c7caeba94
feat: replace <Meta /> by <HeadContent /> and add dedicated headScripts (#3439) 2025-02-14 23:19:01 +01:00