Skip to content

Commit

Permalink
refactor(remix-server-runtime): remove react & react-dom from `pe…
Browse files Browse the repository at this point in the history
…erDependencies`
  • Loading branch information
MichaelDeBoey committed Dec 8, 2022
1 parent dc88239 commit c450d9d
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 9 deletions.
5 changes: 5 additions & 0 deletions .changeset/short-bobcats-switch.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@remix-run/server-runtime": minor
---

remove `react` & `react-dom` from `peerDependencies`
9 changes: 2 additions & 7 deletions packages/remix-server-runtime/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,20 +18,15 @@
"dependencies": {
"@remix-run/router": "1.0.5",
"@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",
"source-map": "^0.7.3"
},
"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"
Expand Down
4 changes: 2 additions & 2 deletions packages/remix-server-runtime/routeModules.ts
Original file line number Diff line number Diff line change
@@ -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";
Expand Down Expand Up @@ -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.
Expand Down

0 comments on commit c450d9d

Please sign in to comment.