Skip to content

Commit

Permalink
Remove leftover unstable_ prefix from Blocker/BlockerFunction t…
Browse files Browse the repository at this point in the history
…ypes (#11187)
  • Loading branch information
brophdawg11 committed Jan 12, 2024
1 parent 04d653b commit 552662a
Show file tree
Hide file tree
Showing 6 changed files with 17 additions and 9 deletions.
8 changes: 8 additions & 0 deletions .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
4 changes: 2 additions & 2 deletions packages/react-router-dom-v5-compat/index.ts
Expand Up @@ -107,8 +107,8 @@ export type {
To,
URLSearchParamsInit,
UIMatch,
unstable_Blocker,
unstable_BlockerFunction,
Blocker,
BlockerFunction,
} from "./react-router-dom";
export {
AbortedDeferredError,
Expand Down
2 changes: 1 addition & 1 deletion 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,
Expand Down
4 changes: 2 additions & 2 deletions packages/react-router-dom/index.tsx
Expand Up @@ -98,8 +98,8 @@ export type {
ActionFunction,
ActionFunctionArgs,
AwaitProps,
unstable_Blocker,
unstable_BlockerFunction,
Blocker,
BlockerFunction,
DataRouteMatch,
DataRouteObject,
ErrorResponse,
Expand Down
4 changes: 2 additions & 2 deletions packages/react-router-native/index.tsx
Expand Up @@ -23,8 +23,8 @@ export type {
ActionFunction,
ActionFunctionArgs,
AwaitProps,
unstable_Blocker,
unstable_BlockerFunction,
Blocker,
BlockerFunction,
DataRouteMatch,
DataRouteObject,
ErrorResponse,
Expand Down
4 changes: 2 additions & 2 deletions packages/react-router/index.ts
Expand Up @@ -171,8 +171,8 @@ export type {
ShouldRevalidateFunctionArgs,
To,
UIMatch,
Blocker as unstable_Blocker,
BlockerFunction as unstable_BlockerFunction,
Blocker,
BlockerFunction,
};
export {
AbortedDeferredError,
Expand Down

0 comments on commit 552662a

Please sign in to comment.