remix-run/remix (@remix-run/node)
### [`v2.0.0`](https://togithub.com/remix-run/remix/blob/HEAD/packages/remix-node/CHANGELOG.md#200)
[Compare Source](https://togithub.com/remix-run/remix/compare/@remix-run/node@1.19.3...@remix-run/node@2.0.0)
##### Major Changes
- Require Node >=18.0.0 ([#6939](https://togithub.com/remix-run/remix/pull/6939))
- Stop exporting the `fetch` API in favor of using the version in the global scope - which can be polyfilled via `installGlobals` ([#7293](https://togithub.com/remix-run/remix/pull/7293))
- Removed/adjusted types to prefer `unknown` over `any` and to align with underlying React Router types ([#7319](https://togithub.com/remix-run/remix/pull/7319), [#7354](https://togithub.com/remix-run/remix/pull/7354)):
- Renamed the `useMatches()` return type from `RouteMatch` to `UIMatch`
- Renamed `LoaderArgs`/`ActionArgs` to `LoaderFunctionArgs`/`ActionFunctionArgs`
- `AppData` changed from `any` to `unknown`
- `Location["state"]` (`useLocation.state`) changed from `any` to `unknown`
- `UIMatch["data"]` (`useMatches()[i].data`) changed from `any` to `unknown`
- `UIMatch["handle"]` (`useMatches()[i].handle`) changed from `{ [k: string]: any }` to `unknown`
- `Fetcher["data"]` (`useFetcher().data`) changed from `any` to `unknown`
- `MetaMatch.handle` (used in `meta()`) changed from `any` to `unknown`
- `AppData`/`RouteHandle` are no longer exported as they are just aliases for `unknown`
- The route `meta` API now defaults to the new "V2 Meta" API ([#6958](https://togithub.com/remix-run/remix/pull/6958))
- Please refer to the ([docs](https://remix.run/docs/en/2.0.0/route/meta) and [Preparing for V2](https://remix.run/docs/en/2.0.0/start/v2#route-meta) guide for more information.
- For preparation of using Node's built in fetch implementation, installing the fetch globals is now a responsibility of the app server ([#7009](https://togithub.com/remix-run/remix/pull/7009))
- If you are using `remix-serve`, nothing is required
- If you are using your own app server, you will need to install the globals yourself
```js filename=server.js
import { installGlobals } from "@remix-run/node";
installGlobals();
```
- `source-map-support` is now a responsibility of the app server ([#7009](https://togithub.com/remix-run/remix/pull/7009))
- If you are using `remix-serve`, nothing is required
- If you are using your own app server, you will need to install [`source-map-support`](https://www.npmjs.com/package/source-map-support) yourself.
```sh
npm i source-map-support
```
```js filename=server.js
import sourceMapSupport from "source-map-support";
sourceMapSupport.install();
```
- Removed support for "magic exports" from the `remix` package. This package can be removed from your `package.json` and you should update all imports to use the source `@remix-run/*` packages: ([#6895](https://togithub.com/remix-run/remix/pull/6895))
```diff
- import type { ActionArgs } from "remix";
- import { json, useLoaderData } from "remix";
+ import type { ActionArgs } from "@remix-run/node";
+ import { json } from "@remix-run/node";
+ import { useLoaderData } from "@remix-run/react";
```
##### Minor Changes
- Re-export the new `redirectDocument` method from React Router ([#7040](https://togithub.com/remix-run/remix/pull/7040), [#6842](https://togithub.com/remix-run/remix/pull/6842)) ([#7040](https://togithub.com/remix-run/remix/pull/7040))
##### Patch Changes
- Remove `atob`/`btoa` polyfills in favor of built-in versions ([#7206](https://togithub.com/remix-run/remix/pull/7206))
- Export proper `ErrorResponse` type for usage alongside `isRouteErrorResponse` ([#7244](https://togithub.com/remix-run/remix/pull/7244))
- Add the rest of the Web Streams API to `installGlobals` ([#7321](https://togithub.com/remix-run/remix/pull/7321))
- Ensures `fetch()` return is `instanceof global Response` by removing extended classes for `NodeRequest` and `NodeResponse` in favor of custom interface type cast ([#7109](https://togithub.com/remix-run/remix/pull/7109))
- Remove recursion from stream utilities ([#7245](https://togithub.com/remix-run/remix/pull/7245))
- Updated dependencies:
- `@remix-run/server-runtime@2.0.0`
- `@remix-run/web-fetch@4.4.0`
- `@remix-run/web-file@3.1.0`
- `@remix-run/web-stream@1.1.0`
### [`v1.19.3`](https://togithub.com/remix-run/remix/blob/HEAD/packages/remix-node/CHANGELOG.md#1193)
[Compare Source](https://togithub.com/remix-run/remix/compare/@remix-run/node@1.19.2...@remix-run/node@1.19.3)
##### Patch Changes
- Updated dependencies:
- `@remix-run/server-runtime@1.19.3`
### [`v1.19.2`](https://togithub.com/remix-run/remix/blob/HEAD/packages/remix-node/CHANGELOG.md#1192)
[Compare Source](https://togithub.com/remix-run/remix/compare/@remix-run/node@1.19.1...@remix-run/node@1.19.2)
##### Patch Changes
- Update to latest `@remix-run/web-*` packages ([#7026](https://togithub.com/remix-run/remix/pull/7026))
- Updated dependencies:
- `@remix-run/server-runtime@1.19.2`
### [`v1.19.1`](https://togithub.com/remix-run/remix/blob/HEAD/packages/remix-node/CHANGELOG.md#1191)
[Compare Source](https://togithub.com/remix-run/remix/compare/@remix-run/node@1.19.0...@remix-run/node@1.19.1)
##### Patch Changes
- Updated dependencies:
- `@remix-run/server-runtime@1.19.1`
### [`v1.19.0`](https://togithub.com/remix-run/remix/blob/HEAD/packages/remix-node/CHANGELOG.md#1190)
[Compare Source](https://togithub.com/remix-run/remix/compare/@remix-run/node@1.18.1...@remix-run/node@1.19.0)
##### Patch Changes
- Upgrade to [`@remix-run/web-fetch@4.3.5`](https://togithub.com/remix-run/web-std-io/releases/tag/%40remix-run%2Fweb-fetch%404.3.5). Submitted empty file inputs are now correctly parsed out as empty `File` instances instead of being surfaced as an empty string via `request.formData()` ([#6816](https://togithub.com/remix-run/remix/pull/6816))
- Updated dependencies:
- `@remix-run/server-runtime@1.19.0`
### [`v1.18.1`](https://togithub.com/remix-run/remix/blob/HEAD/packages/remix-node/CHANGELOG.md#1181)
[Compare Source](https://togithub.com/remix-run/remix/compare/@remix-run/node@1.18.0...@remix-run/node@1.18.1)
##### Patch Changes
- Updated dependencies:
- `@remix-run/server-runtime@1.18.1`
### [`v1.18.0`](https://togithub.com/remix-run/remix/blob/HEAD/packages/remix-node/CHANGELOG.md#1180)
[Compare Source](https://togithub.com/remix-run/remix/compare/@remix-run/node@1.17.1...@remix-run/node@1.18.0)
##### Patch Changes
- Updated dependencies:
- `@remix-run/server-runtime@1.18.0`
### [`v1.17.1`](https://togithub.com/remix-run/remix/blob/HEAD/packages/remix-node/CHANGELOG.md#1171)
[Compare Source](https://togithub.com/remix-run/remix/compare/@remix-run/node@1.17.0...@remix-run/node@1.17.1)
##### Patch Changes
- Updated dependencies:
- `@remix-run/server-runtime@1.17.1`
### [`v1.17.0`](https://togithub.com/remix-run/remix/blob/HEAD/packages/remix-node/CHANGELOG.md#1170)
[Compare Source](https://togithub.com/remix-run/remix/compare/@remix-run/node@1.16.1...@remix-run/node@1.17.0)
##### Patch Changes
- Add `HeadersArgs` type to be consistent with loaders/actions/meta and allows for using a `function` declaration in addition to an arrow function expression ([#6247](https://togithub.com/remix-run/remix/pull/6247))
```tsx
import type { HeadersArgs } from "@remix-run/node"; // or cloudflare/deno
export function headers({ loaderHeaders }: HeadersArgs) {
return {
"x-my-custom-thing": loaderHeaders.get("x-my-custom-thing") || "fallback",
};
}
```
- Fix `request.clone() instanceof Request` returning false. ([#6512](https://togithub.com/remix-run/remix/pull/6512))
- Updated dependencies:
- `@remix-run/server-runtime@1.17.0`
### [`v1.16.1`](https://togithub.com/remix-run/remix/blob/HEAD/packages/remix-node/CHANGELOG.md#1161)
[Compare Source](https://togithub.com/remix-run/remix/compare/@remix-run/node@1.16.0...@remix-run/node@1.16.1)
##### Patch Changes
- Updated dependencies:
- `@remix-run/server-runtime@1.16.1`
### [`v1.16.0`](https://togithub.com/remix-run/remix/blob/HEAD/packages/remix-node/CHANGELOG.md#1160)
[Compare Source](https://togithub.com/remix-run/remix/compare/@remix-run/node@1.15.0...@remix-run/node@1.16.0)
##### Patch Changes
- add `@remix-run/node/install` side-effect to allow `node --require @remix-run/node/install` ([#6132](https://togithub.com/remix-run/remix/pull/6132))
- add `logDevReady` as replacement for platforms that can't initialize async I/O outside of the request response lifecycle. ([#6204](https://togithub.com/remix-run/remix/pull/6204))
- add missing files to published package ([#6179](https://togithub.com/remix-run/remix/pull/6179))
- Updated dependencies:
- `@remix-run/server-runtime@1.16.0`
### [`v1.15.0`](https://togithub.com/remix-run/remix/blob/HEAD/packages/remix-node/CHANGELOG.md#1150)
[Compare Source](https://togithub.com/remix-run/remix/compare/@remix-run/node@1.14.3...@remix-run/node@1.15.0)
##### Minor Changes
- We have made a few changes to the API for route module `meta` functions when using the `future.v2_meta` flag. **These changes are *only* breaking for users who have opted in.** ([#5746](https://togithub.com/remix-run/remix/pull/5746))
- `V2_HtmlMetaDescriptor` has been renamed to `V2_MetaDescriptor`
- The `meta` function's arguments have been simplified
- `parentsData` has been removed, as each route's loader data is available on the `data` property of its respective `match` object
```tsx
// before
export function meta({ parentsData }) {
return [{ title: parentsData["routes/some-route"].title }];
}
// after
export function meta({ matches }) {
return [
{
title: matches.find((match) => match.id === "routes/some-route")
.data.title,
},
];
}
```
- The `route` property on route matches has been removed, as relevant match data is attached directly to the match object
```tsx
// before
export function meta({ matches }) {
const rootModule = matches.find((match) => match.route.id === "root");
}
// after
export function meta({ matches }) {
const rootModule = matches.find((match) => match.id === "root");
}
```
- Added support for generating `` and meta-related `` tags to document head via the route `meta` function when using the `v2_meta` future flag
##### Patch Changes
- Updated dependencies:
- `@remix-run/server-runtime@1.15.0`
### [`v1.14.3`](https://togithub.com/remix-run/remix/blob/HEAD/packages/remix-node/CHANGELOG.md#1143)
[Compare Source](https://togithub.com/remix-run/remix/compare/@remix-run/node@1.14.2...@remix-run/node@1.14.3)
##### Patch Changes
- Updated dependencies:
- `@remix-run/server-runtime@1.14.3`
### [`v1.14.2`](https://togithub.com/remix-run/remix/blob/HEAD/packages/remix-node/CHANGELOG.md#1142)
[Compare Source](https://togithub.com/remix-run/remix/compare/@remix-run/node@1.14.1...@remix-run/node@1.14.2)
##### Patch Changes
- Updated dependencies:
- `@remix-run/server-runtime@1.14.2`
### [`v1.14.1`](https://togithub.com/remix-run/remix/blob/HEAD/packages/remix-node/CHANGELOG.md#1141)
[Compare Source](https://togithub.com/remix-run/remix/compare/@remix-run/node@1.14.0...@remix-run/node@1.14.1)
##### Patch Changes
- Updated dependencies:
- `@remix-run/server-runtime@1.14.1`
### [`v1.14.0`](https://togithub.com/remix-run/remix/blob/HEAD/packages/remix-node/CHANGELOG.md#1140)
[Compare Source](https://togithub.com/remix-run/remix/compare/@remix-run/node@1.13.0...@remix-run/node@1.14.0)
##### Patch Changes
- Updated dependencies:
- `@remix-run/server-runtime@1.14.0`
### [`v1.13.0`](https://togithub.com/remix-run/remix/blob/HEAD/packages/remix-node/CHANGELOG.md#1130)
[Compare Source](https://togithub.com/remix-run/remix/compare/@remix-run/node@1.12.0...@remix-run/node@1.13.0)
##### Patch Changes
- Updated dependencies:
- `@remix-run/server-runtime@1.13.0`
### [`v1.12.0`](https://togithub.com/remix-run/remix/blob/HEAD/packages/remix-node/CHANGELOG.md#1120)
[Compare Source](https://togithub.com/remix-run/remix/compare/@remix-run/node@1.11.1...@remix-run/node@1.12.0)
##### Patch Changes
- Updated dependencies:
- `@remix-run/server-runtime@1.12.0`
### [`v1.11.1`](https://togithub.com/remix-run/remix/blob/HEAD/packages/remix-node/CHANGELOG.md#1111)
[Compare Source](https://togithub.com/remix-run/remix/compare/@remix-run/node@1.11.0...@remix-run/node@1.11.1)
##### Patch Changes
- Updated dependencies:
- `@remix-run/server-runtime@1.11.1`
### [`v1.11.0`](https://togithub.com/remix-run/remix/blob/HEAD/packages/remix-node/CHANGELOG.md#1110)
[Compare Source](https://togithub.com/remix-run/remix/compare/@remix-run/node@1.10.1...@remix-run/node@1.11.0)
##### Patch Changes
- Introduces the `defer()` API from `@remix-run/router` with support for server-rendering and HTTP streaming. This utility allows you to defer values returned from `loader` functions by returning promises instead of resolved values. This has been refered to as *"sending a promise over the wire"*. ([#4920](https://togithub.com/remix-run/remix/pull/4920))
Informational Resources:
-
-
Documentation Resources (better docs specific to Remix are in the works):
-
-
-
-
- Updated dependencies:
- `@remix-run/server-runtime@1.11.0`
### [`v1.10.1`](https://togithub.com/remix-run/remix/blob/HEAD/packages/remix-node/CHANGELOG.md#1101)
[Compare Source](https://togithub.com/remix-run/remix/compare/@remix-run/node@1.10.0...@remix-run/node@1.10.1)
##### Patch Changes
- Updated dependencies:
- `@remix-run/server-runtime@1.10.1`
### [`v1.10.0`](https://togithub.com/remix-run/remix/blob/HEAD/packages/remix-node/CHANGELOG.md#1100)
[Compare Source](https://togithub.com/remix-run/remix/compare/@remix-run/node@1.9.0...@remix-run/node@1.10.0)
##### Patch Changes
- Export `V2_HtmlMetaDescriptor` and `V2_MetaFunction` types from runtime packages ([#4943](https://togithub.com/remix-run/remix/pull/4943))
- Updated dependencies:
- `@remix-run/server-runtime@1.10.0`
### [`v1.9.0`](https://togithub.com/remix-run/remix/blob/HEAD/packages/remix-node/CHANGELOG.md#190)
[Compare Source](https://togithub.com/remix-run/remix/compare/@remix-run/node@1.8.2...@remix-run/node@1.9.0)
##### Patch Changes
- Updated dependencies:
- `@remix-run/server-runtime@1.9.0`
### [`v1.8.2`](https://togithub.com/remix-run/remix/blob/HEAD/packages/remix-node/CHANGELOG.md#182)
[Compare Source](https://togithub.com/remix-run/remix/compare/@remix-run/node@1.8.1...@remix-run/node@1.8.2)
##### Patch Changes
- Updated dependencies:
- `@remix-run/server-runtime@1.8.2`
### [`v1.8.1`](https://togithub.com/remix-run/remix/blob/HEAD/packages/remix-node/CHANGELOG.md#181)
[Compare Source](https://togithub.com/remix-run/remix/compare/@remix-run/node@1.8.0...@remix-run/node@1.8.1)
##### Patch Changes
- Updated dependencies:
- `@remix-run/server-runtime@1.8.1`
### [`v1.8.0`](https://togithub.com/remix-run/remix/blob/HEAD/packages/remix-node/CHANGELOG.md#180)
[Compare Source](https://togithub.com/remix-run/remix/compare/@remix-run/node@1.7.6...@remix-run/node@1.8.0)
##### Minor Changes
- Importing functions and types from the `remix` package is deprecated, and all ([#3284](https://togithub.com/remix-run/remix/pull/3284))
exported modules will be removed in the next major release. For more details,
[see the release notes for 1.4.0](https://togithub.com/remix-run/remix/releases/tag/v1.4.0)
where these changes were first announced.
##### Patch Changes
- Update `@remix-run/web-fetch`. This addresses two bugs: ([#4644](https://togithub.com/remix-run/remix/pull/4644))
- It fixes a memory leak caused by unregistered listeners
- It adds support for custom `"credentials"` values (Remix does nothing with these at the moment, but they pass through for the consumer of the request to access if needed)
- Updated dependencies:
- `@remix-run/server-runtime@1.8.0`
### [`v1.7.6`](https://togithub.com/remix-run/remix/blob/HEAD/packages/remix-node/CHANGELOG.md#176)
[Compare Source](https://togithub.com/remix-run/remix/compare/@remix-run/node@1.7.5...@remix-run/node@1.7.6)
##### Patch Changes
- Updated dependencies:
- `@remix-run/server-runtime@1.7.6`
### [`v1.7.5`](https://togithub.com/remix-run/remix/blob/HEAD/packages/remix-node/CHANGELOG.md#175)
[Compare Source](https://togithub.com/remix-run/remix/compare/@remix-run/node@1.7.4...@remix-run/node@1.7.5)
##### Patch Changes
- Updated dependencies:
- `@remix-run/server-runtime@1.7.5`
### [`v1.7.4`](https://togithub.com/remix-run/remix/blob/HEAD/packages/remix-node/CHANGELOG.md#174)
[Compare Source](https://togithub.com/remix-run/remix/compare/@remix-run/node@1.7.3...@remix-run/node@1.7.4)
##### Patch Changes
- Updated dependencies:
- `@remix-run/server-runtime@1.7.4`
### [`v1.7.3`](https://togithub.com/remix-run/remix/blob/HEAD/packages/remix-node/CHANGELOG.md#173)
[Compare Source](https://togithub.com/remix-run/remix/compare/@remix-run/node@1.7.2...@remix-run/node@1.7.3)
##### Patch Changes
- Updated dependencies:
- `@remix-run/server-runtime@1.7.3`
- `@remix-run/web-fetch@4.3.1`
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.
[ ] If you want to rebase/retry this PR, check this box
This PR has been generated by Mend Renovate. View repository job log here.
This PR contains the following updates:
^1.7.2
->^2.0.0
Release Notes
remix-run/remix (@remix-run/node)
### [`v2.0.0`](https://togithub.com/remix-run/remix/blob/HEAD/packages/remix-node/CHANGELOG.md#200) [Compare Source](https://togithub.com/remix-run/remix/compare/@remix-run/node@1.19.3...@remix-run/node@2.0.0) ##### Major Changes - Require Node >=18.0.0 ([#6939](https://togithub.com/remix-run/remix/pull/6939)) - Stop exporting the `fetch` API in favor of using the version in the global scope - which can be polyfilled via `installGlobals` ([#7293](https://togithub.com/remix-run/remix/pull/7293)) - Removed/adjusted types to prefer `unknown` over `any` and to align with underlying React Router types ([#7319](https://togithub.com/remix-run/remix/pull/7319), [#7354](https://togithub.com/remix-run/remix/pull/7354)): - Renamed the `useMatches()` return type from `RouteMatch` to `UIMatch` - Renamed `LoaderArgs`/`ActionArgs` to `LoaderFunctionArgs`/`ActionFunctionArgs` - `AppData` changed from `any` to `unknown` - `Location["state"]` (`useLocation.state`) changed from `any` to `unknown` - `UIMatch["data"]` (`useMatches()[i].data`) changed from `any` to `unknown` - `UIMatch["handle"]` (`useMatches()[i].handle`) changed from `{ [k: string]: any }` to `unknown` - `Fetcher["data"]` (`useFetcher().data`) changed from `any` to `unknown` - `MetaMatch.handle` (used in `meta()`) changed from `any` to `unknown` - `AppData`/`RouteHandle` are no longer exported as they are just aliases for `unknown` - The route `meta` API now defaults to the new "V2 Meta" API ([#6958](https://togithub.com/remix-run/remix/pull/6958)) - Please refer to the ([docs](https://remix.run/docs/en/2.0.0/route/meta) and [Preparing for V2](https://remix.run/docs/en/2.0.0/start/v2#route-meta) guide for more information. - For preparation of using Node's built in fetch implementation, installing the fetch globals is now a responsibility of the app server ([#7009](https://togithub.com/remix-run/remix/pull/7009)) - If you are using `remix-serve`, nothing is required - If you are using your own app server, you will need to install the globals yourself ```js filename=server.js import { installGlobals } from "@remix-run/node"; installGlobals(); ``` - `source-map-support` is now a responsibility of the app server ([#7009](https://togithub.com/remix-run/remix/pull/7009)) - If you are using `remix-serve`, nothing is required - If you are using your own app server, you will need to install [`source-map-support`](https://www.npmjs.com/package/source-map-support) yourself. ```sh npm i source-map-support ``` ```js filename=server.js import sourceMapSupport from "source-map-support"; sourceMapSupport.install(); ``` - Removed support for "magic exports" from the `remix` package. This package can be removed from your `package.json` and you should update all imports to use the source `@remix-run/*` packages: ([#6895](https://togithub.com/remix-run/remix/pull/6895)) ```diff - import type { ActionArgs } from "remix"; - import { json, useLoaderData } from "remix"; + import type { ActionArgs } from "@remix-run/node"; + import { json } from "@remix-run/node"; + import { useLoaderData } from "@remix-run/react"; ``` ##### Minor Changes - Re-export the new `redirectDocument` method from React Router ([#7040](https://togithub.com/remix-run/remix/pull/7040), [#6842](https://togithub.com/remix-run/remix/pull/6842)) ([#7040](https://togithub.com/remix-run/remix/pull/7040)) ##### Patch Changes - Remove `atob`/`btoa` polyfills in favor of built-in versions ([#7206](https://togithub.com/remix-run/remix/pull/7206)) - Export proper `ErrorResponse` type for usage alongside `isRouteErrorResponse` ([#7244](https://togithub.com/remix-run/remix/pull/7244)) - Add the rest of the Web Streams API to `installGlobals` ([#7321](https://togithub.com/remix-run/remix/pull/7321)) - Ensures `fetch()` return is `instanceof global Response` by removing extended classes for `NodeRequest` and `NodeResponse` in favor of custom interface type cast ([#7109](https://togithub.com/remix-run/remix/pull/7109)) - Remove recursion from stream utilities ([#7245](https://togithub.com/remix-run/remix/pull/7245)) - Updated dependencies: - `@remix-run/server-runtime@2.0.0` - `@remix-run/web-fetch@4.4.0` - `@remix-run/web-file@3.1.0` - `@remix-run/web-stream@1.1.0` ### [`v1.19.3`](https://togithub.com/remix-run/remix/blob/HEAD/packages/remix-node/CHANGELOG.md#1193) [Compare Source](https://togithub.com/remix-run/remix/compare/@remix-run/node@1.19.2...@remix-run/node@1.19.3) ##### Patch Changes - Updated dependencies: - `@remix-run/server-runtime@1.19.3` ### [`v1.19.2`](https://togithub.com/remix-run/remix/blob/HEAD/packages/remix-node/CHANGELOG.md#1192) [Compare Source](https://togithub.com/remix-run/remix/compare/@remix-run/node@1.19.1...@remix-run/node@1.19.2) ##### Patch Changes - Update to latest `@remix-run/web-*` packages ([#7026](https://togithub.com/remix-run/remix/pull/7026)) - Updated dependencies: - `@remix-run/server-runtime@1.19.2` ### [`v1.19.1`](https://togithub.com/remix-run/remix/blob/HEAD/packages/remix-node/CHANGELOG.md#1191) [Compare Source](https://togithub.com/remix-run/remix/compare/@remix-run/node@1.19.0...@remix-run/node@1.19.1) ##### Patch Changes - Updated dependencies: - `@remix-run/server-runtime@1.19.1` ### [`v1.19.0`](https://togithub.com/remix-run/remix/blob/HEAD/packages/remix-node/CHANGELOG.md#1190) [Compare Source](https://togithub.com/remix-run/remix/compare/@remix-run/node@1.18.1...@remix-run/node@1.19.0) ##### Patch Changes - Upgrade to [`@remix-run/web-fetch@4.3.5`](https://togithub.com/remix-run/web-std-io/releases/tag/%40remix-run%2Fweb-fetch%404.3.5). Submitted empty file inputs are now correctly parsed out as empty `File` instances instead of being surfaced as an empty string via `request.formData()` ([#6816](https://togithub.com/remix-run/remix/pull/6816)) - Updated dependencies: - `@remix-run/server-runtime@1.19.0` ### [`v1.18.1`](https://togithub.com/remix-run/remix/blob/HEAD/packages/remix-node/CHANGELOG.md#1181) [Compare Source](https://togithub.com/remix-run/remix/compare/@remix-run/node@1.18.0...@remix-run/node@1.18.1) ##### Patch Changes - Updated dependencies: - `@remix-run/server-runtime@1.18.1` ### [`v1.18.0`](https://togithub.com/remix-run/remix/blob/HEAD/packages/remix-node/CHANGELOG.md#1180) [Compare Source](https://togithub.com/remix-run/remix/compare/@remix-run/node@1.17.1...@remix-run/node@1.18.0) ##### Patch Changes - Updated dependencies: - `@remix-run/server-runtime@1.18.0` ### [`v1.17.1`](https://togithub.com/remix-run/remix/blob/HEAD/packages/remix-node/CHANGELOG.md#1171) [Compare Source](https://togithub.com/remix-run/remix/compare/@remix-run/node@1.17.0...@remix-run/node@1.17.1) ##### Patch Changes - Updated dependencies: - `@remix-run/server-runtime@1.17.1` ### [`v1.17.0`](https://togithub.com/remix-run/remix/blob/HEAD/packages/remix-node/CHANGELOG.md#1170) [Compare Source](https://togithub.com/remix-run/remix/compare/@remix-run/node@1.16.1...@remix-run/node@1.17.0) ##### Patch Changes - Add `HeadersArgs` type to be consistent with loaders/actions/meta and allows for using a `function` declaration in addition to an arrow function expression ([#6247](https://togithub.com/remix-run/remix/pull/6247)) ```tsx import type { HeadersArgs } from "@remix-run/node"; // or cloudflare/deno export function headers({ loaderHeaders }: HeadersArgs) { return { "x-my-custom-thing": loaderHeaders.get("x-my-custom-thing") || "fallback", }; } ``` - Fix `request.clone() instanceof Request` returning false. ([#6512](https://togithub.com/remix-run/remix/pull/6512)) - Updated dependencies: - `@remix-run/server-runtime@1.17.0` ### [`v1.16.1`](https://togithub.com/remix-run/remix/blob/HEAD/packages/remix-node/CHANGELOG.md#1161) [Compare Source](https://togithub.com/remix-run/remix/compare/@remix-run/node@1.16.0...@remix-run/node@1.16.1) ##### Patch Changes - Updated dependencies: - `@remix-run/server-runtime@1.16.1` ### [`v1.16.0`](https://togithub.com/remix-run/remix/blob/HEAD/packages/remix-node/CHANGELOG.md#1160) [Compare Source](https://togithub.com/remix-run/remix/compare/@remix-run/node@1.15.0...@remix-run/node@1.16.0) ##### Patch Changes - add `@remix-run/node/install` side-effect to allow `node --require @remix-run/node/install` ([#6132](https://togithub.com/remix-run/remix/pull/6132)) - add `logDevReady` as replacement for platforms that can't initialize async I/O outside of the request response lifecycle. ([#6204](https://togithub.com/remix-run/remix/pull/6204)) - add missing files to published package ([#6179](https://togithub.com/remix-run/remix/pull/6179)) - Updated dependencies: - `@remix-run/server-runtime@1.16.0` ### [`v1.15.0`](https://togithub.com/remix-run/remix/blob/HEAD/packages/remix-node/CHANGELOG.md#1150) [Compare Source](https://togithub.com/remix-run/remix/compare/@remix-run/node@1.14.3...@remix-run/node@1.15.0) ##### Minor Changes - We have made a few changes to the API for route module `meta` functions when using the `future.v2_meta` flag. **These changes are *only* breaking for users who have opted in.** ([#5746](https://togithub.com/remix-run/remix/pull/5746)) - `V2_HtmlMetaDescriptor` has been renamed to `V2_MetaDescriptor` - The `meta` function's arguments have been simplified - `parentsData` has been removed, as each route's loader data is available on the `data` property of its respective `match` object ```tsx // before export function meta({ parentsData }) { return [{ title: parentsData["routes/some-route"].title }]; } // after export function meta({ matches }) { return [ { title: matches.find((match) => match.id === "routes/some-route") .data.title, }, ]; } ``` - The `route` property on route matches has been removed, as relevant match data is attached directly to the match object ```tsx // before export function meta({ matches }) { const rootModule = matches.find((match) => match.route.id === "root"); } // after export function meta({ matches }) { const rootModule = matches.find((match) => match.id === "root"); } ``` - Added support for generating `` and meta-related `` tags to document head via the route `meta` function when using the `v2_meta` future flag ##### Patch Changes - Updated dependencies: - `@remix-run/server-runtime@1.15.0` ### [`v1.14.3`](https://togithub.com/remix-run/remix/blob/HEAD/packages/remix-node/CHANGELOG.md#1143) [Compare Source](https://togithub.com/remix-run/remix/compare/@remix-run/node@1.14.2...@remix-run/node@1.14.3) ##### Patch Changes - Updated dependencies: - `@remix-run/server-runtime@1.14.3` ### [`v1.14.2`](https://togithub.com/remix-run/remix/blob/HEAD/packages/remix-node/CHANGELOG.md#1142) [Compare Source](https://togithub.com/remix-run/remix/compare/@remix-run/node@1.14.1...@remix-run/node@1.14.2) ##### Patch Changes - Updated dependencies: - `@remix-run/server-runtime@1.14.2` ### [`v1.14.1`](https://togithub.com/remix-run/remix/blob/HEAD/packages/remix-node/CHANGELOG.md#1141) [Compare Source](https://togithub.com/remix-run/remix/compare/@remix-run/node@1.14.0...@remix-run/node@1.14.1) ##### Patch Changes - Updated dependencies: - `@remix-run/server-runtime@1.14.1` ### [`v1.14.0`](https://togithub.com/remix-run/remix/blob/HEAD/packages/remix-node/CHANGELOG.md#1140) [Compare Source](https://togithub.com/remix-run/remix/compare/@remix-run/node@1.13.0...@remix-run/node@1.14.0) ##### Patch Changes - Updated dependencies: - `@remix-run/server-runtime@1.14.0` ### [`v1.13.0`](https://togithub.com/remix-run/remix/blob/HEAD/packages/remix-node/CHANGELOG.md#1130) [Compare Source](https://togithub.com/remix-run/remix/compare/@remix-run/node@1.12.0...@remix-run/node@1.13.0) ##### Patch Changes - Updated dependencies: - `@remix-run/server-runtime@1.13.0` ### [`v1.12.0`](https://togithub.com/remix-run/remix/blob/HEAD/packages/remix-node/CHANGELOG.md#1120) [Compare Source](https://togithub.com/remix-run/remix/compare/@remix-run/node@1.11.1...@remix-run/node@1.12.0) ##### Patch Changes - Updated dependencies: - `@remix-run/server-runtime@1.12.0` ### [`v1.11.1`](https://togithub.com/remix-run/remix/blob/HEAD/packages/remix-node/CHANGELOG.md#1111) [Compare Source](https://togithub.com/remix-run/remix/compare/@remix-run/node@1.11.0...@remix-run/node@1.11.1) ##### Patch Changes - Updated dependencies: - `@remix-run/server-runtime@1.11.1` ### [`v1.11.0`](https://togithub.com/remix-run/remix/blob/HEAD/packages/remix-node/CHANGELOG.md#1110) [Compare Source](https://togithub.com/remix-run/remix/compare/@remix-run/node@1.10.1...@remix-run/node@1.11.0) ##### Patch Changes - Introduces the `defer()` API from `@remix-run/router` with support for server-rendering and HTTP streaming. This utility allows you to defer values returned from `loader` functions by returning promises instead of resolved values. This has been refered to as *"sending a promise over the wire"*. ([#4920](https://togithub.com/remix-run/remix/pull/4920)) Informational Resources: -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 has been generated by Mend Renovate. View repository job log here.