Tanner Linsley
05941e5ef2
release: v1.33.5
v1.33.5
2024-05-19 03:23:26 +00:00
Tanner Linsley
cb80816603
fix(start): config for RSCs... almost
2024-05-18 21:06:34 -06:00
Sean Cassiere
ab02f3ebd3
docs: moving reference content out of the class files ( #1633 )
...
* RouterType
* RouteApiType
* RouteType
* ParsedLocation linking
* linking RouterType, RouteType, and RouteApiType
* reduce SearchParamOptionsType and PathParamOptionsType into ToOptionsType
* useLinkProps
* forgot to remove that
* more
2024-05-19 14:52:44 +12:00
Tanner Linsley
1ce9e99fb9
release: v1.33.4
v1.33.4
2024-05-18 23:19:28 +00:00
Sean Cassiere
26a8fd7923
fix(react-router): remove an unneeded console.log('trigger') line ( #1632 )
2024-05-19 11:17:33 +12:00
Tanner Linsley
55b5205eed
release: v1.33.3
v1.33.3
2024-05-18 21:45:21 +00:00
Dominik Dorfmeister
099aa926ef
refactor: JsDoc for RouterOptions ( #1631 )
2024-05-18 23:43:29 +02:00
Tanner Linsley
34ed411cca
examples: update dependencies
2024-05-18 12:19:42 -06:00
Tanner Linsley
17a9430689
examples: don't pnpm-lock the start-basic example
2024-05-18 12:14:49 -06:00
Tanner Linsley
faef7261e2
fix: fix main type errors
2024-05-18 11:57:11 -06:00
Tanner Linsley
51bc6ffb13
release: v1.33.2
v1.33.2
2024-05-18 17:46:02 +00:00
Dominik Dorfmeister
3b5cdefd82
refactor: don't disable rules-of-hooks linter ( #1625 )
2024-05-18 19:44:08 +02:00
Sean Cassiere
62bf384972
docs: clearing up the internal types from the references ( #1627 )
...
* remove AnyParamsType
* remove AnyRedirectType
* AnyRouteMatchType
* AwaitOptionsType
* FileRoutesByPath
* FullSearchSchemaType
* ParseRouteType
* ParseRouteChildrenType
* RegisteredRouterType
* RouteByIdType
* RouteIdsType
* RouteByPath
* RoutePathsType
* RouterErrorSerializerType
* link RouterEventsType
* RouterTransformerType
* RoutesByIdType
* RoutesByPathType
* SearchSchemaInputType
* link to ToOptionsType
* DeferredPromiseStateType
2024-05-19 01:37:49 +12:00
Tanner Linsley
835e39645d
release: v1.33.1
v1.33.1
2024-05-18 12:56:27 +00:00
Gianmarco Rengucci
0c930b2e47
fix(react-router): allow root route to be wrapped in suspense ( #1611 )
2024-05-18 14:53:45 +02:00
wweber
1391335f8d
fix: export TrailingSlashOption. ( #1616 )
2024-05-18 14:53:33 +02:00
Tanner Linsley
4de0c5751e
release: v1.33.0
v1.33.0
2024-05-18 12:51:18 +00:00
Dominik Dorfmeister
6c1d831b27
feat: onCatch callback on routes and defaultOnCatch for router ( #1623 )
...
* feat: onCatch callback on routes and defaultOnCatch for router
to catch errors thrown by ErrorBoundaries
* docs: onCatch
* docs: add default
2024-05-18 14:49:25 +02:00
Tanner Linsley
11af35ee04
release: v1.32.17
v1.32.17
2024-05-18 12:24:42 +00:00
Dominik Dorfmeister
4d0160a27e
refactor: fix type errors ( #1626 )
...
* refactor: fix type errors in eliminateUnreferencedIdentifiers.ts
* fix: relative import
* fix: no-cycle by moving rootRouteId into its own file.
The cycle was:
useMatch imports Matches
Matches import route (only for rootRouteId)
route imports useMatch
by moving rootRouteId to its own file, we break the cycle because Matches does not need to depend on route anymore
* refactor: import RootRouteId from the right place
* style: prettier
---------
Co-authored-by: SeanCassiere <33615041+SeanCassiere@users.noreply.github.com>
2024-05-18 14:23:07 +02:00
Tanner Linsley
e712d3d57a
fix: import
2024-05-18 01:28:56 -06:00
Tanner Linsley
782caa4977
fix: merge vinxi branch
...
* vinxi
* fix: createServerFn extraction, start config, vinxi config, dead-code elimination
2024-05-18 01:24:47 -06:00
Tanner Linsley
159c2e50b3
release: v1.32.16
v1.32.16
2024-05-18 04:50:54 +00:00
Sean Cassiere
5168c8ffc1
fix(react-router): route context being undefined in StrictMode on initial render ( #1620 )
2024-05-18 16:49:29 +12:00
Tanner Linsley
dfbbdf2349
release: v1.32.15
v1.32.15
2024-05-18 04:10:39 +00:00
Sean Cassiere
dc3282698d
fix(react-router): do not eagerly garbage collect routes ( #1619 )
...
When the user sets a `defaultGcTime` on the router or a `gcTime` on a route to the value of `0`, the current eager garbage collection we've got going on ends up setting the route-context to `undefined`.
This normally wouldn't matter on direct navigation, however, when redirects come into play this results in the route trying to execute its options (`beforeLoad`, `loader`, `component`, etc) without its processed route context being available. The current setup looks to perform garbage collection both before and after a `this.loadMatches` has been called in `router.load`.
This change makes it so that garbage collection is done after the `this.loadMatches` call has resolved.
2024-05-18 16:09:02 +12:00
Sean Cassiere
78350c7c1c
docs: add README files for the user-facing packages ( #1617 )
...
* chore: add README files for the user-facing packages
* chore: use the word special
2024-05-18 13:45:46 +12:00
Tanner Linsley
11f44b6421
release: v1.32.14
v1.32.14
2024-05-17 20:19:47 +00:00
Gianmarco Rengucci
2eff62003f
fix(router-devtools): correctly compose button toggle styles ( #1613 )
2024-05-17 22:17:49 +02:00
Sean Cassiere
9c95aece07
docs(examples): update the "authenticated routes" example with async actions ( #1610 )
...
* docs(examples): update the "authenticated routes" example with async actions
* refactor: oops didnt mean to touch that
* chore: put a comment on the sleep used on login
* docs: update the message on the home page
* chore: make sure the user can see stuff is happening during login
2024-05-17 22:10:18 +12:00
Sean Cassiere
9f0d4c76b5
docs: documented the the usage of hooks and context in the "Router Context" guide ( #1609 )
2024-05-17 21:35:19 +12:00
Manuel Schiller
45252f3d66
docs: fix links
2024-05-17 00:05:55 +02:00
Tanner Linsley
b953d7f220
release: v1.32.13
v1.32.13
2024-05-16 22:02:39 +00:00
Christopher Horobin
4850199b03
fix: do not allow any string in from ( #1607 )
2024-05-17 00:00:13 +02:00
Manuel Schiller
c38c02cc07
chore: fix doc formatting
2024-05-16 23:56:47 +02:00
simon-lund
f2ddae666f
docs: fix syntax error in example with loader and useSuspenseQuery ( #1602 )
...
This will fix the example with useSuspenseQuery for the Router loader. You cannot just write `const posts = useSuspenseQuery(...)` but have to resolve the data property as so `const {data: {posts}} = useSuspenseQuery(...)`
2024-05-16 15:27:36 +02:00
Tanner Linsley
f6e9ab3b60
release: v1.32.12
v1.32.12
2024-05-16 07:42:29 +00:00
Dominik Dorfmeister
8d78056243
fix(react-router): revert "take from into account when building urls ( #1595 )" ( #1600 )
...
This reverts commit fa25b3c8ad .
2024-05-16 09:40:33 +02:00
Tanner Linsley
4b47cc0711
release: v1.32.11
v1.32.11
2024-05-16 07:00:27 +00:00
Sean Cassiere
843aca7b8c
fix(react-router): route context being undefined after a redirect ( #1599 )
...
* fix(react-router): context being undefined after a redirect
* test: move to tsx
* test: test cases and fail intentionally fail it
* fix: refix it to pass the test cases
2024-05-16 18:58:01 +12:00
Tanner Linsley
19ede5c67e
release: v1.32.10
v1.32.10
2024-05-16 05:34:20 +00:00
Christopher Horobin
a770c08fc5
fix: generator should not infer trailing slash is not necessary for index routes ( #1597 )
2024-05-16 07:31:28 +02:00
Tanner Linsley
f56c23466d
release: v1.32.9
v1.32.9
2024-05-15 22:41:51 +00:00
Dominik Dorfmeister
fa25b3c8ad
fix(react-router): take from into account when building urls ( #1595 )
...
* test: link generation tests
* test: more tests
* fix: take dest.from into account when building urls
2024-05-16 10:39:20 +12:00
Tanner Linsley
7e9509ded1
release: v1.32.8
v1.32.8
2024-05-15 19:36:16 +00:00
Simen Bekkhus
6bd672a6d8
fix: do not use global JSX namespace ( #1598 )
2024-05-15 21:34:15 +02:00
Tanner Linsley
e6e28bb56f
release: v1.32.7
v1.32.7
2024-05-15 16:31:39 +00:00
Tanner Linsley
5d48fd6435
fix(start): tsc the config package
2024-05-15 09:29:24 -07:00
Tanner Linsley
8ae2ceefba
release: v1.32.6
v1.32.6
2024-05-14 20:57:25 +00:00
Tanner Linsley
4e5ee52a16
fix(start): imports/build
2024-05-14 13:55:24 -07:00