chore: Update version for release (pre) #10398
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.
release-nextis currently in pre mode so this branch has prereleases rather than normal releases. If you want to exit prereleases, runchangeset pre exitonrelease-next.Releases
[email protected]
Minor Changes
Enable relative routing in the
@remix-run/routerwhen providing a source route ID from which the path is relative to: (#10336)router.navigate("../path", { fromRouteId: "some-route" }).router.fetchwhich already receives a source route IDIntroduce a new
@remix-run/routerfuture.v7_prependBasenameflag to enablebasenameprefixing to all paths coming intorouter.navigateandrouter.fetch.basenamewas prepended in the React Router layer, but now that relative routing is being handled by the router we need prepend thebasenameafter resolving any relative pathsbasenamesupport inuseFetcheras wellPatch Changes
Componentinstead ofelementon a route definition (#10287)<Link to="//">and other invalid URL values (#10367)useSyncExternalStoretouseStatefor internal@remix-run/routerrouter state syncing in<RouterProvider>. We found some subtle bugs where router state updates got propagated before other normaluseStateupdates, which could lead to footguns inuseEffectcalls. (#10377)RouterProvider,useNavigate/useSubmit/fetcher.submitare now stable across location changes, since we can handle relative routing via the@remix-run/routerinstance 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/routerwhen providing a source route ID from which the path is relative to: (#10336)router.navigate("../path", { fromRouteId: "some-route" }).router.fetchwhich already receives a source route IDIntroduce a new
@remix-run/routerfuture.v7_prependBasenameflag to enablebasenameprefixing to all paths coming intorouter.navigateandrouter.fetch.basenamewas prepended in the React Router layer, but now that relative routing is being handled by the router we need prepend thebasenameafter resolving any relative pathsbasenamesupport inuseFetcheras wellPatch Changes
LoaderFunction/ActionFunctionreturn type to preventundefinedfrom being a valid return value (#10267)fetcher.loadcall to a route without aloader(#10345)createRouterdetectErrorBoundaryoption in favor of the newmapRoutePropertiesoption for converting a framework-agnostic route to a framework-aware route. This allows us to set more than just thehasErrorBoundaryproperty during route pre-processing, and is now used for mappingComponent -> elementandErrorBoundary -> errorElementinreact-router. (#10287)loaderrevalidations). However, since fetchers have a static href, they should only revalidate onactionsubmissions orrouter.revalidatecalls. (#10344)AbortControllerusage 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>whenRouterProvidererrors existed (#10374)Componentinstead ofelementon a route definition (#10287)useNavigatein the render cycle by setting theactiveRefin a layout effect, allowing thenavigatefunction to be passed to child components and called in auseEffectthere. (#10394)useSyncExternalStoretouseStatefor internal@remix-run/routerrouter state syncing in<RouterProvider>. We found some subtle bugs where router state updates got propagated before other normaluseStateupdates, which could lead to footguns inuseEffectcalls. (#10377)useRevalidator()to resolve a loader-driven error boundary scenario (#10369)RouterProvider,useNavigate/useSubmit/fetcher.submitare now stable across location changes, since we can handle relative routing via the@remix-run/routerinstance 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]