Skip to content

chore: Update version for release #10414

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Apr 28, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 0 additions & 5 deletions .changeset/console-log-loader-error.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/descendant-routes-data-errors.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/disallow-return-undefined-type.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/fetcher-404.md

This file was deleted.

13 changes: 0 additions & 13 deletions .changeset/fetcher-basename.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/fix-component-rerenders-router.md

This file was deleted.

6 changes: 0 additions & 6 deletions .changeset/fix-component-rerenders.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/fix-fetcher-revalidation.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/invalid-link-to.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/navigate-in-effect.md

This file was deleted.

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

This file was deleted.

6 changes: 0 additions & 6 deletions .changeset/remove-use-sync-external-store.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/revalidate-error-boundary.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/revalidating-fetcher-controller.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/silent-stingrays-boil.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/soft-moons-sneeze.md

This file was deleted.

6 changes: 0 additions & 6 deletions .changeset/stable-navigate-submit.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.11.0-pre.2
## 6.11.0

### Patch Changes

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

## 6.11.0-pre.1

### Patch Changes

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

## 6.11.0-pre.0

### Patch Changes

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

## 6.10.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.11.0-pre.2",
"version": "6.11.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.11.0-pre.2"
"react-router": "6.11.0"
},
"peerDependencies": {
"react": ">=16.8",
Expand Down
34 changes: 7 additions & 27 deletions packages/react-router-dom/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,42 +1,22 @@
# `react-router-dom`

## 6.11.0-pre.2

### Patch Changes

- Updated dependencies:
- `[email protected]`

## 6.11.0-pre.1

### Patch Changes

- Add static prop to `StaticRouterProvider`'s internal `Router` component ([#10401](https://github.com/remix-run/react-router/pull/10401))
- Updated dependencies:
- `[email protected]`

## 6.11.0-pre.0
## 6.11.0

### Minor Changes

- - Enable relative routing in the `@remix-run/router` when providing a source route ID from which the path is relative to: ([#10336](https://github.com/remix-run/react-router/pull/10336))

- Example: `router.navigate("../path", { fromRouteId: "some-route" })`.
- This also applies to `router.fetch` which already receives a source route ID

- Introduce a new `@remix-run/router` `future.v7_prependBasename` flag to enable `basename` prefixing to all paths coming into `router.navigate` and `router.fetch`.
- Previously the `basename` was prepended in the React Router layer, but now that relative routing is being handled by the router we need prepend the `basename` _after_ resolving any relative paths
- This also enables `basename` support in `useFetcher` as well
- Enable `basename` support in `useFetcher` ([#10336](https://github.com/remix-run/react-router/pull/10336))
- If you were previously working around this issue by manually prepending the `basename` then you will need to remove the manually prepended `basename` from your `fetcher` calls (`fetcher.load('/basename/route') -> fetcher.load('/route')`)

### Patch Changes

- Fix inadvertent re-renders when using `Component` instead of `element` on a route definition ([#10287](https://github.com/remix-run/react-router/pull/10287))
- Fail gracefully on `<Link to="//">` and other invalid URL values ([#10367](https://github.com/remix-run/react-router/pull/10367))
- Switched from `useSyncExternalStore` to `useState` for internal `@remix-run/router` router state syncing in `<RouterProvider>`. We found some [subtle bugs](https://codesandbox.io/s/use-sync-external-store-loop-9g7b81) where router state updates got propagated _before_ other normal `useState` updates, which could lead to footguns in `useEffect` calls. ([#10377](https://github.com/remix-run/react-router/pull/10377))
- Switched from `useSyncExternalStore` to `useState` for internal `@remix-run/router` router state syncing in `<RouterProvider>`. We found some [subtle bugs](https://codesandbox.io/s/use-sync-external-store-loop-9g7b81) where router state updates got propagated _before_ other normal `useState` updates, which could lead to footguns in `useEffect` calls. ([#10377](https://github.com/remix-run/react-router/pull/10377), [#10409](https://github.com/remix-run/react-router/pull/10409))
- Add static prop to `StaticRouterProvider`'s internal `Router` component ([#10401](https://github.com/remix-run/react-router/pull/10401))
- When using a `RouterProvider`, `useNavigate`/`useSubmit`/`fetcher.submit` are now stable across location changes, since we can handle relative routing via the `@remix-run/router` instance and get rid of our dependence on `useLocation()`. When using `BrowserRouter`, these hooks remain unstable across location changes because they still rely on `useLocation()`. ([#10336](https://github.com/remix-run/react-router/pull/10336))
- Updated dependencies:
- `[email protected]-pre.0`
- `@remix-run/[email protected]-pre.0`
- `[email protected]`
- `@remix-run/[email protected]`

## 6.10.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.11.0-pre.2",
"version": "6.11.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.6.0-pre.0",
"react-router": "6.11.0-pre.2"
"@remix-run/router": "1.6.0",
"react-router": "6.11.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.11.0-pre.2
## 6.11.0

### Patch Changes

- Updated dependencies:
- `[email protected]`

## 6.11.0-pre.1

### Patch Changes

- Updated dependencies:
- `[email protected]`

## 6.11.0-pre.0

### Patch Changes

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

## 6.10.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.11.0-pre.2",
"version": "6.11.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.1.4",
"react-router": "6.11.0-pre.2"
"react-router": "6.11.0"
},
"devDependencies": {
"react": "^18.2.0",
Expand Down
15 changes: 4 additions & 11 deletions packages/react-router/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,26 +1,19 @@
# `react-router`

## 6.11.0-pre.2

### Patch Changes

- Avoid uneccesary unsubscribe/resubscribes on router state changes ([#10409](https://github.com/remix-run/react-router/pull/10409))

## 6.11.0-pre.1

## 6.11.0-pre.0
## 6.11.0

### Patch Changes

- Log loader/action errors to the console in dev for easier stack trace evaluation ([#10286](https://github.com/remix-run/react-router/pull/10286))
- Fix bug preventing rendering of descendant `<Routes>` when `RouterProvider` errors existed ([#10374](https://github.com/remix-run/react-router/pull/10374))
- Fix inadvertent re-renders when using `Component` instead of `element` on a route definition ([#10287](https://github.com/remix-run/react-router/pull/10287))
- Fix detection of `useNavigate` in the render cycle by setting the `activeRef` in a layout effect, allowing the `navigate` function to be passed to child components and called in a `useEffect` there. ([#10394](https://github.com/remix-run/react-router/pull/10394))
- Switched from `useSyncExternalStore` to `useState` for internal `@remix-run/router` router state syncing in `<RouterProvider>`. We found some [subtle bugs](https://codesandbox.io/s/use-sync-external-store-loop-9g7b81) where router state updates got propagated _before_ other normal `useState` updates, which could lead to footguns in `useEffect` calls. ([#10377](https://github.com/remix-run/react-router/pull/10377))
- Switched from `useSyncExternalStore` to `useState` for internal `@remix-run/router` router state syncing in `<RouterProvider>`. We found some [subtle bugs](https://codesandbox.io/s/use-sync-external-store-loop-9g7b81) where router state updates got propagated _before_ other normal `useState` updates, which could lead to footguns in `useEffect` calls. ([#10377](https://github.com/remix-run/react-router/pull/10377), [#10409](https://github.com/remix-run/react-router/pull/10409))
- Allow `useRevalidator()` to resolve a loader-driven error boundary scenario ([#10369](https://github.com/remix-run/react-router/pull/10369))
- Avoid unnecessary unsubscribe/resubscribes on router state changes ([#10409](https://github.com/remix-run/react-router/pull/10409))
- When using a `RouterProvider`, `useNavigate`/`useSubmit`/`fetcher.submit` are now stable across location changes, since we can handle relative routing via the `@remix-run/router` instance and get rid of our dependence on `useLocation()`. When using `BrowserRouter`, these hooks remain unstable across location changes because they still rely on `useLocation()`. ([#10336](https://github.com/remix-run/react-router/pull/10336))
- Updated dependencies:
- `@remix-run/[email protected]-pre.0`
- `@remix-run/[email protected]`

## 6.10.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.11.0-pre.2",
"version": "6.11.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.6.0-pre.0"
"@remix-run/router": "1.6.0"
},
"devDependencies": {
"react": "^18.2.0"
Expand Down
15 changes: 8 additions & 7 deletions packages/router/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,17 +1,18 @@
# `@remix-run/router`

## 1.6.0-pre.0
## 1.6.0

### Minor Changes

- - Enable relative routing in the `@remix-run/router` when providing a source route ID from which the path is relative to: ([#10336](https://github.com/remix-run/react-router/pull/10336))
- Enable relative routing in the `@remix-run/router` when providing a source route ID from which the path is relative to: ([#10336](https://github.com/remix-run/react-router/pull/10336))

- Example: `router.navigate("../path", { fromRouteId: "some-route" })`.
- This also applies to `router.fetch` which already receives a source route ID
- Example: `router.navigate("../path", { fromRouteId: "some-route" })`.
- This also applies to `router.fetch` which already receives a source route ID

- Introduce a new `@remix-run/router` `future.v7_prependBasename` flag to enable `basename` prefixing to all paths coming into `router.navigate` and `router.fetch`.
- Previously the `basename` was prepended in the React Router layer, but now that relative routing is being handled by the router we need prepend the `basename` _after_ resolving any relative paths
- This also enables `basename` support in `useFetcher` as well
- Introduce a new `@remix-run/router` `future.v7_prependBasename` flag to enable `basename` prefixing to all paths coming into `router.navigate` and `router.fetch`.

- Previously the `basename` was prepended in the React Router layer, but now that relative routing is being handled by the router we need prepend the `basename` _after_ resolving any relative paths
- This also enables `basename` support in `useFetcher` as well

### Patch Changes

Expand Down
2 changes: 1 addition & 1 deletion packages/router/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@remix-run/router",
"version": "1.6.0-pre.0",
"version": "1.6.0",
"description": "Nested/Data-driven/Framework-agnostic Routing",
"keywords": [
"remix",
Expand Down