diff --git a/.changeset/pre.json b/.changeset/pre.json index 827d3cfab5..30cdbf3140 100644 --- a/.changeset/pre.json +++ b/.changeset/pre.json @@ -15,6 +15,7 @@ "happy-grapes-fry", "itchy-shoes-sort", "nasty-queens-leave", + "shy-chicken-talk", "silly-walls-sit", "soft-maps-fix", "stabilize-flush-sync", diff --git a/.changeset/shy-chicken-talk.md b/.changeset/shy-chicken-talk.md index 02c57f19a1..9ebf7ed55b 100644 --- a/.changeset/shy-chicken-talk.md +++ b/.changeset/shy-chicken-talk.md @@ -2,4 +2,4 @@ "@remix-run/router": patch --- -Expose errors thown from `patchRoutesOnNavigation` directly to `useRouteError` instead of wrapping them in a 400 `ErrorResponse` instance +Expose errors thrown from `patchRoutesOnNavigation` directly to `useRouteError` instead of wrapping them in a 400 `ErrorResponse` instance diff --git a/CHANGELOG.md b/CHANGELOG.md index fcf8ea9b39..26e82d4155 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -253,6 +253,7 @@ This release stabilizes a handful of "unstable" APIs in preparation for the pend - This was originally implemented as an optimization but it proved to be a bit too limiting - If you need this optimization you can implement your own cache inside `patchRoutesOnNavigation` - Fix types for `RouteObject` within `PatchRoutesOnNavigationFunction`'s `patch` method so it doesn't expect agnostic route objects passed to `patch` ([#11967](https://github.com/remix-run/react-router/pull/11967)) +- Expose errors thrown from `patchRoutesOnNavigation` directly to `useRouteError` instead of wrapping them in a 400 `ErrorResponse` instance ([#12111](https://github.com/remix-run/react-router/pull/12111)) **Full Changelog**: [`v6.26.2...v6.27.0`](https://github.com/remix-run/react-router/compare/react-router@6.26.2...react-router@6.27.0) diff --git a/packages/react-router-dom-v5-compat/CHANGELOG.md b/packages/react-router-dom-v5-compat/CHANGELOG.md index 2d911930e3..a9301b6136 100644 --- a/packages/react-router-dom-v5-compat/CHANGELOG.md +++ b/packages/react-router-dom-v5-compat/CHANGELOG.md @@ -1,5 +1,14 @@ # `react-router-dom-v5-compat` +## 6.27.0-pre.1 + +### Patch Changes + +- Updated dependencies: + - `@remix-run/router@1.20.0-pre.1` + - `react-router@6.27.0-pre.1` + - `react-router-dom@6.27.0-pre.1` + ## 6.27.0-pre.0 ### Patch Changes diff --git a/packages/react-router-dom-v5-compat/package.json b/packages/react-router-dom-v5-compat/package.json index b51334155d..a8101c9675 100644 --- a/packages/react-router-dom-v5-compat/package.json +++ b/packages/react-router-dom-v5-compat/package.json @@ -1,6 +1,6 @@ { "name": "react-router-dom-v5-compat", - "version": "6.27.0-pre.0", + "version": "6.27.0-pre.1", "description": "Migration path to React Router v6 from v4/5", "keywords": [ "react", diff --git a/packages/react-router-dom/CHANGELOG.md b/packages/react-router-dom/CHANGELOG.md index 34f124c09b..d4e6ccc13a 100644 --- a/packages/react-router-dom/CHANGELOG.md +++ b/packages/react-router-dom/CHANGELOG.md @@ -1,5 +1,13 @@ # `react-router-dom` +## 6.27.0-pre.1 + +### Patch Changes + +- Updated dependencies: + - `@remix-run/router@1.20.0-pre.1` + - `react-router@6.27.0-pre.1` + ## 6.27.0-pre.0 ### Minor Changes diff --git a/packages/react-router-dom/package.json b/packages/react-router-dom/package.json index d9e7b9dcaa..62530a89fc 100644 --- a/packages/react-router-dom/package.json +++ b/packages/react-router-dom/package.json @@ -1,6 +1,6 @@ { "name": "react-router-dom", - "version": "6.27.0-pre.0", + "version": "6.27.0-pre.1", "description": "Declarative routing for React web applications", "keywords": [ "react", diff --git a/packages/react-router-native/CHANGELOG.md b/packages/react-router-native/CHANGELOG.md index 7762889bea..06a0977e98 100644 --- a/packages/react-router-native/CHANGELOG.md +++ b/packages/react-router-native/CHANGELOG.md @@ -1,5 +1,12 @@ # `react-router-native` +## 6.27.0-pre.1 + +### Patch Changes + +- Updated dependencies: + - `react-router@6.27.0-pre.1` + ## 6.27.0-pre.0 ### Patch Changes diff --git a/packages/react-router-native/package.json b/packages/react-router-native/package.json index d5bdc399b3..3b0bd4e926 100644 --- a/packages/react-router-native/package.json +++ b/packages/react-router-native/package.json @@ -1,6 +1,6 @@ { "name": "react-router-native", - "version": "6.27.0-pre.0", + "version": "6.27.0-pre.1", "description": "Declarative routing for React Native applications", "keywords": [ "react", diff --git a/packages/react-router/CHANGELOG.md b/packages/react-router/CHANGELOG.md index 3987444d4b..164d15135f 100644 --- a/packages/react-router/CHANGELOG.md +++ b/packages/react-router/CHANGELOG.md @@ -1,5 +1,12 @@ # `react-router` +## 6.27.0-pre.1 + +### Patch Changes + +- Updated dependencies: + - `@remix-run/router@1.20.0-pre.1` + ## 6.27.0-pre.0 ### Minor Changes diff --git a/packages/react-router/package.json b/packages/react-router/package.json index dc8e1c099c..87c0c51275 100644 --- a/packages/react-router/package.json +++ b/packages/react-router/package.json @@ -1,6 +1,6 @@ { "name": "react-router", - "version": "6.27.0-pre.0", + "version": "6.27.0-pre.1", "description": "Declarative routing for React", "keywords": [ "react", diff --git a/packages/router/CHANGELOG.md b/packages/router/CHANGELOG.md index 32701964e7..c6958dcc72 100644 --- a/packages/router/CHANGELOG.md +++ b/packages/router/CHANGELOG.md @@ -1,5 +1,11 @@ # `@remix-run/router` +## 1.20.0-pre.1 + +### Patch Changes + +- Expose errors thrown from `patchRoutesOnNavigation` directly to `useRouteError` instead of wrapping them in a 400 `ErrorResponse` instance ([#12111](https://github.com/remix-run/react-router/pull/12111)) + ## 1.20.0-pre.0 ### Minor Changes diff --git a/packages/router/package.json b/packages/router/package.json index 1b5d1f0d6e..b74695879e 100644 --- a/packages/router/package.json +++ b/packages/router/package.json @@ -1,6 +1,6 @@ { "name": "@remix-run/router", - "version": "1.20.0-pre.0", + "version": "1.20.0-pre.1", "description": "Nested/Data-driven/Framework-agnostic Routing", "keywords": [ "remix",