Skip to content

Commit

Permalink
Revert changes to changelogs
Browse files Browse the repository at this point in the history
  • Loading branch information
brophdawg11 committed Oct 9, 2024
1 parent e6e5a43 commit 3ed42fa
Show file tree
Hide file tree
Showing 6 changed files with 12 additions and 12 deletions.
2 changes: 1 addition & 1 deletion docs/guides/single-fetch.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ Single Fetch is a new data loading strategy and streaming format. When you enabl

## Overview

Remix introduced support for "Single Fetch" ([RFC][rfc]) behind the [`future.unstable_singleFetch`][future-flags] flag in [`v2.9.0`][2.9.0] (stabilized as `future.v3_singleFetch` in [`v2.13.0`][2.13.0]) which allows you to opt-into this behavior. Single Fetch will be the default in [React Router v7][merging-remix-and-rr].
Remix introduced support for "Single Fetch" ([RFC][rfc]) behind the [`future.unstable_singleFetch`][future-flags] flag in [`v2.9.0`][2.9.0] (later stabilized as `future.v3_singleFetch` in [`v2.13.0`][2.13.0]) which allows you to opt-into this behavior. Single Fetch will be the default in [React Router v7][merging-remix-and-rr].

Enabling Single Fetch is intended to be low-effort up-front, and then allow you to adopt all breaking changes iteratively over time. You can start by applying the minimal required changes to [enable Single Fetch][start], then use the [migration guide][migration-guide] to make incremental changes in your application to ensure a smooth, non-breaking upgrade to [React Router v7][merging-remix-and-rr].

Expand Down
4 changes: 2 additions & 2 deletions packages/remix-cloudflare/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,15 +20,15 @@

declare module "@remix-run/server-runtime" {
interface Future {
v3_singleFetch: true; // 👈 enable _types_ for single-fetch
unstable_singleFetch: true; // 👈 enable _types_ for single-fetch
}
}

export default defineConfig({
plugins: [
remix({
future: {
v3_singleFetch: true, // 👈 enable single-fetch
unstable_singleFetch: true, // 👈 enable single-fetch
},
}),
],
Expand Down
4 changes: 2 additions & 2 deletions packages/remix-deno/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,15 +23,15 @@

declare module "@remix-run/server-runtime" {
interface Future {
v3_singleFetch: true; // 👈 enable _types_ for single-fetch
unstable_singleFetch: true; // 👈 enable _types_ for single-fetch
}
}

export default defineConfig({
plugins: [
remix({
future: {
v3_singleFetch: true, // 👈 enable single-fetch
unstable_singleFetch: true, // 👈 enable single-fetch
},
}),
],
Expand Down
2 changes: 1 addition & 1 deletion packages/remix-dev/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@

### Minor Changes

- New `future.v3_singleFetch` flag ([#8773](https://github.com/remix-run/remix/pull/8773))
- New `future.unstable_singleFetch` flag ([#8773](https://github.com/remix-run/remix/pull/8773))

- Naked objects returned from loaders/actions are no longer automatically converted to JSON responses. They'll be streamed as-is via `turbo-stream` so `Date`'s will become `Date` through `useLoaderData()`
- You can return naked objects with `Promise`'s without needing to use `defer()` - including nested `Promise`'s
Expand Down
6 changes: 3 additions & 3 deletions packages/remix-node/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,15 +20,15 @@

declare module "@remix-run/server-runtime" {
interface Future {
v3_singleFetch: true; // 👈 enable _types_ for single-fetch
unstable_singleFetch: true; // 👈 enable _types_ for single-fetch
}
}

export default defineConfig({
plugins: [
remix({
future: {
v3_singleFetch: true, // 👈 enable single-fetch
unstable_singleFetch: true, // 👈 enable single-fetch
},
}),
],
Expand Down Expand Up @@ -115,7 +115,7 @@

- Use undici as our fetch polyfill going forward ([#9106](https://github.com/remix-run/remix/pull/9106), [#9111](https://github.com/remix-run/remix/pull/9111))
- Put `undici` fetch polyfill behind a new `installGlobals({ nativeFetch: true })` parameter ([#9198](https://github.com/remix-run/remix/pull/9198))
- `remix-serve` will default to using `undici` for the fetch polyfill if `future._v3_singleFetch` is enabled because the single fetch implementation relies on the `undici` polyfill
- `remix-serve` will default to using `undici` for the fetch polyfill if `future._unstable_singleFetch` is enabled because the single fetch implementation relies on the `undici` polyfill
- Any users opting into Single Fetch and managing their own polfill will need to pass the flag to `installGlobals` on their own to avoid runtime errors with Single Fetch

### Patch Changes
Expand Down
6 changes: 3 additions & 3 deletions packages/remix-react/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -42,15 +42,15 @@

declare module "@remix-run/server-runtime" {
interface Future {
v3_singleFetch: true; // 👈 enable _types_ for single-fetch
unstable_singleFetch: true; // 👈 enable _types_ for single-fetch
}
}

export default defineConfig({
plugins: [
remix({
future: {
v3_singleFetch: true, // 👈 enable single-fetch
unstable_singleFetch: true, // 👈 enable single-fetch
},
}),
],
Expand Down Expand Up @@ -189,7 +189,7 @@

### Minor Changes

- New `future.v3_singleFetch` flag ([#8773](https://github.com/remix-run/remix/pull/8773))
- New `future.unstable_singleFetch` flag ([#8773](https://github.com/remix-run/remix/pull/8773))

- Naked objects returned from loaders/actions are no longer automatically converted to JSON responses. They'll be streamed as-is via `turbo-stream` so `Date`'s will become `Date` through `useLoaderData()`
- You can return naked objects with `Promise`'s without needing to use `defer()` - including nested `Promise`'s
Expand Down

0 comments on commit 3ed42fa

Please sign in to comment.