chore(remix): Update Remix monorepo to ^2.16.5 #5733
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 contains the following updates:
^2.0.0
->^2.16.5
^2.0.0
->^2.16.5
Warning
Some dependencies could not be looked up. Check the Dependency Dashboard for more information.
Release Notes
remix-run/remix (@remix-run/react)
v2.16.5
Compare Source
Patch Changes
@remix-run/[email protected]
v2.16.4
Compare Source
Patch Changes
@remix-run/[email protected]
v2.16.3
Compare Source
Patch Changes
@remix-run/[email protected]
v2.16.2
Compare Source
Patch Changes
shouldRevalidate
behavior forclientLoader
-only routes inssr:true
apps (#10527)@remix-run/[email protected]
v2.16.1
Compare Source
Patch Changes
@remix-run/react
failing when the package is not marked as external (#10528)@remix-run/[email protected]
v2.16.0
Compare Source
Patch Changes
Don't apply Single Fetch revalidation de-optimization when in SPA mode since there is no server HTTP request (#10479)
When using Lazy Route Discovery (
future.v3_lazyRouteDiscovery
), Remix will now detect manifest version mismatches after a new deploy and trigger a document reload to sync up any active client sessions with the newly deployed version (#10498)fetcher
calls to undiscovered routes, this mismatch will trigger a document reload of the current path<Link>
components, mismatches will result in a no-opUpdated dependencies:
@remix-run/[email protected]
v2.15.3
Compare Source
Patch Changes
@remix-run/[email protected]
v2.15.2
Compare Source
Patch Changes
@remix-run/[email protected]
v2.15.1
Compare Source
Patch Changes
@remix-run/[email protected]
v2.15.0
Compare Source
Patch Changes
@remix-run/[email protected]
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]
v2.9.2
Compare Source
Patch Changes
undefined
touseActionData
type override (#9322)nonce
to be set on single fetch stream transfer inline scripts (#9364)defineLoader
,defineClientLoader
,defineAction
,defineClientAction
(#9372, #9404)@remix-run/[email protected]
v2.9.1
Compare Source
Patch Changes
future/*.d.ts
files from TS build (#9299)@remix-run/[email protected]
v2.9.0
Compare Source
Minor Changes
New
future.unstable_singleFetch
flag (#8773)turbo-stream
soDate
's will becomeDate
throughuseLoaderData()
Promise
's without needing to usedefer()
- including nestedPromise
'sdefer
utility<RemixServer abortDelay>
is no longer used. Instead, you shouldexport const streamTimeout
fromentry.server.tsx
and the remix server runtime will use that as the delay to abort the streamed responserenderToPipeableStream
. You should always ensure that react is aborted afer the stream is aborted so that abort rejections can be flushed downfuture.unstable_skipActionErrorRevalidation
flag) - you can return a 2xx to opt-into revalidation or useshouldRevalidate
Opt-in types for single-fetch (#9272)
./node_modules/@​remix-run/react/future/single-fetch.d.ts
toinclude
in yourtsconfig.json
Patch Changes
@remix-run/[email protected]
v2.8.1
Compare Source
Patch Changes
LayoutComponent
type to accept limited children (#8910)@remix-run/[email protected]
v2.8.0
Compare Source
Patch Changes
ErrorBoundary
component so it leverages the user-providedLayout
component (#8859)HydrateFallback
component so it leverages any user-providedLayout
component (#8892)@remix-run/react
re-exports everything fromreact-router-dom
for SPA mode (#8929)@remix-run/[email protected]
v2.7.2
Compare Source
Patch Changes
@remix-run/[email protected]
v2.7.1
Compare Source
Patch Changes
@remix-run/[email protected]
v2.7.0
Compare Source
Minor Changes
Layout
export from the root route (#8709)basename
option to the Vite plugin, allowing users to set the internal React Routerbasename
in order to to serve their applications underneath a subpath (#8145)Patch Changes
@remix-run/[email protected]
v2.6.0
Compare Source
Patch Changes
@remix-run/[email protected]
v2.5.1
Compare Source
Patch Changes
<Meta>
/<Links>
in SPA mode (#8538)unstable_
prefix fromBlocker
/BlockerFunction
types (#8530)@remix-run/[email protected]
v2.5.0
Compare Source
Minor Changes
Add unstable support for "SPA Mode" (#8457)
You can opt into SPA Mode by setting
unstable_ssr: false
in your Remix Vite plugin config:Development in SPA Mode is just like a normal Remix app, and still uses the Remix dev server for HMR/HDR:
Building in SPA Mode will generate an
index.html
file in your client assets directory:To run your SPA, you serve your client assets directory via an HTTP server:
For more information, please refer to the SPA Mode docs.
Patch Changes
import.meta.hot
from the existing Remix compiler (#8459)@remix-run/[email protected]
v2.4.1
Compare Source
Patch Changes
loader
errors throughserverLoader
in hydratingclientLoader
's (#8304)Response
helpers (defer
/json
/redirect
/redirectDocument
) through@remix-run/react
for use inclientLoader
/clientAction
(#8351)@remix-run/[email protected]
v2.4.0
Compare Source
Minor Changes
Add support for
clientLoader
/clientAction
/HydrateFallback
route exports (RFC). (#8173)Remix now supports loaders/actions that run on the client (in addition to, or instead of the loader/action that runs on the server). While we still recommend server loaders/actions for the majority of your data needs in a Remix app - these provide some levers you can pull for more advanced use-cases such as:
localStorage
)IndexedDB
)By default,
clientLoader
will not run on hydration, and will only run on subsequent client side navigations.If you wish to run your client loader on hydration, you can set
clientLoader.hydrate=true
to force Remix to execute it on initial page load. Keep in mind that Remix will still SSR your route component so you should ensure that there is no new required data being added by yourclientLoader
.If your
clientLoader
needs to run on hydration and adds data you require to render the route component, you can export aHydrateFallback
component that will render during SSR, and then your route component will not render until theclientLoader
has executed on hydration.clientAction
is simpler thanclientLoader
because it has no hydration use-cases.clientAction
will only run on client-side navigations.For more information, please refer to the
clientLoader
andclientAction
documentation.Add a new
future.v3_relativeSplatPath
flag to implement a breaking bug fix to relative routing when inside a splat route. For more information, please see the React Router6.21.0
Release Notes and theuseResolvedPath
docs. (#8216)Patch Changes
@remix-run/[email protected]
v2.3.1
Compare Source
Patch Changes
@remix-run/[email protected]
v2.3.0
Compare Source
Minor Changes
unstable_
prefix from theuseBlocker
hook as it's been in use for enough time that we are confident in the API. We do not plan to remove the prefix fromunstable_usePrompt
due to differences in how browsers handlewindow.confirm
that prevent React Router from guaranteeing consistent/correct behavior. (#7882)Patch Changes
LiveReload
component afterScripts
in Vite dev (#7919)LiveReload
component in Vite dev (#7919)[email protected]
@remix-run/[email protected]
@remix-run/[email protected]
v2.2.0
Compare Source
Minor Changes
remix build
👉vite build && vite build --ssr
remix dev
👉vite dev
future.v3_fetcherPersist
flag to change the persistence behavior of fetchers. Instead of being immediately cleaned up when unmounted in the UI, fetchers will persist until they return to anidle
state (RFC) (#7704)Patch Changes
default
export (#7745)default
which we can then end up passing toReact.createElement
, triggering the console warning, but generally no UI issuesComponent: undefined
off to the React Router layer@remix-run/react
layer and hopefully disappears in a Vite world@remix-run/[email protected]
[email protected]
@remix-run/[email protected]
v2.1.0
Compare Source
Minor Changes
document.startViewTransition
to enable CSS animated transitions on SPA navigations in your application (#7648)Patch Changes
meta
object whentagName
is specified (#7594)route.lazy
routes (#7576)JSON.parse(JSON.stringify(x))
inSerializeFrom
(#7605)undefined
after serialization are now omitted sinceJSON.stringify |> JSON.parse
will omit them -- see test cases for examplesuseMatches
wrapper to fixUIMatch
typings (#7551)@remix-run/[email protected]
[email protected]
@remix-run/[email protected]
v2.0.1
Compare Source
Patch Changes
UIMatch
forhandle
field (#7464)route.lazy
(#7498)ErrorResponse
instead of just anError
when submitting to a route without anaction
(#7423)@remix-run/[email protected]
remix-run/remix (@remix-run/server-runtime)
v2.16.5
Compare Source
No significant changes to this package were made in this release. See the repo
CHANGELOG.md
for an overview of all changes in v2.16.5.v2.16.4
Compare Source
Patch Changes
cookie
dependency from^0.6.0 -> ^0.7.2
to fix security advisory (#10547)v2.16.3
Compare Source
No significant changes to this package were made in this release. See the repo
CHANGELOG.md
for an overview of all changes in v2.16.3.v2.16.2
Compare Source
Patch Changes
v2.16.1
Compare Source
No significant changes to this package were made in this release. See the repo
CHANGELOG.md
for an overview of all changes in v2.16.1.v2.16.0
Compare Source
Patch Changes
When using Lazy Route Discovery (
future.v3_lazyRouteDiscovery
), Remix will now detect manifest version mismatches after a new deploy and trigger a document reload to sync up any active client sessions with the newly deployed version (#10498)fetcher
calls to undiscovered routes, this mismatch will trigger a document reload of the current path<Link>
components, mismatches will result in a no-opv2.15.3
Compare Source
Patch Changes
Set-Cookie
headers could be duplicated if also returned fromheaders
(#10424)v2.15.2
Compare Source
No significant changes to this package were made in this release. See the repo
CHANGELOG.md
for an overview of all changes in v2.15.2.v2.15.1
Compare Source
No significant changes to this package were made in this release. See the repo
CHANGELOG.md
for an overview of all changes in v2.15.1.v2.15.0
Compare Source
No significant changes to this package were made in this release. See the repo
CHANGELOG.md
for an overview of all changes in v2.15.0.v2.14.0
Compare Source
Minor Changes
SerializeFrom
in favor of generics because it will be removed in React Router v7 (#10173)Patch Changes
v2.13.1
Compare Source
No significant changes to this package were made in this release. See the repo
CHANGELOG.md
for an overview of all changes in v2.13.1.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
v2.12.1
Compare Source
Patch Changes
loader
,action
,clientLoader
, orclientAction
return a mixture of bare objects,json(...)
,defer(...)
, andunstable_data(...)
. (#9999)interface Future
through@remix-run/node
/@remix-run/cloudflare
/@remix-run/deno
packages so thatpnpm
doesn't complain about@remix-run/server-runtime
not being a dependency (#9982)v2.12.0
Compare Source
Patch Changes
Single Fetch: Do not try to encode a
turbo-stream
body into 304 responses (#9941)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.
Single Fetch: Change content type on
.data
requests totext/x-script
to allow Cloudflare compression (#9889)Support 304 responses on document requests (#9955)
v2.11.2
Compare Source
Patch Changes
basename
is present (#9848)__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)v2.11.1
Compare Source
Patch Changes
a7cffe57
)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
v2.10.3
Compare Source
No significant changes to this package were made in this release. [See the repo
CHANGELOG.md
](https://redirect.github.comConfiguration
📅 Schedule: Branch creation - "before 7am on the first day of the week" in timezone GMT, Automerge - At any time (no schedule defined).
🚦 Automerge: Enabled.
♻ Rebasing: Whenever PR is behind base branch, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about these updates again.
This PR was generated by Mend Renovate. View the repository job log.