From edd9ad4957321cfb260cee21ad98aab2becfe250 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Mon, 16 Oct 2023 11:48:36 -0400 Subject: [PATCH] chore: Update version for release (#10935) --- .changeset/404-root-with-path.md | 5 -- .changeset/error-response-type.md | 5 -- .changeset/lift-start-view-transition.md | 6 -- .changeset/mighty-moles-compete.md | 5 -- .changeset/partial-future-config.md | 5 -- .changeset/pre.json | 20 ------- .changeset/soft-forks-cough.md | 5 -- .changeset/start-view-transition-router.md | 5 -- .changeset/start-view-transition.md | 44 -------------- .../react-router-dom-v5-compat/CHANGELOG.md | 22 +------ .../react-router-dom-v5-compat/package.json | 4 +- packages/react-router-dom/CHANGELOG.md | 25 ++------ packages/react-router-dom/package.json | 6 +- packages/react-router-native/CHANGELOG.md | 18 +----- packages/react-router-native/package.json | 4 +- packages/react-router/CHANGELOG.md | 59 +------------------ packages/react-router/package.json | 4 +- packages/router/CHANGELOG.md | 43 +------------- packages/router/package.json | 2 +- 19 files changed, 25 insertions(+), 262 deletions(-) delete mode 100644 .changeset/404-root-with-path.md delete mode 100644 .changeset/error-response-type.md delete mode 100644 .changeset/lift-start-view-transition.md delete mode 100644 .changeset/mighty-moles-compete.md delete mode 100644 .changeset/partial-future-config.md delete mode 100644 .changeset/pre.json delete mode 100644 .changeset/soft-forks-cough.md delete mode 100644 .changeset/start-view-transition-router.md delete mode 100644 .changeset/start-view-transition.md diff --git a/.changeset/404-root-with-path.md b/.changeset/404-root-with-path.md deleted file mode 100644 index 207bb2b5b2..0000000000 --- a/.changeset/404-root-with-path.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@remix-run/router": patch ---- - -Allow 404 detection to leverage root route error boundary if path contains a URL segment diff --git a/.changeset/error-response-type.md b/.changeset/error-response-type.md deleted file mode 100644 index 47f3a99961..0000000000 --- a/.changeset/error-response-type.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@remix-run/router": patch ---- - -Fix `ErrorResponse` type to avoid leaking internal field diff --git a/.changeset/lift-start-view-transition.md b/.changeset/lift-start-view-transition.md deleted file mode 100644 index f469f68be4..0000000000 --- a/.changeset/lift-start-view-transition.md +++ /dev/null @@ -1,6 +0,0 @@ ---- -"react-router-dom": patch -"react-router": patch ---- - -Export a separate `RouterProvider` from `react-router-dom` with `startViewTransition` support diff --git a/.changeset/mighty-moles-compete.md b/.changeset/mighty-moles-compete.md deleted file mode 100644 index 7b87ff129f..0000000000 --- a/.changeset/mighty-moles-compete.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"react-router": patch ---- - -[REMOVE] fix lint issues diff --git a/.changeset/partial-future-config.md b/.changeset/partial-future-config.md deleted file mode 100644 index c9283cbe2c..0000000000 --- a/.changeset/partial-future-config.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"react-router": patch ---- - -Fix `RouterProvider` `future` prop type to be a `Partial` so that not all flags must be specified diff --git a/.changeset/pre.json b/.changeset/pre.json deleted file mode 100644 index a5e565e848..0000000000 --- a/.changeset/pre.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "mode": "exit", - "tag": "pre", - "initialVersions": { - "react-router": "6.16.0", - "react-router-dom": "6.16.0", - "react-router-dom-v5-compat": "6.16.0", - "react-router-native": "6.16.0", - "@remix-run/router": "1.9.0" - }, - "changesets": [ - "404-root-with-path", - "error-response-type", - "lift-start-view-transition", - "mighty-moles-compete", - "partial-future-config", - "soft-forks-cough", - "start-view-transition" - ] -} diff --git a/.changeset/soft-forks-cough.md b/.changeset/soft-forks-cough.md deleted file mode 100644 index 6cd2304adc..0000000000 --- a/.changeset/soft-forks-cough.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"react-router-dom": patch ---- - -Log a warning and fail gracefully in `ScrollRestoration` when `sessionStorage` is unavailable diff --git a/.changeset/start-view-transition-router.md b/.changeset/start-view-transition-router.md deleted file mode 100644 index 31ac64c8ba..0000000000 --- a/.changeset/start-view-transition-router.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@remix-run/router": minor ---- - -Add support for the [View Transitions API](https://developer.mozilla.org/en-US/docs/Web/API/ViewTransition) by allowing users to opt-into view transitions on navigations via the new `unstable_viewTransition` option to `router.navigate` ([#10916](https://github.com/remix-run/react-router/pull/10916)) diff --git a/.changeset/start-view-transition.md b/.changeset/start-view-transition.md deleted file mode 100644 index cd1b1d602b..0000000000 --- a/.changeset/start-view-transition.md +++ /dev/null @@ -1,44 +0,0 @@ ---- -"react-router-dom": minor ---- - -Add support for the [View Transitions API](https://developer.mozilla.org/en-US/docs/Web/API/ViewTransition) via `document.startViewTransition` to enable CSS animated transitions on SPA navigations in your application. - -The simplest approach to enabling a View Transition in your React Router app is via the new `` prop. This will cause the navigation DOM update to be wrapped in `document.startViewTransition` which will enable transitions for the DOM update. Without any additional CSS styles, you'll get a basic cross-fade animation for your page. - -If you need to apply more fine-grained styles for your animations, you can leverage the `unstable_useViewTransitionState` hook which will tell you when a transition is in progress and you can use that to apply classes or styles: - -```jsx -function ImageLink(to, src, alt) { - let isTransitioning = unstable_useViewTransitionState(to); - return ( - - {alt} - - ); -} -``` - -You can also use the `` shorthand which will manage the hook usage for you and automatically add a `transitioning` class to the `` during the transition: - -```css -a.transitioning img { - view-transition-name: "image-expand"; -} -``` - -```jsx - - {alt} - -``` - -For an example usage of View Transitions with React Router, check out [our fork](https://github.com/brophdawg11/react-router-records) of the [Astro Records](https://github.com/Charca/astro-records) demo. - -For more information on using the View Transitions API, please refer to the [Smooth and simple transitions with the View Transitions API](https://developer.chrome.com/docs/web-platform/view-transitions/) guide from the Google Chrome team. diff --git a/packages/react-router-dom-v5-compat/CHANGELOG.md b/packages/react-router-dom-v5-compat/CHANGELOG.md index 71c27d1897..583cc6c043 100644 --- a/packages/react-router-dom-v5-compat/CHANGELOG.md +++ b/packages/react-router-dom-v5-compat/CHANGELOG.md @@ -1,28 +1,12 @@ # `react-router-dom-v5-compat` -## 6.17.0-pre.2 +## 6.17.0 ### Patch Changes - Updated dependencies: - - `react-router-dom@6.17.0-pre.2` - - `react-router@6.17.0-pre.2` - -## 6.17.0-pre.1 - -### Patch Changes - -- Updated dependencies: - - `react-router@6.17.0-pre.1` - - `react-router-dom@6.17.0-pre.1` - -## 6.17.0-pre.0 - -### Patch Changes - -- Updated dependencies: - - `react-router@6.17.0-pre.0` - - `react-router-dom@6.17.0-pre.0` + - `react-router-dom@6.17.0` + - `react-router@6.17.0` ## 6.16.0 diff --git a/packages/react-router-dom-v5-compat/package.json b/packages/react-router-dom-v5-compat/package.json index 07167f2b03..a85918a23e 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.17.0-pre.2", + "version": "6.17.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.17.0-pre.2" + "react-router": "6.17.0" }, "peerDependencies": { "react": ">=16.8", diff --git a/packages/react-router-dom/CHANGELOG.md b/packages/react-router-dom/CHANGELOG.md index 73baf5cdf0..10e164c78d 100644 --- a/packages/react-router-dom/CHANGELOG.md +++ b/packages/react-router-dom/CHANGELOG.md @@ -1,25 +1,10 @@ # `react-router-dom` -## 6.17.0-pre.2 - -### Patch Changes - -- Export a separate `RouterProvider` from `react-router-dom` with `startViewTransition` support ([#10928](https://github.com/remix-run/react-router/pull/10928)) -- Updated dependencies: - - `react-router@6.17.0-pre.2` - -## 6.17.0-pre.1 - -### Patch Changes - -- Updated dependencies: - - `react-router@6.17.0-pre.1` - -## 6.17.0-pre.0 +## 6.17.0 ### Minor Changes -- Add support for the [View Transitions API](https://developer.mozilla.org/en-US/docs/Web/API/ViewTransition) via `document.startViewTransition` to enable CSS animated transitions on SPA navigations in your application. ([#10916](https://github.com/remix-run/react-router/pull/10916)) +- Add experimental support for the [View Transitions API](https://developer.mozilla.org/en-US/docs/Web/API/ViewTransition) via `document.startViewTransition` to enable CSS animated transitions on SPA navigations in your application. ([#10916](https://github.com/remix-run/react-router/pull/10916)) The simplest approach to enabling a View Transition in your React Router app is via the new `` prop. This will cause the navigation DOM update to be wrapped in `document.startViewTransition` which will enable transitions for the DOM update. Without any additional CSS styles, you'll get a basic cross-fade animation for your page. @@ -60,12 +45,14 @@ For more information on using the View Transitions API, please refer to the [Smooth and simple transitions with the View Transitions API](https://developer.chrome.com/docs/web-platform/view-transitions/) guide from the Google Chrome team. + Please note, that because the `ViewTransition` API is a DOM API, we now export a specific `RouterProvider` from `react-router-dom` with this functionality. If you are importing `RouterProvider` from `react-router`, then it will not support view transitions. ([#10928](https://github.com/remix-run/react-router/pull/10928) + ### Patch Changes - Log a warning and fail gracefully in `ScrollRestoration` when `sessionStorage` is unavailable ([#10848](https://github.com/remix-run/react-router/pull/10848)) - Updated dependencies: - - `@remix-run/router@1.10.0-pre.0` - - `react-router@6.17.0-pre.0` + - `@remix-run/router@1.10.0` + - `react-router@6.17.0` ## 6.16.0 diff --git a/packages/react-router-dom/package.json b/packages/react-router-dom/package.json index 72ff0aca35..048eada46c 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.17.0-pre.2", + "version": "6.17.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.10.0-pre.0", - "react-router": "6.17.0-pre.2" + "@remix-run/router": "1.10.0", + "react-router": "6.17.0" }, "devDependencies": { "react": "^18.2.0", diff --git a/packages/react-router-native/CHANGELOG.md b/packages/react-router-native/CHANGELOG.md index 11faa0f92a..de8dc823f0 100644 --- a/packages/react-router-native/CHANGELOG.md +++ b/packages/react-router-native/CHANGELOG.md @@ -1,25 +1,11 @@ # `react-router-native` -## 6.17.0-pre.2 +## 6.17.0 ### Patch Changes - Updated dependencies: - - `react-router@6.17.0-pre.2` - -## 6.17.0-pre.1 - -### Patch Changes - -- Updated dependencies: - - `react-router@6.17.0-pre.1` - -## 6.17.0-pre.0 - -### Patch Changes - -- Updated dependencies: - - `react-router@6.17.0-pre.0` + - `react-router@6.17.0` ## 6.16.0 diff --git a/packages/react-router-native/package.json b/packages/react-router-native/package.json index 3fed674fab..074bcbda5a 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.17.0-pre.2", + "version": "6.17.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.17.0-pre.2" + "react-router": "6.17.0" }, "devDependencies": { "react": "^18.2.0", diff --git a/packages/react-router/CHANGELOG.md b/packages/react-router/CHANGELOG.md index aea2834b52..76092e69ae 100644 --- a/packages/react-router/CHANGELOG.md +++ b/packages/react-router/CHANGELOG.md @@ -1,67 +1,12 @@ # `react-router` -## 6.17.0-pre.2 - -### Patch Changes - -- Export a separate `RouterProvider` from `react-router-dom` with `startViewTransition` support ([#10928](https://github.com/remix-run/react-router/pull/10928)) - -## 6.17.0-pre.1 - -### Patch Changes - -- [REMOVE] fix lint issues ([#10930](https://github.com/remix-run/react-router/pull/10930)) - -## 6.17.0-pre.0 - -### Minor Changes - -- Add support for the [View Transitions API](https://developer.mozilla.org/en-US/docs/Web/API/ViewTransition) via `document.startViewTransition` to enable CSS animated transitions on SPA navigations in your application. ([#10916](https://github.com/remix-run/react-router/pull/10916)) - - The simplest approach to enabling a View Transition in your React Router app is via the new `` prop. This will cause the navigation DOM update to be wrapped in `document.startViewTransition` which will enable transitions for the DOM update. Without any additional CSS styles, you'll get a basic cross-fade animation for your page. - - If you need to apply more fine-grained styles for your animations, you can leverage the `unstable_useViewTransitionState` hook which will tell you when a transition is in progress and you can use that to apply classes or styles: - - ```jsx - function ImageLink(to, src, alt) { - let isTransitioning = unstable_useViewTransitionState(to); - return ( - - {alt} - - ); - } - ``` - - You can also use the `` shorthand which will manage the hook usage for you and automatically add a `transitioning` class to the `` during the transition: - - ```css - a.transitioning img { - view-transition-name: "image-expand"; - } - ``` - - ```jsx - - {alt} - - ``` - - For an example usage of View Transitions with React Router, check out [our fork](https://github.com/brophdawg11/react-router-records) of the [Astro Records](https://github.com/Charca/astro-records) demo. - - For more information on using the View Transitions API, please refer to the [Smooth and simple transitions with the View Transitions API](https://developer.chrome.com/docs/web-platform/view-transitions/) guide from the Google Chrome team. +## 6.17.0 ### Patch Changes - Fix `RouterProvider` `future` prop type to be a `Partial` so that not all flags must be specified ([#10900](https://github.com/remix-run/react-router/pull/10900)) - Updated dependencies: - - `@remix-run/router@1.10.0-pre.0` + - `@remix-run/router@1.10.0` ## 6.16.0 diff --git a/packages/react-router/package.json b/packages/react-router/package.json index 98496bd200..8c8232ff9a 100644 --- a/packages/react-router/package.json +++ b/packages/react-router/package.json @@ -1,6 +1,6 @@ { "name": "react-router", - "version": "6.17.0-pre.2", + "version": "6.17.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.10.0-pre.0" + "@remix-run/router": "1.10.0" }, "devDependencies": { "react": "^18.2.0" diff --git a/packages/router/CHANGELOG.md b/packages/router/CHANGELOG.md index 8ff3ab411a..83be49d8f5 100644 --- a/packages/router/CHANGELOG.md +++ b/packages/router/CHANGELOG.md @@ -1,49 +1,10 @@ # `@remix-run/router` -## 1.10.0-pre.0 +## 1.10.0 ### Minor Changes -- Add support for the [View Transitions API](https://developer.mozilla.org/en-US/docs/Web/API/ViewTransition) via `document.startViewTransition` to enable CSS animated transitions on SPA navigations in your application. ([#10916](https://github.com/remix-run/react-router/pull/10916)) - - The simplest approach to enabling a View Transition in your React Router app is via the new `` prop. This will cause the navigation DOM update to be wrapped in `document.startViewTransition` which will enable transitions for the DOM update. Without any additional CSS styles, you'll get a basic cross-fade animation for your page. - - If you need to apply more fine-grained styles for your animations, you can leverage the `unstable_useViewTransitionState` hook which will tell you when a transition is in progress and you can use that to apply classes or styles: - - ```jsx - function ImageLink(to, src, alt) { - let isTransitioning = unstable_useViewTransitionState(to); - return ( - - {alt} - - ); - } - ``` - - You can also use the `` shorthand which will manage the hook usage for you and automatically add a `transitioning` class to the `` during the transition: - - ```css - a.transitioning img { - view-transition-name: "image-expand"; - } - ``` - - ```jsx - - {alt} - - ``` - - For an example usage of View Transitions with React Router, check out [our fork](https://github.com/brophdawg11/react-router-records) of the [Astro Records](https://github.com/Charca/astro-records) demo. - - For more information on using the View Transitions API, please refer to the [Smooth and simple transitions with the View Transitions API](https://developer.chrome.com/docs/web-platform/view-transitions/) guide from the Google Chrome team. +- Add experimental support for the [View Transitions API](https://developer.mozilla.org/en-US/docs/Web/API/ViewTransition) by allowing users to opt-into view transitions on navigations via the new `unstable_viewTransition` option to `router.navigate` ([#10916](https://github.com/remix-run/react-router/pull/10916)) ### Patch Changes diff --git a/packages/router/package.json b/packages/router/package.json index 6bb5053c00..537db2c8cf 100644 --- a/packages/router/package.json +++ b/packages/router/package.json @@ -1,6 +1,6 @@ { "name": "@remix-run/router", - "version": "1.10.0-pre.0", + "version": "1.10.0", "description": "Nested/Data-driven/Framework-agnostic Routing", "keywords": [ "remix",