Update dependency @remix-run/react to v2.14.0 #7
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 contains the following updates:
2.9.2
->2.14.0
Release Notes
remix-run/remix (@remix-run/react)
v2.14.0
Compare Source
Patch Changes
defaultShouldRevalidate
value when using single fetch (#10139)@remix-run/[email protected]
v2.13.1
Compare Source
Patch Changes
@remix-run/[email protected]
v2.13.0
Compare Source
Minor Changes
unstable_dataStrategy
->dataStrategy
unstable_patchRoutesOnNavigation
->patchRoutesOnNavigation
unstable_data()
->data()
unstable_viewTransition
->viewTransition
(Link
,Form
,navigate
,submit
)unstable_flushSync>
-><Link viewTransition>
(Link
,Form
,navigate
,submit
,useFetcher
)future.unstable_singleFetch
->future.v3_singleFetch
future.unstable_lazyRouteDiscovery
->future.v3_lazyRouteDiscovery
Patch Changes
clientLoader.hydrate
in a layout route when hydrating with bubbled errors (#10063)@remix-run/[email protected]
v2.12.1
Compare Source
Patch Changes
@remix-run/[email protected]
v2.12.0
Compare Source
Patch Changes
Lazy Route Discovery: Sort
/__manifest
query parameters for better caching (#9888)Single Fetch: fix revalidation behavior bugs (#9938)
GET /a/b/c.data
shouldRevalidate
, it will be excluded from the single fetch callclientLoader
then it will be excluded from the single fetch call and if you callserverLoader()
from yourclientLoader
, that will make a separarte HTTP call for just that route loader - i.e.,GET /a/b/c.data?_routes=routes/a
for aclientLoader
inroutes/a.tsx
root
route androutes/b
had aloader
butroutes/c
did not, the single fetch request would beGET /a/b/c.data?_routes=root,routes/a
Remove hydration URL check that was originally added for React 17 hydration issues and we no longer support React 17 (#9890)
v1.18.0
via #64091.18.0
turned out to be subject to false positives of it's own which could also put the user in looping scenariosSingle Fetch: Improved typesafety (#9893)
If you were already using previously released unstable single-fetch types:
"@​remix-run/react/future/single-fetch.d.ts"
override fromtsconfig.json
>compilerOptions
>types
defineLoader
,defineAction
,defineClientLoader
,defineClientAction
helpers from your route modulesUIMatch_SingleFetch
type helper withUIMatch
MetaArgs_SingleFetch
type helper withMetaArgs
Then you are ready for the new typesafety setup:
For more information, see Guides > Single Fetch in our docs.
Clarify wording in default
HydrateFallback
console warning (#9899)Updated dependencies:
@remix-run/[email protected]
v2.11.2
Compare Source
Patch Changes
__manifest
endpoint since we no longer need thenotFoundPaths
fieldunstable_patchRoutesOnNavigation
function in RR (see remix-run/react-router#11888) (#9860)turbo-stream
tov2.3.0
(#9856)@remix-run/[email protected]
v2.11.1
Compare Source
Patch Changes
a7cffe57
)@remix-run/[email protected]
v2.11.0
Compare Source
Minor Changes
Single Fetch: Add a new
unstable_data()
API as a replacement forjson
/defer
when customstatus
/headers
are needed (#9769)Add a new
replace(url, init?)
alternative toredirect(url, init?)
that performs ahistory.replaceState
instead of ahistory.pushState
on client-side navigation redirects (#9764)Rename
future.unstable_fogOfWar
tofuture.unstable_lazyRouteDiscovery
for clarity (#9763)Single Fetch: Remove
responseStub
in favor ofheaders
(#9769)Background
middleware
implementation would require something likeResponseStub
so users could mutatestatus
/headers
inmiddleware
before/after handlers as well as during handlersheaders
got merged between document and data requestsResponseStub
and removed the usage ofheaders
in Single Fetchmiddleware
won't need a stub - users can just mutate theResponse
they get fromawait next()
directlyheaders
get merged, it makes more sense to stick with the currentheaders
API and apply that to Single Fetch and avoid introducing a totally new thing inRepsonseStub
(that always felt a bit awkward to work with anyway)With this change:
Response
instances in favor of returning raw data from loaders and actions:return json({ data: whatever });
~~return { data: whatever };
json()
anddefer()
calls in favor of returning raw data if they weren't setting customstatus
/headers
json
anddefer
in the next major version, but both should still work in Single Fetch in v2 to allow for incremental adoption of the new behaviorstatus
/headers
:unstable_data({...}, responseInit)
utility that will let you send backstatus
/headers
alongside your raw data without having to encode it into aResponse
headers()
function will let you control header merging for both document and data requestsPatch Changes
/path/.data
) (#9792)undefined
to theuseRouteLoaderData
type override (#9796)@remix-run/[email protected]
v2.10.3
Compare Source
Patch Changes
request.signal
throughdataStrategy
forloader
calls to fix cancellation (#9738)future.v7_skipActionErrorRevalidation
under the hood (#9706)shouldRevalidate
parameter fromunstable_actionStatus
toactionStatus
@remix-run/[email protected]
v2.10.2
Compare Source
Patch Changes
ref
toForm
(bdd04217
)@remix-run/[email protected]
v2.10.1
Compare Source
Patch Changes
reloadDocument
(#9686)<Form>
components (#9665)@remix-run/[email protected]
v2.10.0
Compare Source
Minor Changes
Add support for Lazy Route Discovery (a.k.a. Fog of War) (#9600)
Patch Changes
loader
data whenclientLoader
exists (#9580)Layout
ErrorBoundary
renders also throw (#9566)basename
(#9584)[email protected]
for single fetch (#9562)@remix-run/[email protected]
Configuration
📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
This PR was generated by Mend Renovate. View the repository job log.