Skip to content

Commit

Permalink
chore: Update version for release (pre) (#11026)
Browse files Browse the repository at this point in the history
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
  • Loading branch information
github-actions[bot] and github-actions[bot] committed Nov 14, 2023
1 parent 3de6975 commit 7b1bd10
Show file tree
Hide file tree
Showing 11 changed files with 98 additions and 11 deletions.
13 changes: 12 additions & 1 deletion .changeset/pre.json
Expand Up @@ -8,5 +8,16 @@
"react-router-native": "6.18.0",
"@remix-run/router": "1.11.0"
},
"changesets": []
"changesets": [
"changing-fetcher-key",
"fix-action-data",
"fix-relative-path",
"fix-resolve-path",
"flush-sync-router",
"flush-sync",
"form-action-index",
"itchy-items-hang",
"stabilize-use-blocker",
"update-useprompt-args"
]
}
8 changes: 8 additions & 0 deletions packages/react-router-dom-v5-compat/CHANGELOG.md
@@ -1,5 +1,13 @@
# `react-router-dom-v5-compat`

## 6.19.0-pre.0

### Patch Changes

- Updated dependencies:
- `react-router-dom@6.19.0-pre.0`
- `react-router@6.19.0-pre.0`

## 6.18.0

### Patch Changes
Expand Down
4 changes: 2 additions & 2 deletions packages/react-router-dom-v5-compat/package.json
@@ -1,6 +1,6 @@
{
"name": "react-router-dom-v5-compat",
"version": "6.18.0",
"version": "6.19.0-pre.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.18.0"
"react-router": "6.19.0-pre.0"
},
"peerDependencies": {
"react": ">=16.8",
Expand Down
16 changes: 16 additions & 0 deletions packages/react-router-dom/CHANGELOG.md
@@ -1,5 +1,21 @@
# `react-router-dom`

## 6.19.0-pre.0

### Minor Changes

- Add `unstable_flushSync` option to `useNavigate`/`useSumbit`/`fetcher.load`/`fetcher.submit` to opt-out of `React.startTransition` and into `ReactDOM.flushSync` for state updates ([#11005](https://github.com/remix-run/react-router/pull/11005))
- Allow `unstable_usePrompt` to accept a `BlockerFunction` in addition to a `boolean` ([#10991](https://github.com/remix-run/react-router/pull/10991))

### Patch Changes

- Fix issue where a changing fetcher `key` in a `useFetcher` that remains mounted wasn't getting picked up ([#11009](https://github.com/remix-run/react-router/pull/11009))
- Fix `useFormAction` which was incorrectly inheriting the `?index` query param from child route `action` submissions ([#11025](https://github.com/remix-run/react-router/pull/11025))
- Fix `NavLink` `active` logic when `to` location has a trailing slash ([#10734](https://github.com/remix-run/react-router/pull/10734))
- Updated dependencies:
- `react-router@6.19.0-pre.0`
- `@remix-run/router@1.12.0-pre.0`

## 6.18.0

### Minor Changes
Expand Down
6 changes: 3 additions & 3 deletions packages/react-router-dom/package.json
@@ -1,6 +1,6 @@
{
"name": "react-router-dom",
"version": "6.18.0",
"version": "6.19.0-pre.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.11.0",
"react-router": "6.18.0"
"@remix-run/router": "1.12.0-pre.0",
"react-router": "6.19.0-pre.0"
},
"devDependencies": {
"react": "^18.2.0",
Expand Down
7 changes: 7 additions & 0 deletions packages/react-router-native/CHANGELOG.md
@@ -1,5 +1,12 @@
# `react-router-native`

## 6.19.0-pre.0

### Patch Changes

- Updated dependencies:
- `react-router@6.19.0-pre.0`

## 6.18.0

### Patch Changes
Expand Down
4 changes: 2 additions & 2 deletions packages/react-router-native/package.json
@@ -1,6 +1,6 @@
{
"name": "react-router-native",
"version": "6.18.0",
"version": "6.19.0-pre.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.18.0"
"react-router": "6.19.0-pre.0"
},
"devDependencies": {
"react": "^18.2.0",
Expand Down
17 changes: 17 additions & 0 deletions packages/react-router/CHANGELOG.md
@@ -1,5 +1,22 @@
# `react-router`

## 6.19.0-pre.0

### Minor Changes

- Add `unstable_flushSync` option to `useNavigate`/`useSumbit`/`fetcher.load`/`fetcher.submit` to opt-out of `React.startTransition` and into `ReactDOM.flushSync` for state updates ([#11005](https://github.com/remix-run/react-router/pull/11005))
- Remove the `unstable_` prefix from the [`useBlocker`](https://reactrouter.com/en/main/hooks/use-blocker) hook as it's been in use for enough time that we are confident in the API. We do not plan to remove the prefix from `unstable_usePrompt` due to differences in how browsers handle `window.confirm` that prevent React Router from guaranteeing consistent/correct behavior. ([#10991](https://github.com/remix-run/react-router/pull/10991))

### Patch Changes

- Fix `useActionData` so it returns proper contextual action data and not _any_ action data in the tree ([#11023](https://github.com/remix-run/react-router/pull/11023))
- Fix bug in `useResolvedPath` that would cause `useResolvedPath(".")` in a splat route to lose the splat portion of the URL path. ([#10983](https://github.com/remix-run/react-router/pull/10983))

- ⚠️ This fixes a quite long-standing bug specifically for `"."` paths inside a splat route which incorrectly dropped the splat portion of the URL. If you are relative routing via `"."` inside a splat route in your application you should double check that your logic is not relying on this buggy behavior and update accordingly.

- Updated dependencies:
- `@remix-run/router@1.12.0-pre.0`

## 6.18.0

### Patch Changes
Expand Down
4 changes: 2 additions & 2 deletions packages/react-router/package.json
@@ -1,6 +1,6 @@
{
"name": "react-router",
"version": "6.18.0",
"version": "6.19.0-pre.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.11.0"
"@remix-run/router": "1.12.0-pre.0"
},
"devDependencies": {
"react": "^18.2.0"
Expand Down
28 changes: 28 additions & 0 deletions packages/router/CHANGELOG.md
@@ -1,5 +1,33 @@
# `@remix-run/router`

## 1.12.0-pre.0

### Minor Changes

- Add `unstable_flushSync` option to `router.navigate` and `router.fetch` to tell the React Router layer to opt-out of `React.startTransition` and into `ReactDOM.flushSync` for state updates ([#11005](https://github.com/remix-run/react-router/pull/11005))

### Patch Changes

- Fix `relative="path"` bug where relative path calculations started from the full location pathname, instead of from the current contextual route pathname. ([#11006](https://github.com/remix-run/react-router/pull/11006))

```jsx
<Route path="/a">
<Route path="/b" element={<Component />}>
<Route path="/c" />
</Route>
</Route>;

function Component() {
return (
<>
{/* This is now correctly relative to /a/b, not /a/b/c */}
<Link to=".." relative="path" />
<Outlet />
</>
);
}
```

## 1.11.0

### Minor Changes
Expand Down
2 changes: 1 addition & 1 deletion packages/router/package.json
@@ -1,6 +1,6 @@
{
"name": "@remix-run/router",
"version": "1.11.0",
"version": "1.12.0-pre.0",
"description": "Nested/Data-driven/Framework-agnostic Routing",
"keywords": [
"remix",
Expand Down

0 comments on commit 7b1bd10

Please sign in to comment.