Tanner Linsley
37579582fa
fix: no extra context, throw errors from middleware
2024-12-23 11:57:43 -07:00
Tanner Linsley
405a60a4c5
release: v1.92.3
v1.92.3
2024-12-23 06:27:48 +00:00
Tanner Linsley
ebf67cab35
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>
2024-12-22 23:25:53 -07:00
Tanner Linsley
b2ee838a8e
release: v1.92.2
v1.92.2
2024-12-22 20:58:48 +00:00
alakhpc
4a7d3ca689
fix(start): returning null from server functions ( #3048 )
...
Co-authored-by: SeanCassiere <33615041+SeanCassiere@users.noreply.github.com>
2024-12-23 09:50:11 +13:00
Tanner Linsley
3505a1ff22
release: v1.92.1
v1.92.1
2024-12-21 23:54:12 +00:00
Joshua Knauber
72b7c82ac5
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>
2024-12-22 12:49:06 +13:00
Tanner Linsley
e44bec81b1
release: v1.92.0
v1.92.0
2024-12-20 10:56:38 +00:00
Arnaud Kleinpeter
6d810d7f58
docs: Minor typo in middleware.md ( #3042 )
2024-12-20 11:53:13 +01:00
timoconnellaus
f3de244ea7
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>
2024-12-20 00:36:02 +01:00
AlexisPin
38702a8994
docs: minor typo in code-based-routing.md ( #3043 )
2024-12-19 18:03:08 +01:00
Tanner Linsley
dc3502ba39
release: v1.91.3
v1.91.3
2024-12-19 02:32:54 +00:00
Manuel Schiller
347544cc3b
fix(react-router): make sure full matches are passed into route functions ( #3039 )
2024-12-19 03:31:35 +01:00
autofix-ci[bot]
253284a196
ci: apply automated fixes
2024-12-18 21:20:21 +00:00
Youssef Benlemlih
8a09e261bf
docs: add custom link example for mantine ( #3033 )
2024-12-18 22:19:11 +01:00
Tanner Linsley
dbdd43a71c
release: v1.91.2
v1.91.2
2024-12-17 10:55:09 +00:00
Manuel Schiller
6b3703feb6
tests: disable flaky test
2024-12-17 11:51:14 +01:00
Manuel Schiller
9bf39d60c2
fix type error
2024-12-17 11:44:46 +01:00
Manuel Schiller
f85edf2e87
fix(react-router): do not preload links with reloadDocument: true
2024-12-17 11:39:25 +01:00
Tanner Linsley
9559b9cebe
release: v1.91.1
v1.91.1
2024-12-17 10:15:19 +00:00
Manuel Schiller
7b66844bbd
fix(react-router): do not treat internal link with reloadDocument: true as external
2024-12-17 11:04:01 +01:00
Manuel Schiller
8ff8f748d1
fix(react-router): prevent reloadDocument to be passed to the DOM element
2024-12-17 10:52:57 +01:00
Manuel Schiller
bc9f9ed6c2
chore: update babel-dead-code-elimination
2024-12-17 10:52:20 +01:00
Tanner Linsley
b13c6d7ce1
release: v1.91.0
v1.91.0
2024-12-17 00:50:42 +00:00
Anton Kuznetsov
96a7beebd1
docs: Update file-based-routing.md ( #3026 )
2024-12-17 01:46:59 +01:00
akhmadshin
02a4957b64
feat(react-router): allow to preload route chunk ( #3016 )
...
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
Co-authored-by: Manuel Schiller <manuel.schiller@caligano.de>
2024-12-16 23:42:34 +01:00
Manuel Schiller
3f1c9ac5b3
chore: update babel-dead-code-elimination ( #3025 )
2024-12-16 23:42:18 +01:00
Christopher Horobin
cb1b65e2b3
perf(react-router): improve resolve relative route and use intersections for checking path ( #2425 )
...
* perf(react-router): improve resolve relative route and use intersections for checking path
* perf(react-router): use a few more intersections
* fix: allow string to
* chore: work in progress
* chore: fix tests
* feat: add type primitives
* feat: add more type primitives
* ci: apply automated fixes
* chore: fix build
* refactor: rename to paths
---------
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2024-12-16 23:41:29 +01:00
Manuel Schiller
f73b5ddeea
chore: removed unused dependencies ( #3024 )
2024-12-16 23:28:15 +01:00
Chris Hudson
fb016b8115
docs: clarify server functions cannot be called from Api Routes; capitalize API Routes as they are a noun and consistency with API Routes page. ( #3021 )
2024-12-16 23:26:06 +01:00
Tanner Linsley
ac023b1c24
release: v1.90.1
v1.90.1
2024-12-16 16:13:08 +00:00
Manuel Schiller
24217f84d5
fix(start): try/catch around renderToPipeableStream for React 19 ( #3020 )
...
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2024-12-16 17:10:27 +01:00
reihwald
f063b49b41
docs: Slightly improve navigation-blocking.md to avoid confusion ( #3015 )
2024-12-15 14:42:24 +01:00
Manuel Schiller
437fb7457a
docs(react-router): fix blocker doc
2024-12-15 11:21:21 +01:00
Tanner Linsley
e2004c1428
release: v1.90.0
v1.90.0
2024-12-15 09:37:44 +00:00
Tom Rehnström
f420670bf2
feat(react-router): update useBlocker hook to provide current and next location when conditionally blocking ( #1790 )
...
* chore: clean up changes
* feat: clean up work and address feedback
* feat: add backwards compat
* ci: apply automated fixes
* feat: give history action to subscribers via notify
* fix: provide go index to history subscribers
* docs: updated docs accourding to feedback
* fix: changed valid notify call
* rename to `type`
* remove non existing `pushstate`event
* cleanup
* typesafe API for shouldBlockFn
* feat: added blocking state to resolver and updated examples
* docs: updated useBlocker and navigation-blocking docs
* test: added type tests to blocker and changed type implementation of blocker
* test: added better unit tests for useBlocker hook
* test: added e2e tests for blocker and legacy blocker
* wip: stash files before merge
* fix: unstashed e2e file after merge
* fix lockfile
* docs
* typesafety for `<Block>`
* always return resolver to not break backwards compatibility
* fix: removed zod from navigation blocking example to fix build problem
* chore: update lock file
* finishing touches
* ci: apply automated fixes
---------
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
Co-authored-by: Manuel Schiller <manuel.schiller@caligano.de>
2024-12-15 10:32:16 +01:00
Tanner Linsley
4531b70d4c
release: v1.89.2
v1.89.2
2024-12-15 00:29:55 +00:00
Tyler Jones
6e4ff67640
fix(react-router): use correct type for TRouter generic ( #2998 )
2024-12-15 01:25:17 +01:00
Tanner Linsley
d4fe418a11
release: v1.89.1
v1.89.1
2024-12-14 21:47:35 +00:00
Manuel Schiller
f355ae1ed4
fix(react-router): useMatch returns union of matches when strict = false ( #3013 )
2024-12-14 22:46:14 +01:00
Tanner Linsley
5b92314c03
release: v1.89.0
v1.89.0
2024-12-14 08:03:35 +00:00
Josh Slate
92147140c8
feat(react-router): implement hash change "Scroll Into View" option ( #2996 )
...
* feat: implement hash change scrollIntoView option
* e2e tests for hash change scroll behavior
* update e2e tests to use data-testId
* address feedback
* remove accidental change to package.json
* add anchor link to example navigation
* ci: apply automated fixes
* handle when location transitions without commitLocation running
---------
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2024-12-14 08:58:03 +01:00
Josh Kelley
e5f7a8cc16
Update React Router 7 bundle size ( #3006 )
...
As of React Router 7, [everything is in the `react-router` package](https://reactrouter.com/upgrading/v6#upgrade-to-v7 ), and `react-router-dom` just re-exports `react-router` for compatibility.
2024-12-13 21:06:08 +01:00
Tanner Linsley
6e8967f419
release: v1.88.0
v1.88.0
2024-12-13 11:30:57 +00:00
Manuel Schiller
5ad95cf3f7
feat(react-router): allow to redirect to external targets, add reloadDocument option ( #3004 )
...
* feat(react-router): allow to redirect to external targets, add `reloadDocument` option
* ci: apply automated fixes
---------
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2024-12-13 12:29:33 +01:00
Tanner Linsley
ccf7972626
release: v1.87.14
v1.87.14
2024-12-12 23:02:41 +00:00
Manuel Schiller
739f4ed7f1
fix(start-vite-plugin): correctly generate source maps
2024-12-12 23:56:31 +01:00
Tanner Linsley
7190a61737
release: v1.87.13
v1.87.13
2024-12-12 22:45:35 +00:00
Manuel Schiller
48c13d3fc6
fix(router-plugin): correctly generate source maps for automatic code splitting ( #2997 )
2024-12-12 23:41:51 +01:00
Tanner Linsley
a91cfd9e29
release: v1.87.12
v1.87.12
2024-12-12 18:59:36 +00:00