From fa3d6fbd484a0d8c8b5234c48dc71e612fc9ae81 Mon Sep 17 00:00:00 2001 From: Matt Brophy Date: Tue, 16 Jan 2024 18:23:03 -0500 Subject: [PATCH] Remove leftover unstable_ prefixes from blocker types (#8530) --- .changeset/rich-clouds-fix.md | 5 +++++ packages/remix-react/index.tsx | 4 ++-- packages/remix-react/package.json | 4 ++-- packages/remix-testing/package.json | 2 +- yarn.lock | 18 +++++++++--------- 5 files changed, 19 insertions(+), 14 deletions(-) create mode 100644 .changeset/rich-clouds-fix.md diff --git a/.changeset/rich-clouds-fix.md b/.changeset/rich-clouds-fix.md new file mode 100644 index 00000000000..cea586a8898 --- /dev/null +++ b/.changeset/rich-clouds-fix.md @@ -0,0 +1,5 @@ +--- +"@remix-run/react": patch +--- + +Remove leftover `unstable_` prefix from `Blocker`/`BlockerFunction` types diff --git a/packages/remix-react/index.tsx b/packages/remix-react/index.tsx index ad42a903d75..be42a6478a1 100644 --- a/packages/remix-react/index.tsx +++ b/packages/remix-react/index.tsx @@ -14,8 +14,8 @@ export type { ShouldRevalidateFunctionArgs, SubmitFunction, SubmitOptions, - unstable_Blocker, - unstable_BlockerFunction, + Blocker, + BlockerFunction, } from "react-router-dom"; export { createPath, diff --git a/packages/remix-react/package.json b/packages/remix-react/package.json index e179a706893..f0661f77359 100644 --- a/packages/remix-react/package.json +++ b/packages/remix-react/package.json @@ -18,8 +18,8 @@ "dependencies": { "@remix-run/router": "1.14.2", "@remix-run/server-runtime": "2.5.0", - "react-router": "6.21.2", - "react-router-dom": "6.21.2" + "react-router": "6.21.3-pre.0", + "react-router-dom": "6.21.3-pre.0" }, "devDependencies": { "@testing-library/jest-dom": "^5.17.0", diff --git a/packages/remix-testing/package.json b/packages/remix-testing/package.json index ee313e653fe..498f19ab98c 100644 --- a/packages/remix-testing/package.json +++ b/packages/remix-testing/package.json @@ -19,7 +19,7 @@ "@remix-run/node": "2.5.0", "@remix-run/react": "2.5.0", "@remix-run/router": "1.14.2", - "react-router-dom": "6.21.2" + "react-router-dom": "6.21.3-pre.0" }, "devDependencies": { "@types/node": "^18.17.1", diff --git a/yarn.lock b/yarn.lock index b59224b0d08..d43c8276fd7 100644 --- a/yarn.lock +++ b/yarn.lock @@ -11002,18 +11002,18 @@ react-refresh@^0.14.0: resolved "https://registry.npmjs.org/react-refresh/-/react-refresh-0.14.0.tgz" integrity sha512-wViHqhAd8OHeLS/IRMJjTSDHF3U9eWi62F/MledQGPdJGDhodXJ9PBLNGr6WWL7qlH12Mt3TyTpbS+hGXMjCzQ== -react-router-dom@6.21.2: - version "6.21.2" - resolved "https://registry.npmjs.org/react-router-dom/-/react-router-dom-6.21.2.tgz#5fba851731a194fa32c31990c4829c5e247f650a" - integrity sha512-tE13UukgUOh2/sqYr6jPzZTzmzc70aGRP4pAjG2if0IP3aUT+sBtAKUJh0qMh0zylJHGLmzS+XWVaON4UklHeg== +react-router-dom@6.21.3-pre.0: + version "6.21.3-pre.0" + resolved "https://registry.npmjs.org/react-router-dom/-/react-router-dom-6.21.3-pre.0.tgz#fa6589e7b18c702efbf435165b2ebcfd2cb58fa2" + integrity sha512-XaljWDT/AWQiiaMAgrBClAmCB0kPO1BHz29yFFFjKeyGhLltTu5qs8Jlgv94myIpT2Q066vdbHvHwwzX6KEiuA== dependencies: "@remix-run/router" "1.14.2" - react-router "6.21.2" + react-router "6.21.3-pre.0" -react-router@6.21.2: - version "6.21.2" - resolved "https://registry.npmjs.org/react-router/-/react-router-6.21.2.tgz#8820906c609ae7e4e8f926cc8eb5ce161428b956" - integrity sha512-jJcgiwDsnaHIeC+IN7atO0XiSRCrOsQAHHbChtJxmgqG2IaYQXSnhqGb5vk2CU/wBQA12Zt+TkbuJjIn65gzbA== +react-router@6.21.3-pre.0: + version "6.21.3-pre.0" + resolved "https://registry.npmjs.org/react-router/-/react-router-6.21.3-pre.0.tgz#cf3f6dd39467ad03c25dd90afea0bb6fcf888c38" + integrity sha512-aTpwQRZ/GolL0pA4fd+ESVK2AwtFut/UdsjPgdcqwEdR/IwR9Pa9Tdiox2dhwE3Z/9rWoqIdvnpglUxFnGFkcA== dependencies: "@remix-run/router" "1.14.2"