Tanner Linsley
4ef78725af
docs: prep for migration of tanstack.com to TSR ( #1419 )
2024-04-02 16:46:22 -06:00
Tanner Linsley
0ba67ee235
release: v1.26.6
v1.26.6
2024-04-02 17:53:49 +00:00
Tanner Linsley
de40b30ad6
fix: no debugging on experimental features
2024-04-02 11:51:45 -06:00
Manuel Schiller
6858d28fd5
fix: do not include tests in package ( #1417 )
...
fixes #1412
2024-04-02 19:33:10 +02:00
Tanner Linsley
7d3bab6510
release: v1.26.5
v1.26.5
2024-04-02 17:15:10 +00:00
advancedtw
8fe3a36dd0
fix(react-router-server): do not spread a key prop including keys from manifest ( #1413 )
...
* fix(react-router-server): do not spread a key prop including keys from manisfest
* fix eslint error Array type using T[]
2024-04-03 06:13:00 +13:00
Kevin Herklotz
40af8ec334
docs: broken link to "using search params in loaders" in data-loading.md from search-params.md ( #1416 )
2024-04-03 06:12:40 +13:00
Tanner Linsley
6cdc6dfaef
release: v1.26.4
v1.26.4
2024-04-02 08:45:31 +00:00
Sean Cassiere
2c9987e95d
fix(react-router): using the initialized history instance for creating the href on the Link component ( #1414 )
2024-04-02 21:43:33 +13:00
Tanner Linsley
a95f2fcd73
release: v1.26.3
v1.26.3
2024-04-01 12:52:51 +00:00
Sean Cassiere
b8a043fc4d
fix(history): subscribers not being notified on go, back, and forward events affecting the memory router ( #1408 )
2024-04-01 14:50:37 +02:00
ajschlosser
d2c12172e6
Update quick-start.md to include installation of devtools cited throughout rest of document ( #1403 )
2024-03-31 19:35:17 -06:00
Tanner Linsley
9a37006ae1
release: v1.26.2
v1.26.2
2024-03-31 07:36:36 +00:00
Sean Cassiere
4c79bc866b
fix(react-router-server): do not spread a key prop inside the <Asset> component ( #1399 )
...
* fix(react-router-server): dont spread the `key`
* feat(react-router-server): using the same keys as before
* feat(react-router-server): fallbacks
* feat(react-router-server): just use something simple
2024-03-31 01:35:06 -06:00
Leonardo Montini
e84815cdc0
docs: improve links to not found pages ( #1396 )
2024-03-31 00:56:55 +13:00
Tanner Linsley
481b4c8a34
release: v1.26.1
v1.26.1
2024-03-30 05:44:18 +00:00
Jason Galea
469a833dce
fix: prevent undefined values in props returned by useLinkProps for external links ( #1395 )
2024-03-30 06:42:03 +01:00
Tanner Linsley
eb2ea8bc59
release: v1.26.0
v1.26.0
2024-03-29 22:33:53 +00:00
Manuel Schiller
f5cea3a571
chore: remove export of internal component ( #1394 )
2024-03-29 23:31:48 +01:00
Dominik Dorfmeister
9f9b847ea7
feat: add reset prop to errorComponent ( #1358 )
...
* feat: add reset prop to errorComponent
* fix: types of defaultErrorComponent
* fix: put match into pending state when being invalidated if it was in error state
* docs: reset
* docs: error handling
* docs: integrate error handling into example
* chore: prettier on md files
* chore: fix wrong auto import
* fix: reset error boundaries from react-query in an effect
so that navigating away from a route will also re-trigger the query
* docs: error handling with TanStack Query
* chore: fix eslint
* fix: not all error components have a `preload`
* fix: merge conflict
2024-03-29 23:21:04 +01:00
Manuel Schiller
190c921726
fix: correctly support to for unions which include the index route / ( #1393 )
...
* fix: correctly support `to` for unions which include the index route `/`
* chore: ignore snapshots from formatting
2024-03-29 23:20:54 +01:00
Tanner Linsley
da949949ab
release: v1.25.1
v1.25.1
2024-03-29 20:01:09 +00:00
Jason Galea
add3bd67d9
fix: prevent props being populated with undefined or empty values ( #1386 )
2024-03-29 20:58:35 +01:00
Tanner Linsley
f9a3973f4a
release: v1.25.0
v1.25.0
2024-03-29 17:05:53 +00:00
Tanner Linsley
482f50d1e7
tests: fix tests
2024-03-29 11:03:44 -06:00
Tanner Linsley
72593f0c2d
feat: experimental codesplitting
2024-03-29 10:49:30 -06:00
Tanner Linsley
527e52d96a
release: v1.24.1
v1.24.1
2024-03-28 22:42:41 +00:00
Sean Cassiere
eb87c1827d
refactor(router-vite-plugin): trigger the route-tree generation using the watchChange hook ( #1378 )
...
* feat(router-vite-plugin): trigger router-generator on all events
* feat: safe-guard against additional future events being added in
* feat(router-vite-plugin): use the watchChange hook to handle the route-tree generation
2024-03-29 11:41:04 +13:00
Tanner Linsley
10b8396c67
release: v1.24.0
v1.24.0
2024-03-28 18:08:09 +00:00
Sean Cassiere
5eba66bb80
feat(react-router): implement the typed useNavigate hook onto the Route and LazyRoute class ( #1385 )
...
* feat(react-router): return the useNavigate hook
* docs(react-router): update verbiage on the RouteClass doc
* test(react-router): ensure the typed hooks are available across the shared surfaces
2024-03-28 19:06:16 +01:00
Tanner Linsley
8b1e79c513
release: v1.23.1
v1.23.1
2024-03-28 03:30:45 +00:00
Sean Cassiere
74ca8a293e
chore: fix eslint errors being thrown on the basic example ( #1383 )
2024-03-28 16:28:38 +13:00
Sean Cassiere
7de90af88e
refactor: explicit re-exports for the packages ( #1374 )
...
* refactor(react-router): tanstack history
* refactor(react-router): not-found
* refactor(react-router): utils
* refactor(react-router): useRouterState
* refactor(react-router): useRouter
* refactor(react-router): useRouteContext
* refactor(react-router): routerContext
* refactor(react-router): useSearch
* refactor(react-router): useParams
* refactor(react-router): useNavigate
* refactor(react-router): useBlocker
* refactor(react-router): searchParams
* refactor(react-router): scroll-restoration
* refactor(react-router): RouterProvider
* refactor(react-router): router
* refactor(react-router): routeInfo
* refactor(react-router): route
* refactor(react-router): redirects
* refactor(react-router): qss
* refactor(react-router): path
* refactor(react-router): Mathes
* refactor(react-router): location
* refactor(react-router): link
* refactor(react-router): lazyRouteComponent
* refactor(react-router): fileRoute
* fix(react-router): all other functions from `utils` and the `getRenderedMatches` function from `Matches`
* refactor(react-router): CatchBoundary
* refactor(react-router): defer
* refactor(react-router): awaited
* refactor(react-router-server): Asset
* revert(react-router-server): Asset
* refactor(react-router-server): Asset
* refactor(react-router-server): createServerFn
* refactor(react-router-server): DehydrateRouter
* refactor(react-router-server): getManifestAssets
* refactor(react-router-server): json
* refactor(react-router-server): Meta
* refactor(react-router-server): RouterManagedTag
* refactor(Scripts):
* refactor(react-router-server): StartClient
* refactor(react-router-server): Scripts
* refactor(react-router-server): transformStreamWithRouter
* refactor(router-devtools): devtools
* refactor(react-router): HistoryState
* fix(react-router): missing ToPathOption type
* fix: missing type exports from `route`
* fix(react-router): missing types for `router`
2024-03-28 16:10:15 +13:00
Sean Cassiere
9d099dd755
docs: add reference pages for createLazyFileRoute and createLazyRoute ( #1379 )
...
* docs: add createLazyFileRoute
* docs: broken link to the FileRouteClass
* docs: remove the word literal
* docs: update the source of its configuration options
* docs: add createLazyRoute
2024-03-27 21:38:59 +13:00
Tanner Linsley
f6207ebb40
release: v1.23.0
v1.23.0
2024-03-27 04:56:26 +00:00
Sean Cassiere
c15f399e79
feat(router-generator): add option to format with semicolons in the generated route-tree ( #1376 )
...
* feat(router-generator): expose config to accept `semicolons` prop to prettier format with semicolons
* docs(router-generator): document the new `semicolons` configuration property
2024-03-27 05:54:07 +01:00
Valeriy Kobzar
9181cad9d7
docs: fix incorrect naming of parameters on the guide for not-found-errors ( #1377 )
...
Fixed a bug in the parameter name for the notFound function. Instead of 'route', it should use 'routeId'.
2024-03-27 17:16:05 +13:00
Tanner Linsley
5c7a180a34
release: v1.22.9
v1.22.9
2024-03-27 01:15:51 +00:00
Hans Yulian
4003b6bd39
fix(react-router): trailing slash shouldn't fail the path matching ( #1372 )
...
* fix: trailing slash shouldn't fail the path matching
* prettier fix
2024-03-27 14:13:09 +13:00
Tanner Linsley
fb3deb7f86
release: v1.22.8
v1.22.8
2024-03-26 13:21:46 +00:00
Dominik Dorfmeister
b6595b9865
fix: rename component created by createLink ( #1373 )
...
because if it's named `Link`, the world explodes
2024-03-26 14:18:12 +01:00
Dominik Dorfmeister
4972e945c5
ci: execute type checks against multiple TS versions ( #1367 )
...
* fix: peerDependencies
* docs: requirements
* ci: run type tests against multiple TS versions
* chore: newline
* chore: fix prettier
* fix: wrappers must return a JSX Element
* fix: have Explorer return JSX.Element
* fix: another one
2024-03-26 10:12:00 +01:00
Tanner Linsley
4e9c1acc67
release: v1.22.7
v1.22.7
2024-03-26 09:05:24 +00:00
Rudolf Halas
bfd9858146
fix: only show pending component for routes with a loader ( #1370 )
...
Co-authored-by: Dominik Dorfmeister <office@dorfmeister.cc>
2024-03-26 10:02:13 +01:00
Tanner Linsley
72f18683e2
release: v1.22.6
v1.22.6
2024-03-26 08:10:13 +00:00
Dominik Dorfmeister
41391cdd4a
refactor: eslint ( #1365 )
...
* feat: eslint
bring over the configs from the query repo
* refactor: auto fix history package
* refactor: manually fix history package
* refactor(react-cross-context): eslint
* refactor(react-router-server): eslint auto fix
* refactor(react-router-server): eslint manual fixes
* refactor(react-cli): auto fix eslint
* refactor(react-cli): manual fix eslint
* refactor(router-devtools): auto fix eslint
* refactor(router-devtools): manual fix eslint
* chore: prettier --write
* refactor(router-generator): auto fix eslint
* refactor(router-generator): manual fix eslint
* refactor(router-vite-plugin): auto fix eslint
* refactor(react-router): auto fix eslint
* refactor(react-router): manual fix eslint
* fix: revert some destructive changes
* refactor: fix remaining errors
* some more disables
* fix: eslint
2024-03-26 09:08:49 +01:00
Sean Cassiere
7d8b9e0b9c
docs: fixing the syntactically broken links within the documentation ( #1369 )
...
* docs: broken link linking to the SSR guide
* docs: broken link linking to the `RouterOptionsType#transformer-property`
* docs: fix broken link linking to code-splitting
* docs: fix broken link linking to the `RouterOptionsType`
* docs: fix broken link linking to external-data-loading
2024-03-26 10:44:17 +13:00
Sean Cassiere
cf5d136aa4
docs: include "layout" next to pathless routes and move "routing concepts" to its own page ( #1362 )
...
* docs: include layout as part of the pathless routes section
* docs: add links to the individual sections below
* docs: links for the route nesting stuff
* docs: move the routing concepts section to separate page
2024-03-26 09:45:55 +13:00
Leonardo Montini
59bb2604f2
docs: remove __404 mentions ( #1341 )
2024-03-25 16:34:49 +01:00
Tanner Linsley
1b35e57c6b
release: v1.22.5
v1.22.5
2024-03-25 14:44:19 +00:00