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
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
Christopher Horobin
ec50a80237
fix(react-router): allow union when assigning (#2994) 2024-12-12 19:58:09 +01:00
David Turissini
a36589640b
tests: awaiting toMatchFileSnapshot and .rejects statements in vitest files (#2984)
Co-authored-by: David Turissini <davidturissini@Melissas-Air.home>
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2024-12-12 09:26:59 +01:00
Tanner Linsley
a6dd6bfc18 release: v1.87.11 v1.87.11 2024-12-12 07:50:46 +00:00
Tanner Linsley
1c772baf49 fix: don't output debug ast 2024-12-12 00:45:32 -07:00
Tanner Linsley
f28eed0e25 release: v1.87.10 v1.87.10 2024-12-12 06:58:37 +00:00
Tanner Linsley
22ba755b2a
fix: improve babel parsing/generation reliability
* fix: attempt fix DCE

* fix: clean up babel parsing and generation, upgrade deps, adding debug

* fix: remove unnecessary test
2024-12-11 23:55:26 -07:00
Tanner Linsley
35af575ab4 release: v1.87.9 v1.87.9 2024-12-11 20:36:00 +00:00
Tanner Linsley
8d2bf10763 Merge branch 'main' of https://github.com/TanStack/router 2024-12-11 13:31:43 -07:00
Tanner Linsley
8306ea921b fix: better _TSR_ check 2024-12-11 13:30:51 -07:00
Tanner Linsley
0751fc78e0 release: v1.87.8 v1.87.8 2024-12-11 20:18:56 +00:00
Tanner Linsley
7bafba1652 Merge branch 'main' of https://github.com/TanStack/router 2024-12-11 13:13:15 -07:00
Tanner Linsley
7851238e64 fix: ensure _TSR_ before cleaning scripts 2024-12-11 13:13:09 -07:00