diff --git a/.changeset/short-bobcats-switch.md b/.changeset/short-bobcats-switch.md new file mode 100644 index 00000000000..b5d82a9cf09 --- /dev/null +++ b/.changeset/short-bobcats-switch.md @@ -0,0 +1,5 @@ +--- +"@remix-run/server-runtime": minor +--- + +remove `react` & `react-dom` from `peerDependencies` diff --git a/packages/remix-server-runtime/package.json b/packages/remix-server-runtime/package.json index 8d410f17841..4e454facbb0 100644 --- a/packages/remix-server-runtime/package.json +++ b/packages/remix-server-runtime/package.json @@ -18,6 +18,7 @@ "dependencies": { "@remix-run/router": "1.0.4", "@types/cookie": "^0.4.0", + "@types/react": "^18.0.15", "@web3-storage/multipart-parser": "^1.0.0", "cookie": "^0.4.1", "set-cookie-parser": "^2.4.8", @@ -25,13 +26,7 @@ }, "devDependencies": { "@remix-run/web-file": "^3.0.2", - "@types/set-cookie-parser": "^2.4.1", - "react": "^18.2.0", - "react-dom": "^18.2.0" - }, - "peerDependencies": { - "react": ">=16.8", - "react-dom": ">=16.8" + "@types/set-cookie-parser": "^2.4.1" }, "engines": { "node": ">=14" diff --git a/packages/remix-server-runtime/routeModules.ts b/packages/remix-server-runtime/routeModules.ts index 4aae88a154b..bda18e4012e 100644 --- a/packages/remix-server-runtime/routeModules.ts +++ b/packages/remix-server-runtime/routeModules.ts @@ -1,5 +1,5 @@ +import type { Location, Params } from "@remix-run/router"; import type { ComponentType } from "react"; -import type { Location, Params } from "react-router-dom"; import type { AppLoadContext, AppData } from "./data"; import type { LinkDescriptor } from "./links"; @@ -37,7 +37,7 @@ export interface ActionFunction { /** * A React component that is rendered when the server throws a Response. */ -export type CatchBoundaryComponent = ComponentType<{}>; +export type CatchBoundaryComponent = ComponentType; /** * A React component that is rendered when there is an error on a route.