diff --git a/.changeset/pre.json b/.changeset/pre.json index aff95e8197..ba05997eb5 100644 --- a/.changeset/pre.json +++ b/.changeset/pre.json @@ -8,5 +8,13 @@ "react-router-native": "6.15.0", "@remix-run/router": "1.8.0" }, - "changesets": [] + "changesets": [ + "aborted-query-error-message", + "encode-uri-ssr", + "error-response-type", + "export-should-revalidate-args", + "remix-v2-prep", + "route-lazy-race", + "should-revalidate-action-result-type" + ] } diff --git a/packages/react-router-dom-v5-compat/CHANGELOG.md b/packages/react-router-dom-v5-compat/CHANGELOG.md index eba24ac731..e3b70959f9 100644 --- a/packages/react-router-dom-v5-compat/CHANGELOG.md +++ b/packages/react-router-dom-v5-compat/CHANGELOG.md @@ -1,5 +1,15 @@ # `react-router-dom-v5-compat` +## 6.15.1-pre.0 + +### Patch Changes + +- Move the `@private` class export `ErrorResponse` to an `UNSAFE_ErrorResponseImpl` export since it is an implementation detail and there should be no construction of `ErrorResponse` instances in userland. This frees us up to export a `type ErrorResponse` which correlates to an instance of the class via `InstanceType`. Userland code should only ever be using `ErrorResponse` as a type and should be type-narrowing via `isRouteErrorResponse`. ([#10811](/~https://github.com/remix-run/react-router/pull/10811)) +- Export `ShouldRevalidateFunctionArgs` interface ([#10797](/~https://github.com/remix-run/react-router/pull/10797)) +- Updated dependencies: + - `react-router-dom@6.15.1-pre.0` + - `react-router@6.15.1-pre.0` + ## 6.15.0 ### Minor Changes diff --git a/packages/react-router-dom-v5-compat/package.json b/packages/react-router-dom-v5-compat/package.json index 1397a380c1..90d4352c6b 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.15.0", + "version": "6.15.1-pre.0", "description": "Migration path to React Router v6 from v4/5", "keywords": [ "react", @@ -24,7 +24,7 @@ "types": "./dist/index.d.ts", "dependencies": { "history": "^5.3.0", - "react-router": "6.15.0" + "react-router": "6.15.1-pre.0" }, "peerDependencies": { "react": ">=16.8", diff --git a/packages/react-router-dom/CHANGELOG.md b/packages/react-router-dom/CHANGELOG.md index 1537c618b3..084ecb06ac 100644 --- a/packages/react-router-dom/CHANGELOG.md +++ b/packages/react-router-dom/CHANGELOG.md @@ -1,5 +1,16 @@ # `react-router-dom` +## 6.15.1-pre.0 + +### Patch Changes + +- Proeprly encode rendered URIs in server rendering to avoid hydration errors ([#10769](/~https://github.com/remix-run/react-router/pull/10769)) +- Move the `@private` class export `ErrorResponse` to an `UNSAFE_ErrorResponseImpl` export since it is an implementation detail and there should be no construction of `ErrorResponse` instances in userland. This frees us up to export a `type ErrorResponse` which correlates to an instance of the class via `InstanceType`. Userland code should only ever be using `ErrorResponse` as a type and should be type-narrowing via `isRouteErrorResponse`. ([#10811](/~https://github.com/remix-run/react-router/pull/10811)) +- Export `ShouldRevalidateFunctionArgs` interface ([#10797](/~https://github.com/remix-run/react-router/pull/10797)) +- Updated dependencies: + - `@remix-run/router@1.9.0-pre.0` + - `react-router@6.15.1-pre.0` + ## 6.15.0 ### Minor Changes diff --git a/packages/react-router-dom/package.json b/packages/react-router-dom/package.json index 473658b04b..a562548c81 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.15.0", + "version": "6.15.1-pre.0", "description": "Declarative routing for React web applications", "keywords": [ "react", @@ -23,8 +23,8 @@ "module": "./dist/index.js", "types": "./dist/index.d.ts", "dependencies": { - "@remix-run/router": "1.8.0", - "react-router": "6.15.0" + "@remix-run/router": "1.9.0-pre.0", + "react-router": "6.15.1-pre.0" }, "devDependencies": { "react": "^18.2.0", diff --git a/packages/react-router-native/CHANGELOG.md b/packages/react-router-native/CHANGELOG.md index 128fd1120b..198219f299 100644 --- a/packages/react-router-native/CHANGELOG.md +++ b/packages/react-router-native/CHANGELOG.md @@ -1,5 +1,14 @@ # `react-router-native` +## 6.15.1-pre.0 + +### Patch Changes + +- Move the `@private` class export `ErrorResponse` to an `UNSAFE_ErrorResponseImpl` export since it is an implementation detail and there should be no construction of `ErrorResponse` instances in userland. This frees us up to export a `type ErrorResponse` which correlates to an instance of the class via `InstanceType`. Userland code should only ever be using `ErrorResponse` as a type and should be type-narrowing via `isRouteErrorResponse`. ([#10811](/~https://github.com/remix-run/react-router/pull/10811)) +- Export `ShouldRevalidateFunctionArgs` interface ([#10797](/~https://github.com/remix-run/react-router/pull/10797)) +- Updated dependencies: + - `react-router@6.15.1-pre.0` + ## 6.15.0 ### Minor Changes diff --git a/packages/react-router-native/package.json b/packages/react-router-native/package.json index b15e9312fa..bb8befa394 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.15.0", + "version": "6.15.1-pre.0", "description": "Declarative routing for React Native applications", "keywords": [ "react", @@ -22,7 +22,7 @@ "types": "./dist/index.d.ts", "dependencies": { "@ungap/url-search-params": "^0.2.2", - "react-router": "6.15.0" + "react-router": "6.15.1-pre.0" }, "devDependencies": { "react": "^18.2.0", diff --git a/packages/react-router/CHANGELOG.md b/packages/react-router/CHANGELOG.md index 10de026d7a..dc49708344 100644 --- a/packages/react-router/CHANGELOG.md +++ b/packages/react-router/CHANGELOG.md @@ -1,5 +1,14 @@ # `react-router` +## 6.15.1-pre.0 + +### Patch Changes + +- Move the `@private` class export `ErrorResponse` to an `UNSAFE_ErrorResponseImpl` export since it is an implementation detail and there should be no construction of `ErrorResponse` instances in userland. This frees us up to export a `type ErrorResponse` which correlates to an instance of the class via `InstanceType`. Userland code should only ever be using `ErrorResponse` as a type and should be type-narrowing via `isRouteErrorResponse`. ([#10811](/~https://github.com/remix-run/react-router/pull/10811)) +- Export `ShouldRevalidateFunctionArgs` interface ([#10797](/~https://github.com/remix-run/react-router/pull/10797)) +- Updated dependencies: + - `@remix-run/router@1.9.0-pre.0` + ## 6.15.0 ### Minor Changes diff --git a/packages/react-router/package.json b/packages/react-router/package.json index 2664433a53..585847549b 100644 --- a/packages/react-router/package.json +++ b/packages/react-router/package.json @@ -1,6 +1,6 @@ { "name": "react-router", - "version": "6.15.0", + "version": "6.15.1-pre.0", "description": "Declarative routing for React", "keywords": [ "react", @@ -23,7 +23,7 @@ "module": "./dist/index.js", "types": "./dist/index.d.ts", "dependencies": { - "@remix-run/router": "1.8.0" + "@remix-run/router": "1.9.0-pre.0" }, "devDependencies": { "react": "^18.2.0" diff --git a/packages/router/CHANGELOG.md b/packages/router/CHANGELOG.md index 211c4d3b7a..6bbd4c3ec6 100644 --- a/packages/router/CHANGELOG.md +++ b/packages/router/CHANGELOG.md @@ -1,5 +1,19 @@ # `@remix-run/router` +## 1.9.0-pre.0 + +### Minor Changes + +- Removed internal API only required for the Remix v1 back-compat layer and no longer needed in Remix v2. (`_isFetchActionRedirect`, `_hasFetcherDoneAnything`). ([#10715](/~https://github.com/remix-run/react-router/pull/10715)) + +### Patch Changes + +- Add method/url to error message on aborted query/queryRoute calls ([#10793](/~https://github.com/remix-run/react-router/pull/10793)) +- Move the `@private` class export `ErrorResponse` to an `UNSAFE_ErrorResponseImpl` export since it is an implementation detail and there should be no construction of `ErrorResponse` instances in userland. This frees us up to export a `type ErrorResponse` which correlates to an instance of the class via `InstanceType`. Userland code should only ever be using `ErrorResponse` as a type and should be type-narrowing via `isRouteErrorResponse`. ([#10811](/~https://github.com/remix-run/react-router/pull/10811)) +- Export `ShouldRevalidateFunctionArgs` interface ([#10797](/~https://github.com/remix-run/react-router/pull/10797)) +- Fix a race-condition with loader/action-thrown errors on route.lazy routes ([#10778](/~https://github.com/remix-run/react-router/pull/10778)) +- Fix type for `actionResult` on the arguments object passed to `shouldRevalidate` ([#10779](/~https://github.com/remix-run/react-router/pull/10779)) + ## 1.8.0 ### Minor Changes diff --git a/packages/router/package.json b/packages/router/package.json index 423f2c415c..d96105854a 100644 --- a/packages/router/package.json +++ b/packages/router/package.json @@ -1,6 +1,6 @@ { "name": "@remix-run/router", - "version": "1.8.0", + "version": "1.9.0-pre.0", "description": "Nested/Data-driven/Framework-agnostic Routing", "keywords": [ "remix",