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

3,932 commits

Author SHA1 Message Date
autofix-ci[bot]
0e00c005ef
ci: apply automated fixes 2025-02-18 18:19:32 +00:00
Manuel Schiller
26101fc467 feat: beforeNavigate 2025-02-18 19:18:16 +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
Tanner Linsley
7d76812729 release: v1.104.3 v1.104.3 2025-02-13 22:56:09 +00:00
Carson Full
b2e65c0b8b
fix(router-devtools): peer dep for csstype for goober (#3427) 2025-02-13 23:47:25 +01:00
Tanner Linsley
b5d14325b3 release: v1.104.2 v1.104.2 2025-02-13 22:02:54 +00:00
Manuel Schiller
0314018121
fix(start-client): properly merge context upon hydration (#3425) 2025-02-13 22:56:12 +01:00
Tanner Linsley
cea9019343 release: v1.104.1 v1.104.1 2025-02-13 20:13:11 +00:00
Manuel Schiller
8dbbe938ca
fix: only call head() when loaderData is available (#3410)
if no loader exists, `head()` will be called with `loaderData: undefined`

Co-authored-by: Tanner Linsley <tannerlinsley@gmail.com>
2025-02-13 13:06:13 -07:00
Tanner Linsley
b406134b42 release: v1.104.0 v1.104.0 2025-02-13 18:42:47 +00:00
McKittrick Kaminski
7a39c7e64c
feat: add WrapProvider to routerWithQueryClient (#3415) 2025-02-13 19:39:26 +01:00
Manuel Schiller
b8165abf91
fix(react-router): fix path param handling with relative navigation (#3423)
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2025-02-13 19:39:15 +01:00
Tanner Linsley
2a83af7b75 release: v1.103.1 v1.103.1 2025-02-13 17:55:14 +00:00
Tanner Linsley
ef19ea4b63
fix: file-wide use server now handles export const var (#3414)
* fix: file-wide `use server` now handles export const var

* no only
2025-02-13 10:52:09 -07:00
Tanner Linsley
11d340abef release: v1.103.0 v1.103.0 2025-02-12 23:28:38 +00:00
Tanner Linsley
2e74974c66
feat: static server functions (#3352)
* We're back baby!

fix: type: 'static', .type(type | () => type)

fix: allow customizing the serverFnStaticCache impl

fix: also allow for customizing the client side fetch, duh

* docs: static server function docs

* fix: remove unnecessary tuple option

* fix: createServerFnStaticCache import location

* fix: lockfile

* fix: types
2025-02-12 16:23:30 -07:00
Manuel Schiller
7aef4a3c48
fix(start-client): use correct parent match when hydrating (#3412) 2025-02-13 00:22:32 +01:00
Michal Malinowski
673ff1c3fd
fix: payload should be a data object (#3405) 2025-02-12 21:37:41 +01:00
Tanner Linsley
e6efc4fb86 release: v1.102.6 v1.102.6 2025-02-12 19:18:06 +00:00
Ben Fleming
1a6e3af75b
fix(router-generator): prevent route file being auto-formatted during updates (#3366) 2025-02-12 20:12:04 +01:00
Tanner Linsley
0fa206e69d
fix: dead code elimination for start plugin (#3387) 2025-02-12 20:11:24 +01:00
Carson Full
e2069a48ad
fix: vite peer dependencies (#3406) 2025-02-12 20:09:08 +01:00
Tanner Linsley
e30d59a05f release: v1.102.5 v1.102.5 2025-02-12 04:52:43 +00:00
Lee
f472e1ac51
fix(router-core): patch qss to attempt encoding value to prevent malformed URI errors (#3381)
Co-authored-by: SeanCassiere <33615041+SeanCassiere@users.noreply.github.com>

The earlier search/query param decode pattern used `decodeURIComponent(value)` which could throw an error when a value like '100%' was inputted. This change makes it safe for such actions to be attempted and gracefully be handled by the router.
2025-02-12 17:46:18 +13:00
Tanner Linsley
bb65fe44dd release: v1.102.4 v1.102.4 2025-02-12 02:24:58 +00:00
Sean Cassiere
e88b960702
refactor(router-plugin): code-splitting to be agnostic to support 'targets' (#3400) 2025-02-12 15:21:06 +13:00
Tanner Linsley
d626fb2831 release: v1.102.3 v1.102.3 2025-02-11 23:45:29 +00:00
Tanner Linsley
d870c68748
fix: allow custom scrollToTop selectors (#3398) 2025-02-11 16:42:37 -07:00
Tanner Linsley
4d74d55da8 release: v1.102.2 v1.102.2 2025-02-10 23:19:33 +00:00
Christopher Horobin
2fea8b6870
fix(start): align middleware context types with runtime (#3375)
* fix(start): align middleware context types with runtime

* fix(start): ensure context types are correct throughout the lifecycle

* chore(start): add type tests

* chore: fix build

* perf(start): add variance annotations to reduce instantiations
2025-02-11 00:18:04 +01:00
renovate[bot]
c1c943c5ef
chore(deps): update all non-major dependencies (#3379)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-02-10 02:03:23 +00:00