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

deps: Update to support React 18 #1483

Merged
merged 9 commits into from
May 2, 2022
12 changes: 6 additions & 6 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -66,11 +66,11 @@
"@types/jest": "^24.0.18",
"@types/jsdom": "^12.2.4",
"@types/node-fetch": "1.6.9",
"@types/react-test-renderer": "^16.9.0",
"@types/react-test-renderer": "^18.0.0",
"@types/webpack": "^4.41.17",
"@testing-library/jest-dom": "^5.9.0",
"@testing-library/react": "^10.2.0",
"@testing-library/react-hooks": "^3.2.1",
"@testing-library/react": "^13.1.0",
"@testing-library/react-hooks": "^8.0.0",
"@testing-library/user-event": "^11.0.1",
"chalk": "4.1.0",
"coveralls": "^3.0.6",
Expand All @@ -87,9 +87,9 @@
"marked": "^0.7.0",
"node-fetch": "2.6.1",
"raf": "^3.4.0",
"react": "^16.0.0-0 || ^17.0.0-0",
"react-dom": "^16.0.0-0 || ^17.0.0-0",
"react-test-renderer": "^16.8.6",
"react": "^16.0.0-0 || ^17.0.0-0 || ^18.0.0-0",
"react-dom": "^16.0.0-0 || ^17.0.0-0 || ^18.0.0-0",
"react-test-renderer": "^18.0.0",
"regenerator-runtime": "^0.10.5",
"timezone-mock": "^1.1.0",
"ts-node": "9.1.1"
Expand Down
2 changes: 1 addition & 1 deletion packages/visx-annotation/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
},
"homepage": "https://github.com/airbnb/visx#readme",
"peerDependencies": {
"react": "^16.0.0-0 || ^17.0.0-0"
"react": "^16.0.0-0 || ^17.0.0-0 || ^18.0.0-0"
},
"dependencies": {
"@types/react": "*",
Expand Down
2 changes: 1 addition & 1 deletion packages/visx-axis/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@
"prop-types": "^15.6.0"
},
"peerDependencies": {
"react": "^16.3.0-0 || ^17.0.0-0"
"react": "^16.3.0-0 || ^17.0.0-0 || ^18.0.0-0"
},
"publishConfig": {
"access": "public"
Expand Down
4 changes: 2 additions & 2 deletions packages/visx-bounds/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
"prop-types": "^15.5.10"
},
"peerDependencies": {
"react": "^16.0.0-0 || ^17.0.0-0",
"react-dom": "^16.0.0-0 || ^17.0.0-0"
"react": "^16.0.0-0 || ^17.0.0-0 || ^18.0.0-0",
"react-dom": "^16.0.0-0 || ^17.0.0-0 || ^18.0.0-0"
}
}
2 changes: 1 addition & 1 deletion packages/visx-brush/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
"access": "public"
},
"peerDependencies": {
"react": "^16.0.0-0 || ^17.0.0-0"
"react": "^16.0.0-0 || ^17.0.0-0 || ^18.0.0-0"
},
"dependencies": {
"@visx/drag": "2.6.0",
Expand Down
2 changes: 1 addition & 1 deletion packages/visx-chord/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
},
"homepage": "https://github.com/airbnb/visx#readme",
"peerDependencies": {
"react": "^16.0.0-0 || ^17.0.0-0"
"react": "^16.0.0-0 || ^17.0.0-0 || ^18.0.0-0"
},
"dependencies": {
"@types/d3-chord": "^1.0.9",
Expand Down
2 changes: 1 addition & 1 deletion packages/visx-clip-path/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
"prop-types": "^15.5.10"
},
"peerDependencies": {
"react": "^16.0.0-0 || ^17.0.0-0"
"react": "^16.0.0-0 || ^17.0.0-0 || ^18.0.0-0"
},
"publishConfig": {
"access": "public"
Expand Down
4 changes: 2 additions & 2 deletions packages/visx-demo/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -88,9 +88,9 @@
"nprogress": "^0.2.0",
"prismjs": "^1.19.0",
"raw-loader": "^4.0.0",
"react": "^17.0.0",
"react": "^18.0.0",
"react-docgen-typescript-loader": "3.7.2",
"react-dom": "^17.0.0",
"react-dom": "^18.0.0",
"react-github-button": "^0.1.10",
"react-markdown": "^4.3.1",
"react-spring": "^9.2.0",
Expand Down
7 changes: 4 additions & 3 deletions packages/visx-demo/src/sandboxes/template/index.tsx
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
import React from 'react';
import { render } from 'react-dom';
import { createRoot } from 'react-dom/client';
import ParentSize from '@visx/responsive/lib/components/ParentSize';

import Example from './Example';
import './sandbox-styles.css';

render(
const root = createRoot(document.getElementById('root')!);
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍


root.render(
<ParentSize>{({ width, height }) => <Example width={width} height={height} />}</ParentSize>,
document.getElementById('root'),
);
8 changes: 4 additions & 4 deletions packages/visx-demo/src/sandboxes/template/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,11 @@
"private": true,
"dependencies": {
"@babel/runtime": "^7.8.4",
"@types/react": "^17",
"@types/react-dom": "^17",
"@types/react": "^18",
"@types/react-dom": "^18",
"@visx/responsive": "latest",
"react": "^17",
"react-dom": "^17",
"react": "^18",
"react-dom": "^18",
"react-scripts-ts": "3.1.0",
"typescript": "^3"
},
Expand Down
7 changes: 4 additions & 3 deletions packages/visx-demo/src/sandboxes/visx-annotation/index.tsx
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
import React from 'react';
import { render } from 'react-dom';
import { createRoot } from 'react-dom/client';
import ParentSize from '@visx/responsive/lib/components/ParentSize';

import Example from './Example';
import './sandbox-styles.css';

render(
const root = createRoot(document.getElementById('root')!);

root.render(
<ParentSize>{({ width, height }) => <Example width={width} height={height} />}</ParentSize>,
document.getElementById('root'),
);
8 changes: 4 additions & 4 deletions packages/visx-demo/src/sandboxes/visx-annotation/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,16 +5,16 @@
"private": true,
"dependencies": {
"@babel/runtime": "^7.8.4",
"@types/react": "^17",
"@types/react-dom": "^17",
"@types/react": "^18",
"@types/react-dom": "^18",
"@visx/annotation": "latest",
"@visx/mock-data": "latest",
"@visx/responsive": "latest",
"@visx/scale": "latest",
"@visx/shape": "latest",
"d3-array": "^2.8.0",
"react": "^17",
"react-dom": "^17",
"react": "^18",
"react-dom": "^18",
"react-scripts-ts": "3.1.0",
"typescript": "^3"
},
Expand Down
7 changes: 4 additions & 3 deletions packages/visx-demo/src/sandboxes/visx-area/index.tsx
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
import React from 'react';
import { render } from 'react-dom';
import { createRoot } from 'react-dom/client';
import ParentSize from '@visx/responsive/lib/components/ParentSize';

import Example from './Example';
import './sandbox-styles.css';

render(
const root = createRoot(document.getElementById('root')!);

root.render(
<ParentSize>{({ width, height }) => <Example width={width} height={height} />}</ParentSize>,
document.getElementById('root'),
);
8 changes: 4 additions & 4 deletions packages/visx-demo/src/sandboxes/visx-area/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@
"private": true,
"dependencies": {
"@babel/runtime": "^7.8.4",
"@types/react": "^17",
"@types/react-dom": "^17",
"@types/react": "^18",
"@types/react-dom": "^18",
"@visx/curve": "latest",
"@visx/event": "latest",
"@visx/gradient": "latest",
Expand All @@ -18,8 +18,8 @@
"@visx/tooltip": "latest",
"d3-array": "^2.4.0",
"d3-time-format": "2.2.3",
"react": "^17",
"react-dom": "^17",
"react": "^18",
"react-dom": "^18",
"react-scripts-ts": "3.1.0",
"typescript": "^3"
},
Expand Down
7 changes: 4 additions & 3 deletions packages/visx-demo/src/sandboxes/visx-axis/index.tsx
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
import React from 'react';
import { render } from 'react-dom';
import { createRoot } from 'react-dom/client';
import ParentSize from '@visx/responsive/lib/components/ParentSize';

import Example from './Example';
import './sandbox-styles.css';

render(
const root = createRoot(document.getElementById('root')!);

root.render(
<ParentSize>{({ width, height }) => <Example width={width} height={height} />}</ParentSize>,
document.getElementById('root'),
);
8 changes: 4 additions & 4 deletions packages/visx-demo/src/sandboxes/visx-axis/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@
"dependencies": {
"@babel/runtime": "^7.8.4",
"@types/d3-time-format": "2.1.1",
"@types/react": "^17",
"@types/react-dom": "^17",
"@types/react": "^18",
"@types/react-dom": "^18",
"@visx/axis": "latest",
"@visx/curve": "latest",
"@visx/gradient": "latest",
Expand All @@ -19,8 +19,8 @@
"@visx/shape": "latest",
"@visx/scale": "latest",
"d3-time-format": "^2.2.3",
"react": "^17",
"react-dom": "^17",
"react": "^18",
"react-dom": "^18",
"react-scripts-ts": "3.1.0",
"react-spring": "^9.2.0",
"typescript": "^3"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
import React from 'react';
import { render } from 'react-dom';
import { createRoot } from 'react-dom/client';
import ParentSize from '@visx/responsive/lib/components/ParentSize';

import Example from './Example';
import './sandbox-styles.css';

render(
const root = createRoot(document.getElementById('root')!);

root.render(
<ParentSize>{({ width, height }) => <Example width={width} height={height} />}</ParentSize>,
document.getElementById('root'),
);
Original file line number Diff line number Diff line change
Expand Up @@ -5,17 +5,17 @@
"private": true,
"dependencies": {
"@babel/runtime": "^7.8.4",
"@types/react": "^17",
"@types/react-dom": "^17",
"@types/react": "^18",
"@types/react-dom": "^18",
"@visx/axis": "latest",
"@visx/group": "latest",
"@visx/mock-data": "latest",
"@visx/responsive": "latest",
"@visx/scale": "latest",
"@visx/shape": "latest",
"d3-time-format": "^2.2.3",
"react": "^17",
"react-dom": "^17",
"react": "^18",
"react-dom": "^18",
"react-scripts-ts": "3.1.0",
"typescript": "^3"
},
Expand Down
7 changes: 4 additions & 3 deletions packages/visx-demo/src/sandboxes/visx-bargroup/index.tsx
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
import React from 'react';
import { render } from 'react-dom';
import { createRoot } from 'react-dom/client';
import ParentSize from '@visx/responsive/lib/components/ParentSize';

import Example from './Example';
import './sandbox-styles.css';

render(
const root = createRoot(document.getElementById('root')!);

root.render(
<ParentSize>{({ width, height }) => <Example width={width} height={height} />}</ParentSize>,
document.getElementById('root'),
);
8 changes: 4 additions & 4 deletions packages/visx-demo/src/sandboxes/visx-bargroup/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,17 +5,17 @@
"private": true,
"dependencies": {
"@babel/runtime": "^7.8.4",
"@types/react": "^17",
"@types/react-dom": "^17",
"@types/react": "^18",
"@types/react-dom": "^18",
"@visx/axis": "latest",
"@visx/group": "latest",
"@visx/mock-data": "latest",
"@visx/responsive": "latest",
"@visx/scale": "latest",
"@visx/shape": "latest",
"d3-time-format": "^2.2.3",
"react": "^17",
"react-dom": "^17",
"react": "^18",
"react-dom": "^18",
"react-scripts-ts": "3.1.0",
"typescript": "^3"
},
Expand Down
7 changes: 4 additions & 3 deletions packages/visx-demo/src/sandboxes/visx-bars/index.tsx
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
import React from 'react';
import { render } from 'react-dom';
import { createRoot } from 'react-dom/client';
import ParentSize from '@visx/responsive/lib/components/ParentSize';

import Example from './Example';
import './sandbox-styles.css';

render(
const root = createRoot(document.getElementById('root')!);

root.render(
<ParentSize>{({ width, height }) => <Example width={width} height={height} />}</ParentSize>,
document.getElementById('root'),
);
8 changes: 4 additions & 4 deletions packages/visx-demo/src/sandboxes/visx-bars/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,16 +5,16 @@
"private": true,
"dependencies": {
"@babel/runtime": "^7.8.4",
"@types/react": "^17",
"@types/react-dom": "^17",
"@types/react": "^18",
"@types/react-dom": "^18",
"@visx/gradient": "latest",
"@visx/group": "latest",
"@visx/mock-data": "latest",
"@visx/responsive": "latest",
"@visx/scale": "latest",
"@visx/shape": "latest",
"react": "^17",
"react-dom": "^17",
"react": "^18",
"react-dom": "^18",
"react-scripts-ts": "3.1.0",
"typescript": "^3"
},
Expand Down
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
import React from 'react';
import { render } from 'react-dom';
import { createRoot } from 'react-dom/client';
import ParentSize from '@visx/responsive/lib/components/ParentSize';

import Example from './Example';
import './sandbox-styles.css';

render(
const root = createRoot(document.getElementById('root')!);

root.render(
<ParentSize>{({ width, height }) => <Example width={width} height={height} />}</ParentSize>,
document.getElementById('root'),
);
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@
"private": true,
"dependencies": {
"@babel/runtime": "^7.8.4",
"@types/react": "^17",
"@types/react-dom": "^17",
"@types/react": "^18",
"@types/react-dom": "^18",
"@visx/axis": "latest",
"@visx/grid": "latest",
"@visx/group": "latest",
Expand All @@ -17,8 +17,8 @@
"@visx/shape": "latest",
"@visx/tooltip": "latest",
"d3-time-format": "2.2.3",
"react": "^17",
"react-dom": "^17",
"react": "^18",
"react-dom": "^18",
"react-scripts-ts": "3.1.0",
"typescript": "^3"
},
Expand Down
Loading