diff --git a/.changeset/pre.json b/.changeset/pre.json
index aef07b832c..16ee436390 100644
--- a/.changeset/pre.json
+++ b/.changeset/pre.json
@@ -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"
+ ]
}
diff --git a/packages/react-router-dom-v5-compat/CHANGELOG.md b/packages/react-router-dom-v5-compat/CHANGELOG.md
index 7fdbf263c8..50cf4edfe6 100644
--- a/packages/react-router-dom-v5-compat/CHANGELOG.md
+++ b/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
diff --git a/packages/react-router-dom-v5-compat/package.json b/packages/react-router-dom-v5-compat/package.json
index 5e448817f9..43243e4eeb 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.18.0",
+ "version": "6.19.0-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.18.0"
+ "react-router": "6.19.0-pre.0"
},
"peerDependencies": {
"react": ">=16.8",
diff --git a/packages/react-router-dom/CHANGELOG.md b/packages/react-router-dom/CHANGELOG.md
index 491807a9c8..768923af2b 100644
--- a/packages/react-router-dom/CHANGELOG.md
+++ b/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
diff --git a/packages/react-router-dom/package.json b/packages/react-router-dom/package.json
index 880a8f277e..361d0ff09f 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.18.0",
+ "version": "6.19.0-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.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",
diff --git a/packages/react-router-native/CHANGELOG.md b/packages/react-router-native/CHANGELOG.md
index 81cd800011..95c0394019 100644
--- a/packages/react-router-native/CHANGELOG.md
+++ b/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
diff --git a/packages/react-router-native/package.json b/packages/react-router-native/package.json
index fc75114d39..1a2d08288c 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.18.0",
+ "version": "6.19.0-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.18.0"
+ "react-router": "6.19.0-pre.0"
},
"devDependencies": {
"react": "^18.2.0",
diff --git a/packages/react-router/CHANGELOG.md b/packages/react-router/CHANGELOG.md
index 961693d0ab..37316e35fb 100644
--- a/packages/react-router/CHANGELOG.md
+++ b/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
diff --git a/packages/react-router/package.json b/packages/react-router/package.json
index 9852257372..d3db56d688 100644
--- a/packages/react-router/package.json
+++ b/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",
@@ -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"
diff --git a/packages/router/CHANGELOG.md b/packages/router/CHANGELOG.md
index 7b6080244a..73dc1b9a8a 100644
--- a/packages/router/CHANGELOG.md
+++ b/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
+
+ }>
+
+
+ ;
+
+ function Component() {
+ return (
+ <>
+ {/* This is now correctly relative to /a/b, not /a/b/c */}
+
+
+ >
+ );
+ }
+ ```
+
## 1.11.0
### Minor Changes
diff --git a/packages/router/package.json b/packages/router/package.json
index a216385a11..f1ee032d66 100644
--- a/packages/router/package.json
+++ b/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",