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

6,614 commits

Author SHA1 Message Date
Tanner Linsley
b7c0575b05 fix: utilize the new shell 2024-05-03 10:16:52 -06:00
Tanner Linsley
221e6033d6 release: v1.31.12 v1.31.12 2024-05-03 16:13:36 +00:00
Tanner Linsley
0695f07005 fix: move shellComponent to root route options only 2024-05-03 10:11:16 -06:00
Tanner Linsley
418e60769a release: v1.31.11 v1.31.11 2024-05-03 16:03:55 +00:00
Tanner Linsley
c3727978f2 fix: add shellComponent route options for SSR purposes 2024-05-03 10:01:43 -06:00
Tanner Linsley
babbe90631 release: v1.31.10 v1.31.10 2024-05-03 15:38:12 +00:00
Tanner Linsley
036c12ea72 fix: bring back root suspense 2024-05-03 09:35:28 -06:00
Tanner Linsley
f5767cb974 release: v1.31.9 v1.31.9 2024-05-03 06:02:43 +00:00
Tanner Linsley
678faac8ff fix: appease types 2024-05-03 00:00:34 -06:00
Tanner Linsley
7eb81765e5 fix: experimental shell rendering strategy 2024-05-02 23:56:44 -06:00
Tanner Linsley
2ad335fac9 release: v1.31.8 v1.31.8 2024-05-03 01:13:59 +00:00
Tanner Linsley
f67bb5ab17 fix: remove deferred data on exec 2024-05-02 19:11:47 -06:00
Tanner Linsley
7453afb952 release: v1.31.7 v1.31.7 2024-05-02 22:00:52 +00:00
Ciarán Curley
ba6e304679
fix(react-router): changing path params without specifying the to destination (#1548)
* test(react-router): test router.navigate with params

* test(react-router): test router.navigate with params

* fix: move tests to dedicated redirects file

* test(react-router): more complex tests for multiple params

* test(react-router): refactor tests

* fix: make tests pass

* chore: removed unused route exports

* chore: copy changes

* style(react-router): prettier

Co-Authored-By: Ciarán Curley <ciaran.curley.11.11@gmail.com>

* test(react-router): streamline the tests

* test(react-router): remove the tests from here since they've been moved

* test: test both object and function syntax

---------

Co-authored-by: Ciarán Curley <ciaran.curley@apata.io>
Co-authored-by: SeanCassiere <33615041+SeanCassiere@users.noreply.github.com>
2024-05-03 09:59:09 +12:00
Tanner Linsley
61ecd34f05 release: v1.31.6 v1.31.6 2024-05-02 00:02:28 +00:00
Sean Cassiere
679b5b075b
fix(react-router): viewTransition property not being respected during navigation on <Link> and useNavigate() (#1547)
* fix(react-router): respect the view transition preference on the `<Link>` component

* fix(react-router): make sense the viewTransition property works for router.navigate
2024-05-02 12:00:53 +12:00
Tanner Linsley
c56dcf4fbd release: v1.31.5 2024-05-01 16:29:55 -06:00
Tanner Linsley
f3d0380f3a fix: proper reloading after redirects, reload when navigating to the same exact URL
Fixes #1541
Fixes #1537
Fixes #1534
Fixes #1528
2024-05-01 16:29:55 -06:00
Tanner Linsley
a4a5b5e568 release: v1.31.4 v1.31.4 2024-05-01 08:51:07 +00:00
Sean Cassiere
fbf1d0299d
fix: persisting the 'disabled' prop for custom link elements using createLink (#1544)
* fix(react-router): do not remove the disabled prop for `_asChild` links

* refactor(react-router): useLinkProps always returns a `disabled` boolean

* test(react-router): make sure this works as exptected

* test(react-router): tests to include other props

* test: use queryByText
2024-05-01 20:49:21 +12:00
Tanner Linsley
7507443205 release: v1.31.3 v1.31.3 2024-04-29 19:53:01 +00:00
Christopher Horobin
e0597e4bb8
fix: to should autocomplete for MatchRoute (#1535) 2024-04-29 21:51:23 +02:00
Tanner Linsley
76e7681967 release: v1.31.2 v1.31.2 2024-04-29 15:05:54 +00:00
Tanner Linsley
69fe04a5c2 fix: properly handle redirects in load 2024-04-29 09:03:40 -06:00
Tanner Linsley
7987a892cb fix: devtools 2024-04-26 14:47:05 -06:00
Tanner Linsley
6486b8e92c fix: properly handle redirects across server, pending, and transitioning navigations
Fixes #1523
2024-04-26 14:45:43 -06:00
Sean Cassiere
b7c0c51d6a
docs(examples): cleanup the basic-file-based example (#1524)
* chore: remove vanilla-extract

* chore: cleanup vite config

* chore: cleanup the example
2024-04-26 17:09:18 +12:00
Tanner Linsley
e02269b940 release: v1.31.1 v1.31.1 2024-04-25 20:25:10 +00:00
Manuel Schiller
c13eeaf63e fix: type error in devtools 2024-04-25 22:22:42 +02:00
Tanner Linsley
bc0cdb8ee4 types: [] to Array<> 2024-04-25 13:49:10 -06:00
Tanner Linsley
791e08dd00 fix: Handle client-only first-load redirects and not founds properly
Fixes #1480
2024-04-25 13:48:46 -06:00
Tanner Linsley
91bf1bc42a fix: persist path params between like-links, better debouncing for beforeLoad
Fixes #1474
2024-04-25 12:39:33 -06:00
Tanner Linsley
6dd2c7e06e release: v1.31.0 v1.31.0 2024-04-25 18:07:13 +00:00
Christopher Horobin
167ac74445
feat: trailingSlashes option on the type level (#1509)
* feat: infer trailing slash option from router to use at the type level

- always will always add trailing slashes to the leaves of `to` prop
- never will always remove trailing slashes from the leaves of `to` prop
- preserve will allow both paths with or without slashes

* fix: allow branches but not when there is an index route
2024-04-25 20:05:34 +02:00
Tanner Linsley
230d9e829b release: v1.30.1 v1.30.1 2024-04-25 10:06:34 +00:00
Sean Cassiere
4327ed75d9
fix(react-router): encoding of / in path parameters (#1520)
* fix(react-router): using encodeURIComponent on all params except the splat params

* test(react-router): checking the functionality of the new path param encoding changes

* test(react-router): description naming

* test(react-router): make the expected test results static

* chore: make the comment more relevant
2024-04-25 22:04:47 +12:00
Sean Cassiere
5035865f87
docs: add a callout in the file-based routing options about not conflicting with the naming conventions (#1519)
* docs: callouts in the file-based routing conventions

* docs: make the callouts related their properties/options

* docs: emojis!

* docs: add a callout in the "file-naming conventions" section

* docs: use a single callout in the "options" sections

* docs: better callout in the 'file-naming conventioned' section

* docs: missing words

* docs: that should be it

* docs: be a bit more obvious about the `-`
2024-04-25 22:04:27 +12:00
Sean Cassiere
d7223f95db
docs(examples): update the authenticated-routes example to no longer use flushSync (#1507) 2024-04-22 19:31:15 +12:00
Sean Cassiere
00fb7a5a71
docs(examples): update the authenticated-routes example to use layout routes (#1505)
* docs: rename the authenticated-routes example

* docs: update the authenticated-routes example to use layouts

* docs: trim up the authenticated routes example

* docs: default navigation to `/dashboard`

* docs: add auth persistence
2024-04-22 14:35:22 +12:00
Tanner Linsley
90dc6046b9 release: v1.30.0 v1.30.0 2024-04-21 02:04:35 +00:00
Sean Cassiere
94ffb85bc4
feat(router-generator): prepend and append header and footer content to the generated route-tree file as defined by the user (#1502)
* feat(router-generator): append and prepend lines to the generated route-tree

* test(router-generator): making sure it works!

* refactor(router-generator): rename the prepend and append properties

* docs: docs on the new prepend and append functionality

* refactor(router-generator): update configuration property names

* test(router-generator): update the tests with the new configuration property names

* docs: update file-based routing guide with the new property names

* refactor(router-generator): move to the defaults

* test(router-generator): updated test output

* docs: show what the defaults are on the docs
2024-04-21 14:02:14 +12:00
Sean Cassiere
052e940d47
docs: adding file-routes to the react-location migration guide (#1501) 2024-04-21 00:00:19 +12:00
Sean Cassiere
5d3c1f8b2c
docs: add an outlet on the posts.tsx page (#1498) 2024-04-20 17:53:51 +12:00
Sean Cassiere
bc616f1e62
docs: add migration guide for react-location (#1497)
* docs: add migration guide for react-location

* chore: show the react-location migration guide

* docs: remove the word "over"

* docs: make ssr a guide to feature
2024-04-20 17:10:23 +12:00
Tanner Linsley
c2f0f19724 release: v1.29.2 v1.29.2 2024-04-19 21:58:58 +00:00
Sean Cassiere
00fb855c4e
fix(react-router): stabilizing the encoding of path parameters (#1490)
* fix(react-router): encodeURI the parameters when building the pathname before commit

* chore(react-router): add a good comment so we dont nuke this in the future

* test(react-router): add tests to confirm functionality of the path params changes

* chore: ignore the `*.vitest-temp.json` files

* chore: delete `tsconfig.vitest-temp.json`
2024-04-20 09:56:09 +12:00
Tanner Linsley
b05c392ce5 release: v1.29.1 v1.29.1 2024-04-19 21:49:05 +00:00
Christopher Horobin
09a09f1986
fix: only allow leaf nodes as to suggestions (#1495) 2024-04-19 23:46:25 +02:00
Tanner Linsley
b51cab202e release: v1.29.0 v1.29.0 2024-04-19 20:30:34 +00:00
Manuel Schiller
e08b881358
feat: strong typing for onEnter, onStay and onLeave (#1479) 2024-04-19 22:28:28 +02:00