You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: packages/react-router/CHANGELOG.md
+1-11Lines changed: 1 addition & 11 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -14,7 +14,6 @@
14
14
- ⚠️ This is a breaking change if you have begun using `fetcher.unstable_reset()`
15
15
16
16
- Stabilize the `dataStrategy` `match.shouldRevalidateArgs`/`match.shouldCallHandler()` APIs. ([#14592](https://github.com/remix-run/react-router/pull/14592))
17
-
18
17
- The `match.shouldLoad` API is now marked deprecated in favor of these more powerful alternatives
19
18
20
19
- 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 @@
143
142
- Ensure action handlers run for routes with middleware even if no loader is present ([#14443](https://github.com/remix-run/react-router/pull/14443))
144
143
145
144
- 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))
- \[UNSTABLE] Add `<RouterProvider unstable_onError>`/`<HydratedRouter unstable_onError>` prop for client side error reporting ([#14162](https://github.com/remix-run/react-router/pull/14162))
334
331
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))
336
333
337
334
- Properly escape interpolated param values in `generatePath()` ([#13530](https://github.com/remix-run/react-router/pull/13530))
338
335
@@ -381,7 +378,6 @@
381
378
- Remove dependency on `@types/node` in TypeScript declaration files ([#14059](https://github.com/remix-run/react-router/pull/14059))
382
379
383
380
- 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
-
385
381
- 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
386
382
- 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
387
383
- ⚠️ 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 @@
415
411
- \[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))
416
412
417
413
- \[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
-
419
414
- The API has been renamed to `unstable_generateMiddlewareResponse` for clarity
420
415
- 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
421
416
- The `query` version of the API now has a signature of `(query: (r: Request) => Promise<StaticHandlerContext | Response>) => Promise<Response>`
@@ -1061,7 +1056,6 @@
1061
1056
```
1062
1057
1063
1058
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:
- Remove `future.v7_normalizeFormMethod` future flag ([#11697](https://github.com/remix-run/react-router/pull/11697))
1250
1244
1251
1245
- 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
-
1253
1246
- `createCookie`
1254
1247
- `createCookieSessionStorage`
1255
1248
- `createMemorySessionStorage`
@@ -1258,7 +1251,6 @@ _No changes_
1258
1251
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)
1259
1252
1260
1253
Since platform-specific packages no longer need to implement this API, the following low-level APIs have been removed:
1261
-
1262
1254
- `createCookieFactory`
1263
1255
- `createSessionStorageFactory`
1264
1256
- `createCookieSessionStorageFactory`
@@ -1414,7 +1406,6 @@ _No changes_
1414
1406
```
1415
1407
1416
1408
This initial implementation targets type inference for:
1417
-
1418
1409
- `Params` : Path parameters from your routing config in `routes.ts` including file-based routing
1419
1410
- `LoaderData` : Loader data from `loader` and/or `clientLoader` within your route module
1420
1411
- `ActionData` : Action data from `action` and/or `clientAction` within your route module
@@ -1429,7 +1420,6 @@ _No changes_
1429
1420
```
1430
1421
1431
1422
Check out our docs for more:
1432
-
1433
1423
- [_Explanations > Type Safety_](https://reactrouter.com/dev/guides/explanation/type-safety)
1434
1424
- [_How-To > Setting up type safety_](https://reactrouter.com/dev/guides/how-to/setting-up-type-safety)
0 commit comments