Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove leftover unstable_ prefix from Blocker/BlockerFunction types #11187

Merged
merged 1 commit into from
Jan 12, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
8 changes: 8 additions & 0 deletions .changeset/green-drinks-cough.md
Original file line number Diff line number Diff line change
@@ -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
Original file line number Diff line number Diff line change
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
Original file line number Diff line number Diff line change
@@ -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
Original file line number Diff line number Diff line change
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
Original file line number Diff line number Diff line change
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
Original file line number Diff line number Diff line change
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