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
Christopher Horobin
7f8199c232
fix(start): infer input of validator functions (#2808) 2024-11-21 19:25:26 +01:00
renovate[bot]
481bb99f75
chore(deps): update all non-major dependencies (#2795)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-11-21 15:21:30 +00:00
Julia Passynkova
24fb41e1e4
docs(router): typo in the usage of route masks (#2812)
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2024-11-21 21:36:07 +13:00
聪小陈
c991304380
docs(router): usage of imports for auth on authentication guide (#2813) 2024-11-21 21:17:29 +13:00
Leonardo Montini
a97f37ec0d
docs(start): explicitly set POST method updateCount server function examples (#2806) 2024-11-21 01:50:27 +13:00
Tanner Linsley
809ca432cc release: v1.82.1 v1.82.1 2024-11-18 13:20:21 +00:00
Tanner Linsley
adb3ab32e4 fix: allow meta/scripts to be undefined (easier for conditionals) 2024-11-18 08:16:05 -05:00
Steven Yung
82996980ab
docs(start): update cloudflare-pages deployment instructions (#2744)
Co-authored-by: Sean Cassiere <33615041+SeanCassiere@users.noreply.github.com>
2024-11-18 14:57:29 +13:00
Sean Cassiere
3281f52575
docs(start): markdown linking to the middleware guide (#2791) 2024-11-18 12:30:35 +13:00
Tanner Linsley
98a7c62ae9 release: v1.82.0 v1.82.0 2024-11-17 22:21:30 +00:00
Sean Cassiere
4ae6ca9d6b
feat(start): move scripts,links, and meta to the head (#2571)
This minor is non-breaking for Router users, since it's undocumented to the public API, but **is breaking** for Start alpha users. 

This changes the options signature for meta from this:
```tsx
createRoute({
  meta: () => [
    ...
  ],
  links: () => [
    ...
  ],
})
```

to this:

```tsx
createRoute({
  head: () => ({
    meta: [
      ...
    ],
    links: [
      ...
    ],
  })
})
```
2024-11-17 15:19:18 -07:00
Tanner Linsley
acd33f7d5b Merge branch 'main' of https://github.com/TanStack/router 2024-11-17 13:42:14 -07:00
Tanner Linsley
a0847cbe40 docs: add middleware to sidebar 2024-11-17 13:42:09 -07:00
Sean Cassiere
23e1ac182b
test(start): make it easier to write server function e2e tests (#2786) 2024-11-17 22:02:32 +13:00
Tanner Linsley
f08504c8b2 release: v1.81.18 v1.81.18 2024-11-17 08:13:49 +00:00
Manuel Schiller
1d794003dc
fix(start): parse query string only once (#2785) 2024-11-17 09:12:16 +01:00
Tanner Linsley
235b883a31 release: v1.81.17 v1.81.17 2024-11-17 06:32:47 +00:00
Tanner Linsley
4537ddfa04 Merge branch 'main' of https://github.com/TanStack/router 2024-11-16 23:28:30 -07:00
Tanner Linsley
f8414c1cd5 fix: minify TSR injection script, allow any-order match data injection 2024-11-16 23:28:28 -07:00
Tanner Linsley
55891518fc release: v1.81.16 v1.81.16 2024-11-16 15:11:41 +00:00
Nick Popov
97e462bcf9
fix: FormData handling in server functions (#2781)
- Ensure context is included when serializing `FormData` on the client (serialized using default transformer and added to the `__TSR_CONTEXT` field in the payload)
- Add input type check on the server and, if it's `FormData`, extract context value from the `__TSR_CONTEXT` field before passing the payload to the middleware
2024-11-16 08:07:30 -07:00
Tanner Linsley
02588efca0 release: v1.81.15 v1.81.15 2024-11-15 23:37:43 +00:00
Tanner Linsley
6e03345786 Merge branch 'main' of https://github.com/TanStack/router 2024-11-15 16:34:09 -07:00
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