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

6,620 commits

Author SHA1 Message Date
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
Tanner Linsley
397561969b release: v1.102.1 v1.102.1 2025-02-09 23:17:35 +00:00
Flo
11b40b8eef
fix(react-router): simpler useForwardedRef using useImperativeHandle (#3364)
Co-authored-by: Sean Cassiere <33615041+SeanCassiere@users.noreply.github.com>
2025-02-10 12:10:46 +13:00
Manuel Schiller
953b6c9bd1
tests: run e2e react-router tests with prod build (#3374) 2025-02-09 22:38:57 +01:00
Tanner Linsley
0cef0bdc3e release: v1.102.0 v1.102.0 2025-02-09 21:22:38 +00:00
Ryan Gillie
f37eb665d0
feat(start): serialize BigInt for server functions (#3294)
* Add bigint serialization

* ci: apply automated fixes

---------

Co-authored-by: Sean Cassiere <33615041+SeanCassiere@users.noreply.github.com>
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2025-02-09 22:16:53 +01:00
Leonardo Montini
0581857051
docs(router): more recommendations for route tree file opening unexpectedly on vscode (#3377) 2025-02-09 22:16:10 +01:00
Manuel Schiller
28963a2a4c docs: quickstart 2025-02-09 22:13:05 +01:00
Tanner Linsley
ddd84abd75 release: v1.101.2 v1.101.2 2025-02-09 13:49:20 +00:00
Manuel Schiller
6346365b1f
fix(react-router): exclude props from state equality check to prevent history push for equal url and state (#3373)
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2025-02-09 14:47:46 +01:00
Flo
0567ac0b81
test(e2e): add spec for viewport="preload" (#3372) 2025-02-10 01:35:02 +13:00
Tanner Linsley
8d742e1c5c release: v1.101.1 v1.101.1 2025-02-09 03:41:09 +00:00
Marc MacLeod
1895cc8ad5
fix(start): include vite react plugin in SSR router (#3369) 2025-02-09 16:29:35 +13:00