Skip to content

Commit d2838ea

Browse files
committed
Add 2.3.0 to RELEASES.md
1 parent 76718fa commit d2838ea

File tree

2 files changed

+97
-19
lines changed

2 files changed

+97
-19
lines changed

.changeset/ninety-boats-fail.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
fix(vite): deduplicate `@remix-run/react`
66

77
Pre-bundle Remix dependencies to avoid Remix router duplicates.
8-
Our remix-remix-react-proxy plugin does not process default client and
8+
Our remix-react-proxy plugin does not process default client and
99
server entry files since those come from within `node_modules`.
1010
That means that before Vite pre-bundles dependencies (e.g. first time dev server is run)
1111
mismatching Remix routers cause `Error: You must render this element inside a <Remix> element`.

RELEASES.md

Lines changed: 96 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -13,25 +13,33 @@ We manage release notes in this file instead of the paginated Github Releases Pa
1313
<summary>Table of Contents</summary>
1414

1515
- [Remix Releases](#remix-releases)
16-
- [v2.2.0 🏷️](#v220-️)
16+
- [v2.3.0 🏷️](#v230-️)
1717
- [What's Changed](#whats-changed)
18-
- [Vite!](#vite)
19-
- [New Fetcher APIs](#new-fetcher-apis)
20-
- [Persistence Future Flag](#persistence-future-flag)
18+
- [Stabilized `useBlocker`](#stabilized-useblocker)
19+
- [`unstable_flushSync` API](#unstable_flushsync-api)
2120
- [Minor Changes](#minor-changes)
2221
- [Patch Changes](#patch-changes)
2322
- [Updated Dependencies](#updated-dependencies)
2423
- [Changes by Package](#changes-by-package)
25-
- [v2.1.0 🏷️](#v210-️)
24+
- [v2.2.0 🏷️](#v220-️)
2625
- [What's Changed](#whats-changed-1)
27-
- [View Transitions](#view-transitions)
28-
- [Stable `createRemixStub`](#stable-createremixstub)
26+
- [Vite!](#vite)
27+
- [New Fetcher APIs](#new-fetcher-apis)
28+
- [Persistence Future Flag](#persistence-future-flag)
2929
- [Minor Changes](#minor-changes-1)
3030
- [Patch Changes](#patch-changes-1)
3131
- [Updated Dependencies](#updated-dependencies-1)
3232
- [Changes by Package](#changes-by-package-1)
33-
- [v2.0.1 🏷️](#v201-️)
33+
- [v2.1.0 🏷️](#v210-️)
34+
- [What's Changed](#whats-changed-2)
35+
- [View Transitions](#view-transitions)
36+
- [Stable `createRemixStub`](#stable-createremixstub)
37+
- [Minor Changes](#minor-changes-2)
3438
- [Patch Changes](#patch-changes-2)
39+
- [Updated Dependencies](#updated-dependencies-2)
40+
- [Changes by Package](#changes-by-package-2)
41+
- [v2.0.1 🏷️](#v201-️)
42+
- [Patch Changes](#patch-changes-3)
3543
- [Changes by Package 🔗](#changes-by-package-)
3644
- [v2.0.0 🏷️](#v200-️)
3745
- [Breaking Changes](#breaking-changes)
@@ -43,8 +51,8 @@ We manage release notes in this file instead of the paginated Github Releases Pa
4351
- [Breaking Type Changes](#breaking-type-changes)
4452
- [New Features](#new-features)
4553
- [Other Notable Changes](#other-notable-changes)
46-
- [Updated Dependencies](#updated-dependencies-2)
47-
- [Changes by Package](#changes-by-package-2)
54+
- [Updated Dependencies](#updated-dependencies-3)
55+
- [Changes by Package](#changes-by-package-3)
4856

4957
</details>
5058

@@ -86,12 +94,88 @@ To add a new release, copy from this template:
8694
- [`@remix-run/server-runtime`](https://github.com/remix-run/remix/blob/remix%402.X.Y/packages/remix-server-runtime/CHANGELOG.md#2XY)
8795
- [`@remix-run/testing`](https://github.com/remix-run/remix/blob/remix%402.X.Y/packages/remix-testing/CHANGELOG.md#2XY)
8896
89-
---
90-
9197
**Full Changelog**: [`v2.X.Y...v2.X.Y`](https://github.com/remix-run/remix/compare/[email protected]@2.X.Y)
9298
9399
-->
94100

101+
## v2.3.0 [🏷️](https://github.com/remix-run/remix/releases/tag/remix%402.3.0)
102+
103+
### What's Changed
104+
105+
#### Stabilized `useBlocker`
106+
107+
We've removed the `unstable_` prefix from the [`useBlocker`](https://remix.run/hooks/use-blocker) 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 from [`unstable_usePrompt`](https://remix.run/hooks/use-prompt) due to differences in how browsers handle `window.confirm` that prevent React Router from guaranteeing consistent/correct behavior.
108+
109+
#### `unstable_flushSync` API
110+
111+
We've added a new `unstable_flushSync` option to the imperative APIs (`useSubmit`, `useNavigate`, `fetcher.submit`, `fetcher.load`) to let users opt-into synchronous DOM updates for pending/optimistic UI.
112+
113+
```js
114+
function handleClick() {
115+
submit(data, { flushSync: true });
116+
// Everything is flushed to the DOM so you can focus/scroll to your pending/optimistic UI
117+
setFocusAndOrScrollToNewlyAddedThing();
118+
}
119+
```
120+
121+
### Minor Changes
122+
123+
- Remove the `unstable_` prefix from the [`useBlocker`](https://reactrouter.com/en/main/hooks/use-blocker) hook ([#7882](https://github.com/remix-run/remix/pull/7882))
124+
- Add `unstable_flushSync` option to `useNavigate`/`useSubmit`/`fetcher.load`/`fetcher.submit` to opt-out of `React.startTransition` and into `ReactDOM.flushSync` for state updates ([#7996](https://github.com/remix-run/remix/pull/7996))
125+
126+
### Patch Changes
127+
128+
- `@remix-run/react`: Add missing `modulepreload` for the manifest ([#7684](https://github.com/remix-run/remix/pull/7684))
129+
- `@remix-run/server-runtime`: Updated `cookie` dependency from `0.4.1` to [`0.5.0`](https://github.com/jshttp/cookie/blob/v0.5.0/HISTORY.md#050--2022-04-11) to inherit support for `Priority` attribute in Chrome ([#6770](https://github.com/remix-run/remix/pull/6770))
130+
- `@remix-run/dev`: Fix `FutureConfig` type ([#7895](https://github.com/remix-run/remix/pull/7895))
131+
- _Lots_ of small fixes for the unstable `vite` compiler:
132+
- Support optional rendering of the `LiveReload` component in Vite dev ([#7919](https://github.com/remix-run/remix/pull/7919))
133+
- Support rendering of the `LiveReload` component after `Scripts` in Vite dev ([#7919](https://github.com/remix-run/remix/pull/7919))
134+
- Fix `react-refresh/babel` resolution for custom server with `pnpm` ([#7904](https://github.com/remix-run/remix/pull/7904))
135+
- Support JSX usage in `.jsx` files without manual `React` import in Vite ([#7888](https://github.com/remix-run/remix/pull/7888))
136+
- Fix Vite production builds when plugins that have different local state between `development` and `production` modes are present (e.g. `@mdx-js/rollup`) ([#7911](https://github.com/remix-run/remix/pull/7911))
137+
- Cache resolution of Remix Vite plugin options ([#7908](https://github.com/remix-run/remix/pull/7908))
138+
- Support Vite 5 ([#7846](https://github.com/remix-run/remix/pull/7846))
139+
- Allow `process.env.NODE_ENV` values other than `"development"` in Vite dev ([#7980](https://github.com/remix-run/remix/pull/7980))
140+
- Attach CSS from shared chunks to routes in Vite build ([#7952](https://github.com/remix-run/remix/pull/7952))
141+
- Let Vite handle serving files outside of project root via `/@fs` ([#7913](https://github.com/remix-run/remix/pull/7913))
142+
- This fixes errors when using default client entry or server entry in a pnpm project where those files may be outside of the project root, but within the workspace root
143+
- By default, Vite prevents access to files outside the workspace root (when using workspaces) or outside of the project root (when not using workspaces) unless user explicitly opts into it via Vite's `server.fs.allow`
144+
- Improve performance of LiveReload proxy in Vite dev ([#7883](https://github.com/remix-run/remix/pull/7883))
145+
- Deduplicate `@remix-run/react` ([#7926](https://github.com/remix-run/remix/pull/7926))
146+
- Pre-bundle Remix dependencies to avoid Remix router duplicates
147+
- Our `remix-react-proxy` plugin does not process default client and server entry files since those come from within `node_modules`
148+
- That means that before Vite pre-bundles dependencies (e.g. first time dev server is run) mismatching Remix routers cause `Error: You must render this element inside a <Remix> element`
149+
- Fix React Fast Refresh error on load when using `defer` in Vite dev server ([#7842](https://github.com/remix-run/remix/pull/7842))
150+
- Handle multiple `Set-Cookie` headers in Vite dev server ([#7843](https://github.com/remix-run/remix/pull/7843))
151+
- Fix flash of unstyled content on initial page load in Vite dev when using a custom Express server ([#7937](https://github.com/remix-run/remix/pull/7937))
152+
- Populate `process.env` from `.env` files on the server in Vite dev ([#7958](https://github.com/remix-run/remix/pull/7958))
153+
154+
### Updated Dependencies
155+
156+
- [`[email protected]`](https://github.com/remix-run/react-router/releases/tag/react-router%406.19.0)
157+
- [`@remix-run/[email protected]`](https://github.com/remix-run/react-router/blob/main/packages/router/CHANGELOG.md#1120)
158+
159+
### Changes by Package
160+
161+
- [`create-remix`](https://github.com/remix-run/remix/blob/remix%402.3.0/packages/create-remix/CHANGELOG.md#230)
162+
- [`@remix-run/architect`](https://github.com/remix-run/remix/blob/remix%402.3.0/packages/remix-architect/CHANGELOG.md#230)
163+
- [`@remix-run/cloudflare`](https://github.com/remix-run/remix/blob/remix%402.3.0/packages/remix-cloudflare/CHANGELOG.md#230)
164+
- [`@remix-run/cloudflare-pages`](https://github.com/remix-run/remix/blob/remix%402.3.0/packages/remix-cloudflare-pages/CHANGELOG.md#230)
165+
- [`@remix-run/cloudflare-workers`](https://github.com/remix-run/remix/blob/remix%402.3.0/packages/remix-cloudflare-workers/CHANGELOG.md#230)
166+
- [`@remix-run/css-bundle`](https://github.com/remix-run/remix/blob/remix%402.3.0/packages/remix-css-bundle/CHANGELOG.md#230)
167+
- [`@remix-run/deno`](https://github.com/remix-run/remix/blob/remix%402.3.0/packages/remix-deno/CHANGELOG.md#230)
168+
- [`@remix-run/dev`](https://github.com/remix-run/remix/blob/remix%402.3.0/packages/remix-dev/CHANGELOG.md#230)
169+
- [`@remix-run/eslint-config`](https://github.com/remix-run/remix/blob/remix%402.3.0/packages/remix-eslint-config/CHANGELOG.md#230)
170+
- [`@remix-run/express`](https://github.com/remix-run/remix/blob/remix%402.3.0/packages/remix-express/CHANGELOG.md#230)
171+
- [`@remix-run/node`](https://github.com/remix-run/remix/blob/remix%402.3.0/packages/remix-node/CHANGELOG.md#230)
172+
- [`@remix-run/react`](https://github.com/remix-run/remix/blob/remix%402.3.0/packages/remix-react/CHANGELOG.md#230)
173+
- [`@remix-run/serve`](https://github.com/remix-run/remix/blob/remix%402.3.0/packages/remix-serve/CHANGELOG.md#230)
174+
- [`@remix-run/server-runtime`](https://github.com/remix-run/remix/blob/remix%402.3.0/packages/remix-server-runtime/CHANGELOG.md#230)
175+
- [`@remix-run/testing`](https://github.com/remix-run/remix/blob/remix%402.3.0/packages/remix-testing/CHANGELOG.md#230)
176+
177+
**Full Changelog**: [`v2.2.0...v2.3.0`](https://github.com/remix-run/remix/compare/[email protected]@2.3.0)
178+
95179
## v2.2.0 [🏷️](https://github.com/remix-run/remix/releases/tag/remix%402.2.0)
96180

97181
### What's Changed
@@ -183,8 +267,6 @@ Per the same [RFC](https://github.com/remix-run/remix/discussions/7698) as above
183267
- [`@remix-run/server-runtime`](https://github.com/remix-run/remix/blob/remix%402.2.0/packages/remix-server-runtime/CHANGELOG.md#220)
184268
- [`@remix-run/testing`](https://github.com/remix-run/remix/blob/remix%402.2.0/packages/remix-testing/CHANGELOG.md#220)
185269

186-
---
187-
188270
**Full Changelog**: [`v2.1.0...v2.2.0`](https://github.com/remix-run/remix/compare/[email protected]@2.2.0)
189271

190272
## v2.1.0 [🏷️](https://github.com/remix-run/remix/releases/tag/remix%402.1.0)
@@ -279,8 +361,6 @@ After real-world experience, we're confident in the [`createRemixStub`](https://
279361
- [`@remix-run/server-runtime`](https://github.com/remix-run/remix/blob/remix%402.1.0/packages/remix-server-runtime/CHANGELOG.md#210)
280362
- [`@remix-run/testing`](https://github.com/remix-run/remix/blob/remix%402.1.0/packages/remix-testing/CHANGELOG.md#210)
281363

282-
---
283-
284364
**Full Changelog**: [`v2.0.1...v2.1.0`](https://github.com/remix-run/remix/compare/[email protected]@2.1.0)
285365

286366
## v2.0.1 [🏷️](https://github.com/remix-run/remix/releases/tag/remix%402.0.1)
@@ -310,8 +390,6 @@ After real-world experience, we're confident in the [`createRemixStub`](https://
310390
- [`@remix-run/react`](https://github.com/remix-run/remix/blob/remix%402.0.1/packages/remix-react/CHANGELOG.md#201)
311391
- [`@remix-run/serve`](https://github.com/remix-run/remix/blob/remix%402.0.1/packages/remix-serve/CHANGELOG.md#201)
312392

313-
---
314-
315393
**Full Changelog**: [`v2.0.0...v2.0.1`](https://github.com/remix-run/remix/compare/[email protected]@2.0.1)
316394

317395
## v2.0.0 [🏷️](https://github.com/remix-run/remix/releases/tag/remix%402.0.0)

0 commit comments

Comments
 (0)