Skip to content

Commit 5658cc1

Browse files
committed
Update release notes
1 parent ee2eab2 commit 5658cc1

File tree

3 files changed

+11
-19
lines changed

3 files changed

+11
-19
lines changed

CHANGELOG.md

Lines changed: 7 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ We manage release notes in this file instead of the paginated Github Releases Pa
1515
- [React Router Releases](#react-router-releases)
1616
- [v7.5.0](#v750)
1717
- [What's Changed](#whats-changed)
18-
- [Object API for `route.lazy`](#object-api-for-routelazy)
18+
- [`route.lazy` Object API](#routelazy-object-api)
1919
- [Minor Changes](#minor-changes)
2020
- [Patch Changes](#patch-changes)
2121
- [Unstable Changes](#unstable-changes)
@@ -318,13 +318,13 @@ Date: YYYY-MM-DD
318318

319319
## v7.5.0
320320

321-
Date: 2025-04-03
321+
Date: 2025-04-04
322322

323323
### What's Changed
324324

325-
#### Object API for `route.lazy`
325+
#### `route.lazy` Object API
326326

327-
We've introduced a new `route.lazy` API which gives you more granular control over the lazy loading of route properties that you could not achieve with the `route.lazy` function signature. This is useful for Framework mode and performance-critical library mode applications.
327+
We've introduced a new `route.lazy` API which gives you more granular control over the lazy loading of route properties that you could not achieve with the `route.lazy()` function signature. This is useful for Framework mode and performance-critical library mode applications.
328328

329329
```ts
330330
createBrowserRouter([
@@ -339,20 +339,7 @@ createBrowserRouter([
339339
]);
340340
```
341341

342-
⚠️ This is a breaking change if you have adopted the `route.unstable_lazyMiddleware` API which has been removed in favor of `route.lazy.unstable_middleware`. If you want to lazily load middleware, you must use the new object-based `route.lazy` API:
343-
344-
```ts
345-
createBrowserRouter([
346-
{
347-
path: "/show/:showId",
348-
lazy: {
349-
unstable_middleware: async () =>
350-
(await import("./show.middleware.js")).middleware,
351-
// etc.
352-
},
353-
},
354-
]);
355-
```
342+
⚠️ This is a breaking change if you have adopted the `route.unstable_lazyMiddleware` API which has been removed in favor of `route.lazy.unstable_middleware`. See the `Unstable Changes` section below for more information.
356343

357344
### Minor Changes
358345

@@ -368,6 +355,8 @@ createBrowserRouter([
368355
⚠️ _[Unstable features](https://reactrouter.com/community/api-development-strategy#unstable-flags) are not recommended for production use_
369356

370357
- `react-router` - Introduce `future.unstable_subResourceIntegrity` flag that enables generation of an `importmap` with `integrity` for the scripts that will be loaded by the browser ([#13163](https://github.com/remix-run/react-router/pull/13163))
358+
- `react-router` - Remove support for the `route.unstable_lazyMiddleware` property ([#13294](https://github.com/remix-run/react-router/pull/13294))
359+
- In order to lazily load middleware, you can use the new object-based `route.lazy.unstable_middleware` API
371360
- `@react-router/dev` - When `future.unstable_viteEnvironmentApi` is enabled, ensure critical CSS in development works when using a custom Vite `base` has been configured ([#13305](https://github.com/remix-run/react-router/pull/13305))
372361

373362
### Changes by Package

packages/create-react-router/CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,12 @@
22

33
## 7.5.0
44

5+
_No changes_
6+
57
## 7.4.1
68

9+
_No changes_
10+
711
## 7.4.0
812

913
_No changes_

packages/react-router/CHANGELOG.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,6 @@
3939
### Patch Changes
4040

4141
- Introduce `unstable_subResourceIntegrity` future flag that enables generation of an importmap with integrity for the scripts that will be loaded by the browser. ([#13163](https://github.com/remix-run/react-router/pull/13163))
42-
- \[REMOVE]: Additional work on route.lazy object form ([#13339](https://github.com/remix-run/react-router/pull/13339))
4342

4443
## 7.4.1
4544

0 commit comments

Comments
 (0)