Skip to content

Commit

Permalink
Update dependencies and allow React 17 and 18 peer dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
bjoluc committed May 8, 2022
1 parent 19afe00 commit 803ce84
Show file tree
Hide file tree
Showing 4 changed files with 1,772 additions and 2,608 deletions.
32 changes: 17 additions & 15 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,31 +25,33 @@
"dependencies": {},
"peerDependencies": {
"prop-types": "^15.5.4",
"react": "^16.8.3",
"react-dom": "^16.8.3"
"react": ">=16.8.3",
"react-dom": ">=16.8.3"
},
"devDependencies": {
"@rollup/plugin-typescript": "^3.0.0",
"@rollup/plugin-typescript": "^8.3.2",
"@testing-library/jest-dom": "^5.1.1",
"@testing-library/react": "^9.4.0",
"@types/jest": "^25.1.3",
"@types/react": "^16.3.13",
"@types/react-dom": "^16.0.5",
"@testing-library/react": "^13.2.0",
"@types/jest": "^27.5.0",
"@types/react": "^18.0.9",
"@types/react-dom": "^18.0.3",
"cross-env": "^7.0.0",
"gh-pages": "^2.2.0",
"jest": "^25.1.0",
"react": "^16.8.3",
"react-dom": "^16.8.3",
"rollup": "^1.31.1",
"jest": "^28.1.0",
"jest-environment-jsdom": "^28.1.0",
"react": "^18.1.0",
"react-dom": "^18.1.0",
"rollup": "^2.72.1",
"rollup-plugin-peer-deps-external": "^2.2.0",
"ts-jest": "^25.2.1",
"tslib": "^1.11.0",
"typescript": "^3.8.2"
"ts-jest": "^28.0.2",
"tslib": "^2.4.0",
"typescript": "^4.6.4"
},
"files": [
"dist"
],
"jest": {
"preset": "ts-jest"
"preset": "ts-jest",
"testEnvironment": "jsdom"
}
}
2 changes: 1 addition & 1 deletion src/__tests__/ModalProvider.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ afterEach(() => {
});

describe("custom container prop", () => {
const RootComponent: React.SFC = ({ children }) => (
const RootComponent: React.FC<{children: React.ReactNode}> = ({ children }) => (
<div data-testid="custom-root">{children}</div>
);

Expand Down
4 changes: 4 additions & 0 deletions src/__tests__/ModalRoot.tsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
/**
* @jest-environment node
*/

import * as React from 'react';
import { renderToString} from 'react-dom/server';
import { ModalRoot } from '../ModalRoot';
Expand Down
Loading

0 comments on commit 803ce84

Please sign in to comment.