Skip to content

Commit 6249de0

Browse files
committed
chore: format
1 parent 5cae3b5 commit 6249de0

File tree

1 file changed

+1
-11
lines changed

1 file changed

+1
-11
lines changed

packages/react-router/CHANGELOG.md

Lines changed: 1 addition & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@
1414
- ⚠️ This is a breaking change if you have begun using `fetcher.unstable_reset()`
1515

1616
- Stabilize the `dataStrategy` `match.shouldRevalidateArgs`/`match.shouldCallHandler()` APIs. ([#14592](https://github.com/remix-run/react-router/pull/14592))
17-
1817
- The `match.shouldLoad` API is now marked deprecated in favor of these more powerful alternatives
1918

2019
- If you're using this API in a custom `dataStrategy` today, you can swap to the new API at your convenience:
@@ -143,7 +142,6 @@
143142
- Ensure action handlers run for routes with middleware even if no loader is present ([#14443](https://github.com/remix-run/react-router/pull/14443))
144143

145144
- Add `unstable_instrumentations` API to allow users to add observablity to their apps by instrumenting route loaders, actions, middlewares, lazy, as well as server-side request handlers and client side navigations/fetches ([#14412](https://github.com/remix-run/react-router/pull/14412))
146-
147145
- Framework Mode:
148146
- `entry.server.tsx`: `export const unstable_instrumentations = [...]`
149147
- `entry.client.tsx`: `<HydratedRouter unstable_instrumentations={[...]} />`
@@ -305,7 +303,6 @@
305303
- Stabilize middleware and context APIs. ([#14215](https://github.com/remix-run/react-router/pull/14215))
306304

307305
We have removed the `unstable_` prefix from the following APIs and they are now considered stable and ready for production use:
308-
309306
- [`RouterContextProvider`](https://reactrouter.com/api/utils/RouterContextProvider)
310307
- [`createContext`](https://reactrouter.com/api/utils/createContext)
311308
- `createBrowserRouter` [`getContext`](https://reactrouter.com/api/data-routers/createBrowserRouter#optsgetcontext) option
@@ -332,7 +329,7 @@
332329

333330
- \[UNSTABLE] Add `<RouterProvider unstable_onError>`/`<HydratedRouter unstable_onError>` prop for client side error reporting ([#14162](https://github.com/remix-run/react-router/pull/14162))
334331

335-
- server action revalidation opt out via $SKIP\_REVALIDATION field ([#14154](https://github.com/remix-run/react-router/pull/14154))
332+
- server action revalidation opt out via $SKIP_REVALIDATION field ([#14154](https://github.com/remix-run/react-router/pull/14154))
336333

337334
- Properly escape interpolated param values in `generatePath()` ([#13530](https://github.com/remix-run/react-router/pull/13530))
338335

@@ -381,7 +378,6 @@
381378
- Remove dependency on `@types/node` in TypeScript declaration files ([#14059](https://github.com/remix-run/react-router/pull/14059))
382379

383380
- Fix types for `UIMatch` to reflect that the `loaderData`/`data` properties may be `undefined` ([#12206](https://github.com/remix-run/react-router/pull/12206))
384-
385381
- When an `ErrorBoundary` is being rendered, not all active matches will have loader data available, since it may have been their `loader` that threw to trigger the boundary
386382
- The `UIMatch.data` type was not correctly handing this and would always reflect the presence of data, leading to the unexpected runtime errors when an `ErrorBoundary` was rendered
387383
- ⚠️ This may cause some type errors to show up in your code for unguarded `match.data` accesses - you should properly guard for `undefined` values in those scenarios.
@@ -415,7 +411,6 @@
415411
- \[UNSTABLE] When middleware is enabled, make the `context` parameter read-only (via `Readonly<unstable_RouterContextProvider>`) so that TypeScript will not allow you to write arbitrary fields to it in loaders, actions, or middleware. ([#14097](https://github.com/remix-run/react-router/pull/14097))
416412

417413
- \[UNSTABLE] Rename and alter the signature/functionality of the `unstable_respond` API in `staticHandler.query`/`staticHandler.queryRoute` ([#14103](https://github.com/remix-run/react-router/pull/14103))
418-
419414
- The API has been renamed to `unstable_generateMiddlewareResponse` for clarity
420415
- The main functional change is that instead of running the loaders/actions before calling `unstable_respond` and handing you the result, we now pass a `query`/`queryRoute` function as a parameter and you execute the loaders/actions inside your callback, giving you full access to pre-processing and error handling
421416
- The `query` version of the API now has a signature of `(query: (r: Request) => Promise<StaticHandlerContext | Response>) => Promise<Response>`
@@ -1061,7 +1056,6 @@
10611056
```
10621057

10631058
Similar to server-side requests, a fresh `context` will be created per navigation (or `fetcher` call). If you have initial data you'd like to populate in the context for every request, you can provide an `unstable_getContext` function at the root of your app:
1064-
10651059
- Library mode - `createBrowserRouter(routes, { unstable_getContext })`
10661060
- Framework mode - `<HydratedRouter unstable_getContext>`
10671061

@@ -1249,7 +1243,6 @@ _No changes_
12491243
- Remove `future.v7_normalizeFormMethod` future flag ([#11697](https://github.com/remix-run/react-router/pull/11697))
12501244

12511245
- For Remix consumers migrating to React Router, the `crypto` global from the [Web Crypto API](https://developer.mozilla.org/en-US/docs/Web/API/Web_Crypto_API) is now required when using cookie and session APIs. This means that the following APIs are provided from `react-router` rather than platform-specific packages: ([#11837](https://github.com/remix-run/react-router/pull/11837))
1252-
12531246
- `createCookie`
12541247
- `createCookieSessionStorage`
12551248
- `createMemorySessionStorage`
@@ -1258,7 +1251,6 @@ _No changes_
12581251
For consumers running older versions of Node, the `installGlobals` function from `@remix-run/node` has been updated to define `globalThis.crypto`, using [Node's `require('node:crypto').webcrypto` implementation.](https://nodejs.org/api/webcrypto.html)
12591252

12601253
Since platform-specific packages no longer need to implement this API, the following low-level APIs have been removed:
1261-
12621254
- `createCookieFactory`
12631255
- `createSessionStorageFactory`
12641256
- `createCookieSessionStorageFactory`
@@ -1414,7 +1406,6 @@ _No changes_
14141406
```
14151407

14161408
This initial implementation targets type inference for:
1417-
14181409
- `Params` : Path parameters from your routing config in `routes.ts` including file-based routing
14191410
- `LoaderData` : Loader data from `loader` and/or `clientLoader` within your route module
14201411
- `ActionData` : Action data from `action` and/or `clientAction` within your route module
@@ -1429,7 +1420,6 @@ _No changes_
14291420
```
14301421

14311422
Check out our docs for more:
1432-
14331423
- [_Explanations > Type Safety_](https://reactrouter.com/dev/guides/explanation/type-safety)
14341424
- [_How-To > Setting up type safety_](https://reactrouter.com/dev/guides/how-to/setting-up-type-safety)
14351425

0 commit comments

Comments
 (0)