diff --git a/.changeset/green-drinks-cough.md b/.changeset/green-drinks-cough.md new file mode 100644 index 0000000000..dce510ca44 --- /dev/null +++ b/.changeset/green-drinks-cough.md @@ -0,0 +1,8 @@ +--- +"react-router-dom-v5-compat": patch +"react-router-native": patch +"react-router-dom": patch +"react-router": patch +--- + +Remove leftover `unstable_` prefix from `Blocker`/`BlockerFunction` types diff --git a/packages/react-router-dom-v5-compat/index.ts b/packages/react-router-dom-v5-compat/index.ts index 6de7e9dee8..ae07125d13 100644 --- a/packages/react-router-dom-v5-compat/index.ts +++ b/packages/react-router-dom-v5-compat/index.ts @@ -107,8 +107,8 @@ export type { To, URLSearchParamsInit, UIMatch, - unstable_Blocker, - unstable_BlockerFunction, + Blocker, + BlockerFunction, } from "./react-router-dom"; export { AbortedDeferredError, diff --git a/packages/react-router-dom/__tests__/use-blocker-test.tsx b/packages/react-router-dom/__tests__/use-blocker-test.tsx index b95db73dc7..e0e6da73c4 100644 --- a/packages/react-router-dom/__tests__/use-blocker-test.tsx +++ b/packages/react-router-dom/__tests__/use-blocker-test.tsx @@ -1,7 +1,7 @@ import * as React from "react"; import * as ReactDOM from "react-dom/client"; import { act } from "react-dom/test-utils"; -import type { unstable_Blocker as Blocker, RouteObject } from "../index"; +import type { Blocker, RouteObject } from "../index"; import { createMemoryRouter, json, diff --git a/packages/react-router-dom/index.tsx b/packages/react-router-dom/index.tsx index 52f4b778f5..9a6ab99f72 100644 --- a/packages/react-router-dom/index.tsx +++ b/packages/react-router-dom/index.tsx @@ -98,8 +98,8 @@ export type { ActionFunction, ActionFunctionArgs, AwaitProps, - unstable_Blocker, - unstable_BlockerFunction, + Blocker, + BlockerFunction, DataRouteMatch, DataRouteObject, ErrorResponse, diff --git a/packages/react-router-native/index.tsx b/packages/react-router-native/index.tsx index eb27d56bfe..f88de93b3d 100644 --- a/packages/react-router-native/index.tsx +++ b/packages/react-router-native/index.tsx @@ -23,8 +23,8 @@ export type { ActionFunction, ActionFunctionArgs, AwaitProps, - unstable_Blocker, - unstable_BlockerFunction, + Blocker, + BlockerFunction, DataRouteMatch, DataRouteObject, ErrorResponse, diff --git a/packages/react-router/index.ts b/packages/react-router/index.ts index 980b799a59..fb7b787797 100644 --- a/packages/react-router/index.ts +++ b/packages/react-router/index.ts @@ -171,8 +171,8 @@ export type { ShouldRevalidateFunctionArgs, To, UIMatch, - Blocker as unstable_Blocker, - BlockerFunction as unstable_BlockerFunction, + Blocker, + BlockerFunction, }; export { AbortedDeferredError,