-
Notifications
You must be signed in to change notification settings - Fork 2.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: Update version for release (pre) (#7284)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
- Loading branch information
1 parent
78debcf
commit 65f0b29
Showing
32 changed files
with
926 additions
and
32 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,37 @@ | ||
# `@remix-run/architect` | ||
|
||
## 2.0.0-pre.0 | ||
|
||
### Major Changes | ||
|
||
- Require Node >=18.0.0 ([#6939](https://github.com/remix-run/remix/pull/6939)) | ||
- For preparation of using Node's built in fetch implementation, installing the fetch globals is now a responsibility of the app server. 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. ([#7009](https://github.com/remix-run/remix/pull/7009)) | ||
|
||
```js filename=server.js | ||
import { installGlobals } from "@remix-run/node"; | ||
|
||
installGlobals(); | ||
``` | ||
|
||
source-map-support is now a responsibility of the app server. 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(); | ||
``` | ||
|
||
### Patch Changes | ||
|
||
- - Switch to `headers.entries()` instead of non-spec-compliant `headers.raw()` in `sendRemixResponse` ([#7150](https://github.com/remix-run/remix/pull/7150)) | ||
- Update to `@remix-run/[email protected]` | ||
- remove references to fetch polyfills in node and arc adapters ([#7230](https://github.com/remix-run/remix/pull/7230)) | ||
- Updated dependencies: | ||
- `@remix-run/[email protected]` | ||
|
||
## 1.19.3 | ||
|
||
### Patch Changes | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,17 @@ | ||
# `@remix-run/cloudflare-pages` | ||
|
||
## 2.0.0-pre.0 | ||
|
||
### Major Changes | ||
|
||
- Require Node >=18.0.0 ([#6939](https://github.com/remix-run/remix/pull/6939)) | ||
- Drop `@cloudflare/workers-types` v2 & v3 support ([#6925](https://github.com/remix-run/remix/pull/6925)) | ||
|
||
### Patch Changes | ||
|
||
- Updated dependencies: | ||
- `@remix-run/[email protected]` | ||
|
||
## 1.19.3 | ||
|
||
### Patch Changes | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,17 @@ | ||
# `@remix-run/cloudflare-workers` | ||
|
||
## 2.0.0-pre.0 | ||
|
||
### Major Changes | ||
|
||
- Require Node >=18.0.0 ([#6939](https://github.com/remix-run/remix/pull/6939)) | ||
- Drop `@cloudflare/workers-types` v2 & v3 support ([#6925](https://github.com/remix-run/remix/pull/6925)) | ||
|
||
### Patch Changes | ||
|
||
- Updated dependencies: | ||
- `@remix-run/[email protected]` | ||
|
||
## 1.19.3 | ||
|
||
### Patch Changes | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,72 @@ | ||
# `@remix-run/cloudflare` | ||
|
||
## 2.0.0-pre.0 | ||
|
||
### Major Changes | ||
|
||
- Remove `createCloudflareKVSessionStorage` ([#6898](https://github.com/remix-run/remix/pull/6898)) | ||
- Require Node >=18.0.0 ([#6939](https://github.com/remix-run/remix/pull/6939)) | ||
- We have made a few important changes to the route `meta` API as reflected in the v1 implementation when using the `future.v2_meta` config option. ([#6958](https://github.com/remix-run/remix/pull/6958)) | ||
|
||
- The `meta` function should no longer return an object, but an array of objects that map to the HTML tag's respective attributes. This provides more flexibility and control over how certain tags are rendered, and the order in which they appear. | ||
- In most cases, `meta` descriptor objects render a `<meta>` tag. There are a few notable exceptions: | ||
- `{ title: "My app" }` will render `<title>My app</title>`. | ||
- `{ 'script:ld+json': { /* ... */ } }` will render `<script type="application/ld+json">/* ... */</script>`, where the value is serialized to JSON and rendered inside the `<script>` tag. | ||
- `{ tagName: 'link', ...attributes }` will render `<link {...attributes} />` | ||
- This is useful for things like setting canonical URLs. For loading assets, we encourage you to use the `links` export instead. | ||
- It's important to note that `tagName` may only accept `meta` or `link`, so other arbitrary elements will be ignored. | ||
- `<Meta />` will no longer render the `meta` output from the entire route hierarchy. Only the output from the leaf (current) route will be rendered unless that route does not export a `meta` function, in which case the output from the nearest ancestor route with `meta` will be rendered. | ||
- This change comes from user feedback that auto-merging meta made effective SEO difficult to implement. Our goal is to give you as much control as you need over meta tags for each individual route. | ||
- Our suggested approach is to **only export a `meta` function from leaf route modules**. However, if you do want to render a tag from another matched route, `meta` now accepts a `matches` argument for you to merge or override parent route meta as you'd like. | ||
```tsx | ||
export function meta({ matches }) { | ||
return [ | ||
// render all ancestor route meta except for title tags | ||
...matches | ||
.flatMap((match) => match.meta) | ||
.filter((match) => !("title" in match)), | ||
{ title: "Override the title!" }, | ||
]; | ||
} | ||
``` | ||
- The `parentsData` argument has been removed. If you need to access data from a parent route, you can use `matches` instead. | ||
```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, | ||
}, | ||
]; | ||
} | ||
``` | ||
|
||
- Drop `@cloudflare/workers-types` v2 & v3 support ([#6925](https://github.com/remix-run/remix/pull/6925)) | ||
- 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://github.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 new `redirectDocument` method from React Router ([#7040](https://github.com/remix-run/remix/pull/7040), [#6842](https://github.com/remix-run/remix/pull/6842)) ([#7040](https://github.com/remix-run/remix/pull/7040)) | ||
|
||
### Patch Changes | ||
|
||
- Export proper `ErrorResponse` type for usage alongside `isRouteErrorResponse` ([#7244](https://github.com/remix-run/remix/pull/7244)) | ||
- Updated dependencies: | ||
- `@remix-run/[email protected]` | ||
|
||
## 1.19.3 | ||
|
||
### Patch Changes | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.