chore: Update version for release (pre) #14599
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
react-router@7.10.0-pre.0
Minor Changes
Stabilize
fetcher.reset()(#14545)fetcher.unstable_reset()Stabilize the
dataStrategymatch.shouldRevalidateArgs/match.shouldCallHandler()APIs. (#14592)The
match.shouldLoadAPI is now marked deprecated in favor of these more powerful alternativesIf you're using this API in a custom
dataStrategytoday, you can swap to the new API at your convenience:match.shouldRevalidateArgsis the argument that will be passed to the routeshouldRevaliatefunctionCombined with the parameter accepted by
match.shouldCallHandler, you can define a custom revalidation behavior for yourdataStrategy:Patch Changes
Fix a Framework Mode bug where the
defaultShouldRevalidateparameter toshouldRevalidatewould not be correct afteractionreturned a 4xx/5xx response (truewhen it should have beenfalse) (#14592)shouldRevalidatefunction relied on that parameter, you may have seen unintended revalidationsFix
fetcher.submitfailing with plain objects containing atagNameproperty (#14534)[UNSTABLE] Add
unstable_patternto the parameters for client sideunstable_onError, refactor how it's called byRouterProviderto avoid potential strict mode issues (#14573)Add new
unstable_useTransitionsflag to routers to give users control over the usage ofReact.startTransitionandReact.useOptimistic. (#14524)<HydratedRouter unstable_transition>/<RouterProvider unstable_transition>React.startTransitionReact.startTransitiontrueif you run into this scenario to get the enhanceduseOptimisticbehavior (requires React 19)trueReact.startTransition(as they are without the flag)Link/Formnavigations will be wrapped inReact.startTransitionReact.useOptimistic(i.e.,useNavigation(),useFetchers(), etc.)falseReact.startTransitionorReact.useOptimisticon any navigations or state changes<BrowserRouter unstable_useTransitions>React.startTransitiontrueReact.startTransition(as they are without the flag)Link/Formnavigations will be wrapped inReact.startTransitionfalseReact.startTransitionon any navigations or state changesFix the promise returned from
useNavigatein Framework/Data Mode so that it properly tracks the duration ofpopstatenavigations (i.e.,navigate(-1)) (#14524)Fix internal type error in useRoute types that surfaces when skipLibCheck is disabled (#14577)
Preserve
statusTexton theErrorResponseinstance when throwingdata()from a route handler (#14555)Optimize href() to avoid backtracking regex on splat (#14329)
@react-router/dev@7.10.0-pre.0
Minor Changes
Stabilize
future.v8_splitRouteModules, replacingfuture.unstable_splitRouteModules(#14595)future.unstable_splitRouteModules. Please update yourreact-router.config.ts.Stabilize
future.v8_viteEnvironmentApi, replacingfuture.unstable_viteEnvironmentApi(#14595)future.unstable_viteEnvironmentApi. Please update yourreact-router.config.ts.Patch Changes
Load environment variables before evaluating
routes.ts(#14446)For example, you can now compute your routes based on
VITE_-prefixed environment variables:# .env VITE_ENV_ROUTE=my-routeUpdated dependencies:
react-router@7.10.0-pre.0@react-router/node@7.10.0-pre.0@react-router/serve@7.10.0-pre.0@react-router/architect@7.10.0-pre.0
Patch Changes
react-router@7.10.0-pre.0@react-router/node@7.10.0-pre.0@react-router/cloudflare@7.10.0-pre.0
Patch Changes
react-router@7.10.0-pre.0react-router-dom@7.10.0-pre.0
Patch Changes
react-router@7.10.0-pre.0@react-router/express@7.10.0-pre.0
Patch Changes
react-router@7.10.0-pre.0@react-router/node@7.10.0-pre.0@react-router/fs-routes@7.10.0-pre.0
Patch Changes
@react-router/dev@7.10.0-pre.0@react-router/node@7.10.0-pre.0
Patch Changes
react-router@7.10.0-pre.0@react-router/remix-routes-option-adapter@7.10.0-pre.0
Patch Changes
@react-router/dev@7.10.0-pre.0@react-router/serve@7.10.0-pre.0
Patch Changes
react-router@7.10.0-pre.0@react-router/node@7.10.0-pre.0@react-router/express@7.10.0-pre.0create-react-router@7.10.0-pre.0