Skip to content

Commit

Permalink
chore: Update version for release (#10935)
Browse files Browse the repository at this point in the history
  • Loading branch information
github-actions[bot] authored Oct 16, 2023
1 parent c1d0e50 commit edd9ad4
Show file tree
Hide file tree
Showing 19 changed files with 25 additions and 262 deletions.
5 changes: 0 additions & 5 deletions .changeset/404-root-with-path.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/error-response-type.md

This file was deleted.

6 changes: 0 additions & 6 deletions .changeset/lift-start-view-transition.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/mighty-moles-compete.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/partial-future-config.md

This file was deleted.

20 changes: 0 additions & 20 deletions .changeset/pre.json

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/soft-forks-cough.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/start-view-transition-router.md

This file was deleted.

44 changes: 0 additions & 44 deletions .changeset/start-view-transition.md

This file was deleted.

22 changes: 3 additions & 19 deletions packages/react-router-dom-v5-compat/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,28 +1,12 @@
# `react-router-dom-v5-compat`

## 6.17.0-pre.2
## 6.17.0

### Patch Changes

- Updated dependencies:
- `[email protected]`
- `[email protected]`

## 6.17.0-pre.1

### Patch Changes

- Updated dependencies:
- `[email protected]`
- `[email protected]`

## 6.17.0-pre.0

### Patch Changes

- Updated dependencies:
- `[email protected]`
- `[email protected]`
- `[email protected]`
- `[email protected]`

## 6.16.0

Expand Down
4 changes: 2 additions & 2 deletions packages/react-router-dom-v5-compat/package.json
Original file line number Diff line number Diff line change
@@ -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",
Expand All @@ -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",
Expand Down
25 changes: 6 additions & 19 deletions packages/react-router-dom/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -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:
- `[email protected]`

## 6.17.0-pre.1

### Patch Changes

- Updated dependencies:
- `[email protected]`

## 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 `<Link unstable_viewTransition>` 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.

Expand Down Expand Up @@ -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/[email protected]-pre.0`
- `[email protected]-pre.0`
- `@remix-run/[email protected]`
- `[email protected]`

## 6.16.0

Expand Down
6 changes: 3 additions & 3 deletions packages/react-router-dom/package.json
Original file line number Diff line number Diff line change
@@ -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",
Expand All @@ -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",
Expand Down
18 changes: 2 additions & 16 deletions packages/react-router-native/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,25 +1,11 @@
# `react-router-native`

## 6.17.0-pre.2
## 6.17.0

### Patch Changes

- Updated dependencies:
- `[email protected]`

## 6.17.0-pre.1

### Patch Changes

- Updated dependencies:
- `[email protected]`

## 6.17.0-pre.0

### Patch Changes

- Updated dependencies:
- `[email protected]`
- `[email protected]`

## 6.16.0

Expand Down
4 changes: 2 additions & 2 deletions packages/react-router-native/package.json
Original file line number Diff line number Diff line change
@@ -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",
Expand All @@ -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",
Expand Down
59 changes: 2 additions & 57 deletions packages/react-router/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -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 `<Link unstable_viewTransition>` 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 (
<Link to={to} unstable_viewTransition>
<img
src={src}
alt={alt}
style={{
viewTransitionName: isTransitioning ? "image-expand" : "",
}}
/>
</Link>
);
}
```

You can also use the `<NavLink unstable_viewTransition>` shorthand which will manage the hook usage for you and automatically add a `transitioning` class to the `<a>` during the transition:

```css
a.transitioning img {
view-transition-name: "image-expand";
}
```

```jsx
<NavLink to={to} unstable_viewTransition>
<img src={src} alt={alt} />
</NavLink>
```

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<FutureConfig>` so that not all flags must be specified ([#10900](https://github.com/remix-run/react-router/pull/10900))
- Updated dependencies:
- `@remix-run/[email protected]-pre.0`
- `@remix-run/[email protected]`

## 6.16.0

Expand Down
4 changes: 2 additions & 2 deletions packages/react-router/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "react-router",
"version": "6.17.0-pre.2",
"version": "6.17.0",
"description": "Declarative routing for React",
"keywords": [
"react",
Expand All @@ -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"
Expand Down
Loading

0 comments on commit edd9ad4

Please sign in to comment.