chore: Update version for release #10414
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR was opened by the Changesets release GitHub action. When you're ready to do a release, you can merge this and the packages will be published to npm automatically. If you're not ready to do a release yet, that's fine, whenever you add more changesets to release-next, this PR will be updated.
Releases
[email protected]
Minor Changes
Enable relative routing in the
@remix-run/router
when providing a source route ID from which the path is relative to: (#10336)router.navigate("../path", { fromRouteId: "some-route" })
.router.fetch
which already receives a source route IDIntroduce a new
@remix-run/router
future.v7_prependBasename
flag to enablebasename
prefixing to all paths coming intorouter.navigate
androuter.fetch
.basename
was prepended in the React Router layer, but now that relative routing is being handled by the router we need prepend thebasename
after resolving any relative pathsbasename
support inuseFetcher
as wellPatch Changes
Component
instead ofelement
on a route definition (#10287)<Link to="//">
and other invalid URL values (#10367)useSyncExternalStore
touseState
for internal@remix-run/router
router state syncing in<RouterProvider>
. We found some subtle bugs where router state updates got propagated before other normaluseState
updates, which could lead to footguns inuseEffect
calls. (#10377)StaticRouterProvider
's internalRouter
component (#10401)RouterProvider
,useNavigate
/useSubmit
/fetcher.submit
are now stable across location changes, since we can handle relative routing via the@remix-run/router
instance and get rid of our dependence onuseLocation()
. When usingBrowserRouter
, these hooks remain unstable across location changes because they still rely onuseLocation()
. (#10336)[email protected]
@remix-run/[email protected]
@remix-run/[email protected]
Minor Changes
Enable relative routing in the
@remix-run/router
when providing a source route ID from which the path is relative to: (#10336)router.navigate("../path", { fromRouteId: "some-route" })
.router.fetch
which already receives a source route IDIntroduce a new
@remix-run/router
future.v7_prependBasename
flag to enablebasename
prefixing to all paths coming intorouter.navigate
androuter.fetch
.basename
was prepended in the React Router layer, but now that relative routing is being handled by the router we need prepend thebasename
after resolving any relative pathsbasename
support inuseFetcher
as wellPatch Changes
LoaderFunction
/ActionFunction
return type to preventundefined
from being a valid return value (#10267)fetcher.load
call to a route without aloader
(#10345)createRouter
detectErrorBoundary
option in favor of the newmapRouteProperties
option for converting a framework-agnostic route to a framework-aware route. This allows us to set more than just thehasErrorBoundary
property during route pre-processing, and is now used for mappingComponent -> element
andErrorBoundary -> errorElement
inreact-router
. (#10287)loader
revalidations). However, since fetchers have a static href, they should only revalidate onaction
submissions orrouter.revalidate
calls. (#10344)AbortController
usage between revalidating fetchers and the thing that triggered them such that the unmount/deletion of a revalidating fetcher doesn't impact the ongoing triggering navigation/revalidation (#10271)[email protected]
Patch Changes
<Routes>
whenRouterProvider
errors existed (#10374)Component
instead ofelement
on a route definition (#10287)useNavigate
in the render cycle by setting theactiveRef
in a layout effect, allowing thenavigate
function to be passed to child components and called in auseEffect
there. (#10394)useSyncExternalStore
touseState
for internal@remix-run/router
router state syncing in<RouterProvider>
. We found some subtle bugs where router state updates got propagated before other normaluseState
updates, which could lead to footguns inuseEffect
calls. (#10377)useRevalidator()
to resolve a loader-driven error boundary scenario (#10369)RouterProvider
,useNavigate
/useSubmit
/fetcher.submit
are now stable across location changes, since we can handle relative routing via the@remix-run/router
instance and get rid of our dependence onuseLocation()
. When usingBrowserRouter
, these hooks remain unstable across location changes because they still rely onuseLocation()
. (#10336)@remix-run/[email protected]
[email protected]
Patch Changes
[email protected]
[email protected]
[email protected]
Patch Changes
[email protected]