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

6,597 commits

Author SHA1 Message Date
Tanner Linsley
47ebe6be2e fix: simplify match init 2024-11-15 16:34:08 -07:00
Tanner Linsley
cd57d7c4f0 release: v1.81.14 v1.81.14 2024-11-15 23:17:18 +00:00
Tanner Linsley
9d726b7146 Merge branch 'main' of https://github.com/TanStack/router 2024-11-15 16:09:26 -07:00
Tanner Linsley
503d21f066 fix: use injectScript for match init, only init once 2024-11-15 16:09:24 -07:00
Tanner Linsley
ac57a0c574 release: v1.81.13 v1.81.13 2024-11-15 22:29:32 +00:00
Tanner Linsley
fc606dab39 Merge branch 'main' of https://github.com/TanStack/router 2024-11-15 15:23:11 -07:00
Tanner Linsley
e211aaff79 fix: use router.injectScript to stream promises and streams 2024-11-15 15:23:09 -07:00
Tanner Linsley
8ff884ed4b release: v1.81.12 v1.81.12 2024-11-15 21:13:23 +00:00
Tanner Linsley
01b5c843b5 Merge branch 'main' of https://github.com/TanStack/router 2024-11-15 14:04:01 -07:00
Tanner Linsley
4a1faefaf2 fix: remove unnecessary meta portal logic 2024-11-15 14:03:59 -07:00
Jakob Norlin
94347ae78a
Fix updateCount payload in getting-started guide (#2775) 2024-11-15 21:25:59 +01:00
Tanner Linsley
0d48b6b9e6 release: v1.81.11 v1.81.11 2024-11-15 19:25:05 +00:00
Kjartan Dige
c792e77e6b
fix(start): AnyMiddleware typings (createServerFn, with middleware) (#2773)
* fixed: AnyMiddleware

AnyMiddleware had a hard constraint on AnyValidator, making it un-useable when passing middlewares to a serverFn

* bump import up (again)
2024-11-15 20:18:18 +01:00
Nick Popov
a63cef206d
fix(start): Fix request method check for multipart payloads (#2771)
Throw an error when the request method is GET and `Content-Type` header contains `multipart/form-data`
2024-11-15 20:16:03 +01:00
AlexGaudon
a4cf335392
various doc fixes (#2760)
* Fixed typescript error in Basic Validation

* Added validator call for basic example

* added more inference to doc examples
2024-11-15 20:14:53 +01:00
Tanner Linsley
3810fd2b8d release: v1.81.10 v1.81.10 2024-11-15 15:05:37 +00:00
Sean Cassiere
de69637906
fix(start): resolve server functions using a POST JSON request (#2766)
* test(start): check for consistent createServerFn responses between client and server

* chore(start): react-dom nesting rules

* fix(start): resolve payloads for POST requests

* fix(start): enforce default method as `'GET'`
2024-11-15 08:03:51 -07:00
Tanner Linsley
5e27e25573 Merge branch 'main' of https://github.com/TanStack/router 2024-11-14 23:46:18 -07:00
Tanner Linsley
bab07dc396 fix: default from location for links/useNavigate for JS users 2024-11-14 23:46:15 -07:00
Tanner Linsley
77afa3b999 release: v1.81.9 v1.81.9 2024-11-15 05:35:47 +00:00
Marc MacLeod
4d7c6697f4
fix: improve internal middleware validation typings (#2762)
* fix existing type error

Signed-off-by: Marc MacLeod <marbemac+gh@gmail.com>

* constrain middleware validator to AnyValidator

Signed-off-by: Marc MacLeod <marbemac+gh@gmail.com>

---------

Signed-off-by: Marc MacLeod <marbemac+gh@gmail.com>
2024-11-14 22:31:20 -07:00
Tanner Linsley
83cb148a96 fix: force release of start RELEASE_ALL
RELEASE_ALL
2024-11-14 15:39:04 -07:00
Tanner Linsley
c349fc0f97 Merge branch 'main' of https://github.com/TanStack/router 2024-11-14 14:34:18 -07:00
Tanner Linsley
e7e92a6f3d fix: exec validators in middleware appropriately 2024-11-14 14:34:16 -07:00
Tanner Linsley
0ec4872495 release: v1.81.8 v1.81.8 2024-11-14 21:04:31 +00:00
Manuel Schiller
02ee098052
fix(start): move @vitejs/plugin-react into dependencies (#2758) 2024-11-14 22:03:05 +01:00
Tanner Linsley
f569bf85e2 release: v1.81.7 v1.81.7 2024-11-14 20:36:30 +00:00
Jonathan Hutchison
12283041a6
Update getting started docs (#2757) 2024-11-14 21:34:12 +01:00
Manuel Schiller
ee74d19aa6
fix(react-router): fix re-rendering when loaderDeps change (#2752)
* fix(react-router): correct cause for loader

see #2749

* stable loaderdeps and search

* allow narrowing on the router state matches

* structural sharing for params, search and loader deps

* avoid re-rendering if matchId changes although we don't care for the matchId
2024-11-14 20:59:48 +01:00
Tanner Linsley
ee0a9fca41 release: v1.81.6 v1.81.6 2024-11-14 16:47:57 +00:00
Tanner Linsley
090a456e91 fix: force release
RELEASE_ALL
2024-11-14 09:46:21 -07:00
Tanner Linsley
4d5d25bc08
Chained Server Fn Syntax, ServerFn Middleware (#2513)
* init

* Refactor createServerFn, add createServerMiddleware

* checkpoint

* checkpoint

* checkpoint

* update docs and examples to use new server function syntax

* fix: compilers, and update examples

* refactor: added merging of context and some type tests

* feat: createServerMiddleware context and input validation types

* checkpoint

* Server function middleware

* checkpoint

* checkpoint

* fix: return types from handlers, merging inputs etc

* checkpoint

* checkpoint

* checkpoint

* checkpoint

* feat: add types for client context and server context

* fix: merge server context

* checkpoint

* docs

* fix: better compilation of server functions

* fix: deferred example

* Html, Head, Body... be GONE!

* fix: API Routes

* checkpoint

* fix: support optional input types

* checkpoint

* fix lossy merge

* ci: fix build

* ci: fix start examples

* checkpoint

* feat: add client after context types

* test: add type tests

* checkpoint

* checkpoint

* Remove now-unnecessary data type headers

* checkpoint

* fix e2e test

* fix up merge conflicts

* ci: apply automated fixes

* fix: a few tests and a runtime bug

* chore: pnpm dedupe
except the search-validator-adapters example, everything else builds fine

* fix merge conflict

---------

Co-authored-by: chorobin <chrishorobin@hotmail.com>
Co-authored-by: Manuel Schiller <manuel.schiller@caligano.de>
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
Co-authored-by: SeanCassiere <33615041+SeanCassiere@users.noreply.github.com>
2024-11-14 09:43:20 -07:00
Tanner Linsley
5689f6be0f release: v1.81.5 v1.81.5 2024-11-13 18:21:19 +00:00
Manuel Schiller
418f4ce3e1
fix(react-router): populate URL with default search params (#2747) 2024-11-13 19:19:51 +01:00
c-louis
5998ce4e06
docs: update RouterEventsType.md missing onBeforeNavigate (#2740) 2024-11-12 22:39:31 +01:00
Alex D'Elia
2b0d1c2dbf
docs(router): replace deprecated preSearchFilters with search middlewares in examples (#2741) 2024-11-12 22:39:19 +01:00
renovate[bot]
47cc85fa90
chore(deps): update all non-major dependencies (#2730)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-11-12 01:07:55 +01:00
Manuel Schiller
0618661558 chore: use workspace version in e2e test 2024-11-12 01:02:12 +01:00
Tanner Linsley
95b463a11b release: v1.81.4 v1.81.4 2024-11-11 23:56:51 +00:00
Christopher Horobin
e13acec45a
fix(react-router): update standard schema (#2729)
Co-authored-by: Manuel Schiller <manuel.schiller@caligano.de>
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2024-11-12 00:55:30 +01:00
Tanner Linsley
e913b7c3ed release: v1.81.3 v1.81.3 2024-11-11 23:13:58 +00:00
Manuel Schiller
78fc6d8f20
fix(history): pass location to subscribe callback (#2736) 2024-11-11 22:57:52 +01:00
Tanner Linsley
35ccf89abe release: v1.81.2 v1.81.2 2024-11-11 17:45:53 +00:00
Manuel Schiller
5dc00e522a
fix(react-router): remove debug log (#2735)
fixes #2733
2024-11-11 18:42:12 +01:00
Adrian Fernandez
1e5bbbba00
fix(react-router): Fix SyntaxError in ScriptOnce by escaping single quotes in console.info (#2731)
* Escape single quotes on ScriptOnce

* ci: apply automated fixes

* Update approach to use jsesc to cover more potential scenarios

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2024-11-11 18:42:06 +01:00
Tanner Linsley
32c9ff8196 release: v1.81.1 v1.81.1 2024-11-10 09:21:15 +00:00
Adrian Fernandez
671a637116
fix(react-router): Fix hydration SyntaxError in ScriptOnce by changing template literal to string concatenation in console.info (#2726)
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2024-11-10 09:35:14 +01:00
Tanner Linsley
7865c3fa75 release: v1.81.0 v1.81.0 2024-11-09 21:43:02 +00:00
Manuel Schiller
0873c1f0c9
feat(react-router): add support for structural sharing for finegrained selectors (#2647)
Co-authored-by: chorobin <chrishorobin@hotmail.com>
2024-11-09 22:41:12 +01:00
Tanner Linsley
581ebe31f0 release: v1.80.0 v1.80.0 2024-11-08 16:43:07 +00:00