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

6,591 commits

Author SHA1 Message Date
Manuel Schiller
1c9a74026c silence linter 2025-01-18 11:52:06 +01:00
autofix-ci[bot]
24a900cca7
ci: apply automated fixes 2025-01-18 10:45:04 +00:00
Manuel Schiller
fdafdd0738 silence linter 2025-01-18 11:43:51 +01:00
Manuel Schiller
124722d962
fix: minify injected script at build time (#3187) 2025-01-18 08:55:57 +01:00
Manuel Schiller
40dd906868
fix: do not minify during code splitting (#3189)
fixes #3183
2025-01-18 08:55:48 +01:00
Tanner Linsley
ede1655a81 release: v1.97.2 v1.97.2 2025-01-16 00:08:21 +00:00
Tanner Linsley
068b0a5a98 fix: do not include server functions in ssr bundle 2025-01-15 16:58:54 -07:00
Tanner Linsley
3669e9ab59 release: v1.97.1 v1.97.1 2025-01-15 22:58:24 +00:00
Tanner Linsley
ab0a92b126 fix: do not include server functions in ssr bundle 2025-01-15 15:53:24 -07:00
Christopher Horobin
0cc3e14f7c
chore: update zod and arktype (#3178)
* chore: update zod and arktype

* ci: apply automated fixes

* chore: fix tests

* chore: remove ts ignore

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2025-01-15 23:17:28 +01:00
Tanner Linsley
8f7c193ac6 release: v1.97.0 v1.97.0 2025-01-15 05:27:48 +00:00
SeanCassiere
27c66707fa
feat: RELEASE_ALL 2025-01-15 18:26:19 +13:00
Sean Cassiere
b0d73fb568
build: publish directive-functions-plugin & server-functions-plugin (#3172)
RELEASE_ALL
2025-01-15 18:18:02 +13:00
Tanner Linsley
e7a13d3bf2 release: v1.96.0 v1.96.0 2025-01-15 03:38:28 +00:00
Tanner Linsley
e9781b777e
feat: Agnostic Server Fn Plugin (#2993)
* checkpoint

* checkpoint

* cleanup

* checkpoint

* client babel now works, runtime and rpc injection

* fix: dont touch anything outside of the function

* server functions now import a tsr-serverfn-split file version

* checkpoint

* checkpoint

* fis tests

* It's working!!!

* move serverFnFetcher to start client

* fix: no extra context, throw errors from middleware

* docs: add custom link example for mantine (#3033)

* ci: apply automated fixes

* fix(react-router): make sure full matches are passed into route functions (#3039)

* release: v1.91.3

* docs: minor typo in code-based-routing.md (#3043)

* feat(start): create-start cli (#2920)

* create start cli

* update lockfile

* ci: apply automated fixes

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>

* docs: Minor typo in middleware.md (#3042)

* release: v1.92.0

* refactor(react-router): expose `scrollBehavior` on the `ScrollRestoration` component (#3053)

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
Co-authored-by: Sean Cassiere <33615041+SeanCassiere@users.noreply.github.com>

* release: v1.92.1

* fix(start): returning `null` from server functions (#3048)

Co-authored-by: SeanCassiere <33615041+SeanCassiere@users.noreply.github.com>

* release: v1.92.2

* fix: allow serverFn errors to also have context (#3037)

* fix: allow serverFn errors to also have context

* fix: allow errors, undefined from server functions

* remove logs

* fix: transformer and tests

* ci: apply automated fixes

* no logs

* fix conficts

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>

* release: v1.92.3

* move directive plugin to own package

* fixes, tests

* suggested fixes from sean

* fix tests

* fix: import specifier

* fix: dev imports

* fix: simpler config, better logging, more reliable plugin coordination

* fix: update test snapshots

* fix: non-split directives, clean up compilers, logging, and

* fix: production server fn builds

* feat(start): explicitly enable and disable route generation

* fix: $fetch during dev

* ci: apply automated fixes

* Update comparison.md

* docs: remove duplicate word (#3125)

* docs: remove duplicate word

* docs: correct typo in learn-the-basics.md

* chore: add skipLibCheck to examples (#3134)

* docs: Typo issue - getParent Does not Exists in type RouteOptions (#3131)

* docs: Fix notFound import (#3133)

* docs: fix dead link and typo in guide (#3136)

Typo introduced in https://github.com/TanStack/router/pull/2963.

* fix(react-router): separate internal and user provided history state (#3119)

* release: v1.95.2

* fix(router-generator) use explicit routes export by default (#3109)

Co-authored-by: Vladimir Panov <vladimir.panov@motorsport.com>

* fix(start): serialize `FormData` for server function input (#3138)

* release: v1.95.3

* test(react-router): check `FormData` serialization in transformer (#3139)

* docs(router): missing character in code-splitting guide (#3143)

* fix(create-start): readme changes and little fixes (#3142)

* release: v1.95.4

* fix(start): preserve multiple values for same key in `FormData` serialization (#3140)

Co-authored-by: SeanCassiere <33615041+SeanCassiere@users.noreply.github.com>

* release: v1.95.5

* docs(migrate): correct typo in migration documentation (#3153)

* docs(start): fix `FormData` server functions examples (#3062)

Co-authored-by: Sean Cassiere <33615041+SeanCassiere@users.noreply.github.com>

* docs(router): require the use of React's `createRoot` function (#3151)

Co-authored-by: Sean Cassiere <33615041+SeanCassiere@users.noreply.github.com>

* fix: order of injected scripts (#3158)

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>

* release: v1.95.6

* perf(start): reduce instantiations of server fn and middleware (again) (#3168)

* perf: reduce instantiations of server fns

* perf(start): reduce instantiations of middleware

* release: v1.95.7

* fix imports

* fix: build test

---------

Co-authored-by: Youssef Benlemlih <youssefbenlemlih7@gmail.com>
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
Co-authored-by: Manuel Schiller <manuel.schiller@caligano.de>
Co-authored-by: Tanner Linsley <tannerlinsley@users.noreply.github.com>
Co-authored-by: AlexisPin <72150908+AlexisPin@users.noreply.github.com>
Co-authored-by: timoconnellaus <tim.oconnell.australia@gmail.com>
Co-authored-by: Arnaud Kleinpeter <arnaud.kleinpeter@gmail.com>
Co-authored-by: Joshua Knauber <49953016+joshuaKnauber@users.noreply.github.com>
Co-authored-by: Sean Cassiere <33615041+SeanCassiere@users.noreply.github.com>
Co-authored-by: alakhpc <alakhpc@gmail.com>
Co-authored-by: Mark Vu <markvu.work@gmail.com>
Co-authored-by: Christopher Horobin <chrishorobin@hotmail.com>
Co-authored-by: Muthu Kumar <muthu32@users.noreply.github.com>
Co-authored-by: Jeff Hertzler <jeffhertzler@gmail.com>
Co-authored-by: Philippe Serhal <philippe.serhal@gmail.com>
Co-authored-by: Andrei <andreiradoidev@gmail.com>
Co-authored-by: Volodymyr <vpanov.me@gmail.com>
Co-authored-by: Vladimir Panov <vladimir.panov@motorsport.com>
Co-authored-by: pierluigigiancola <pierluigi.giancola@gmail.com>
Co-authored-by: Tom Ballinger <tom@convex.dev>
Co-authored-by: Ben Durrant <ben.durrant@marketdojo.com>
Co-authored-by: Lukas Frey <lukas.frey03@outlook.de>
Co-authored-by: John <12599934+jorroll@users.noreply.github.com>
2025-01-14 20:36:33 -07:00
Tanner Linsley
255f31603d release: v1.95.7 v1.95.7 2025-01-14 20:48:41 +00:00
Christopher Horobin
8ea6a7a0b3
perf(start): reduce instantiations of server fn and middleware (again) (#3168)
* perf: reduce instantiations of server fns

* perf(start): reduce instantiations of middleware
2025-01-14 21:42:43 +01:00
Tanner Linsley
13b76f7793 release: v1.95.6 v1.95.6 2025-01-14 00:52:46 +00:00
Manuel Schiller
6c400e160b
fix: order of injected scripts (#3158)
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2025-01-14 01:51:20 +01:00
John
bea54d1f4b
docs(router): require the use of React's createRoot function (#3151)
Co-authored-by: Sean Cassiere <33615041+SeanCassiere@users.noreply.github.com>
2025-01-14 10:50:40 +13:00
Lukas Frey
a7fece12f6
docs(start): fix FormData server functions examples (#3062)
Co-authored-by: Sean Cassiere <33615041+SeanCassiere@users.noreply.github.com>
2025-01-14 10:37:01 +13:00
Mark Vu
9bdaf1cb84
docs(migrate): correct typo in migration documentation (#3153) 2025-01-13 21:41:20 +01:00
Tanner Linsley
999664edc2 release: v1.95.5 v1.95.5 2025-01-13 00:02:23 +00:00
Ben Durrant
72fbd4c99a
fix(start): preserve multiple values for same key in FormData serialization (#3140)
Co-authored-by: SeanCassiere <33615041+SeanCassiere@users.noreply.github.com>
2025-01-13 12:55:58 +13:00
Tanner Linsley
13c750bfda release: v1.95.4 v1.95.4 2025-01-12 17:28:26 +00:00
Tom Ballinger
e39eee540d
fix(create-start): readme changes and little fixes (#3142) 2025-01-13 06:26:20 +13:00
pierluigigiancola
9c9d0f413a
docs(router): missing character in code-splitting guide (#3143) 2025-01-12 14:25:20 +13:00
Sean Cassiere
40f9f49e4b
test(react-router): check FormData serialization in transformer (#3139) 2025-01-11 00:13:09 +13:00
Tanner Linsley
be9d90df62 release: v1.95.3 v1.95.3 2025-01-10 10:07:32 +00:00
Sean Cassiere
058756acdf
fix(start): serialize FormData for server function input (#3138) 2025-01-10 23:06:08 +13:00
Volodymyr
ab5a21b733
fix(router-generator) use explicit routes export by default (#3109)
Co-authored-by: Vladimir Panov <vladimir.panov@motorsport.com>
2025-01-10 14:51:39 +13:00
Tanner Linsley
8e1cda896c release: v1.95.2 v1.95.2 2025-01-10 01:32:52 +00:00
Andrei
814ebfe0d2
fix(react-router): separate internal and user provided history state (#3119) 2025-01-10 14:26:50 +13:00
Philippe Serhal
9f028a5dc1
docs: fix dead link and typo in guide (#3136)
Typo introduced in https://github.com/TanStack/router/pull/2963.
2025-01-10 00:28:58 +01:00
Jeff Hertzler
c99a4be036
docs: Fix notFound import (#3133) 2025-01-09 22:32:47 +01:00
Muthu Kumar
e59268766c
docs: Typo issue - getParent Does not Exists in type RouteOptions (#3131) 2025-01-09 22:31:38 +01:00
Christopher Horobin
f44e2a2b87
chore: add skipLibCheck to examples (#3134) 2025-01-09 20:53:15 +01:00
Mark Vu
07fc9412fc
docs: remove duplicate word (#3125)
* docs: remove duplicate word

* docs: correct typo in learn-the-basics.md
2025-01-08 21:35:16 +01:00
Tanner Linsley
93c4dc6464
Update comparison.md 2025-01-08 09:44:20 -07:00
Tanner Linsley
2088be2a2a release: v1.95.1 v1.95.1 2025-01-04 17:50:51 +00:00
Christopher Horobin
04802fb65a
fix: make to required if from is not set (#3099)
* fix: make `to` required if `from` is not set

* chore: fix build
2025-01-04 18:48:57 +01:00
Tanner Linsley
5c8c38a0e2 release: v1.95.0 v1.95.0 2025-01-03 20:22:03 +00:00
Tom Rehnström
366848eb0e
feat(react-router): add useCanGoBack (#3017)
also fixes that history does not notify twice for certain actions
2025-01-03 21:09:58 +01:00
Billy Jacoby
c5d141b5a5
docs: learn-the-basics.md (#3102) 2025-01-03 20:17:16 +01:00
hasnum
6b64e125cf
docs: remove unnecessary punctuation (#3105) 2025-01-03 20:17:00 +01:00
Tanner Linsley
ff1de37681 release: v1.94.1 v1.94.1 2025-01-03 02:04:13 +00:00
Manuel Schiller
224a261ab0
fix(react-router): properly handle redirects when thrown during parallel preload (#3103)
fixes #3097
2025-01-03 03:02:44 +01:00
Tanner Linsley
0718fb8d2a release: v1.94.0 v1.94.0 2025-01-02 22:10:05 +00:00
Christopher Horobin
446f033755
feat: allow arrays for linkOptions and add ValidateLinkOptions (#3098)
* feat: allow arrays for `linkOptions` and add `ValidateLinkOptions`

* chore: fix build
2025-01-02 23:08:46 +01:00
Tanner Linsley
221e5a7dde release: v1.93.0 v1.93.0 2025-01-01 19:08:14 +00:00