Skip to content

Commit

Permalink
feat: upgrade react to v18
Browse files Browse the repository at this point in the history
  • Loading branch information
kyoyadmoon committed Dec 16, 2023
1 parent 9fefd36 commit f6366f4
Show file tree
Hide file tree
Showing 7 changed files with 381 additions and 357 deletions.
2 changes: 1 addition & 1 deletion configs/jestSetup.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/* eslint-disable import/no-extraneous-dependencies */
import Enzyme from 'enzyme';
import Adapter from '@wojtekmaj/enzyme-adapter-react-17';
import Adapter from '@cfaester/enzyme-adapter-react-18';
import '@testing-library/jest-dom';

Enzyme.configure({ adapter: new Adapter() });
14 changes: 7 additions & 7 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -35,14 +35,14 @@
"@babel/plugin-proposal-class-properties": "^7.4.4",
"@babel/plugin-transform-runtime": "^7.4.4",
"@babel/preset-env": "^7.4.4",
"@babel/preset-react": "^7.0.0",
"@babel/preset-react": "^7.23.3",
"@babel/runtime": "^7.4.4",
"@babel/runtime-corejs3": "^7.4.4",
"@testing-library/jest-dom": "^5.16.4",
"@testing-library/react": "^12.1.5",
"@testing-library/react": "^13.4.0",
"@testing-library/react-hooks": "^7.0.2",
"@testing-library/user-event": "^13.5.0",
"@wojtekmaj/enzyme-adapter-react-17": "^0.8.0",
"@cfaester/enzyme-adapter-react-18": "^0.7.1",
"autoprefixer": "^9.6.1",
"babel-core": "7.0.0-bridge.0",
"babel-eslint": "^10.0.1",
Expand All @@ -54,7 +54,7 @@
"core-js": "^3.1.1",
"coveralls": "^3.0.0",
"css-loader": "^6.8.1",
"enzyme": "^3.7.0",
"enzyme": "^3.11.0",
"eslint": "7.8",
"eslint-config-airbnb": "18.2",
"eslint-config-ichef": "8.0",
Expand All @@ -72,9 +72,9 @@
"mini-css-extract-plugin": "^2.7.6",
"postcss-loader": "^7.3.3",
"prop-types": "^15.6.2",
"react": "^17.0.2",
"react-dom": "^17.0.2",
"react-test-renderer": "^17.0.2",
"react": "^18.2.0",
"react-dom": "^18.2.0",
"react-test-renderer": "^18.2.0",
"sass": "^1.69.5",
"sass-loader": "^13.3.2",
"style-loader": "^3.3.3",
Expand Down
10 changes: 5 additions & 5 deletions packages/core/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,8 @@
"peerDependencies": {
"@babel/runtime-corejs3": "^7.4.4",
"prop-types": "^15.5.8",
"react": "^17.0.2",
"react-dom": "^17.0.2"
"react": "^18.2.0",
"react-dom": "^18.2.0"
},
"dependencies": {
"classnames": "^2.2.5",
Expand All @@ -48,11 +48,11 @@
"devDependencies": {
"@babel/cli": "^7.4.4",
"@testing-library/jest-dom": "^5.16.4",
"@testing-library/react": "^12.1.5",
"@testing-library/react": "^13.4.0",
"@testing-library/react-hooks": "^7.0.2",
"@testing-library/user-event": "^13.5.0",
"enzyme": "^3.7.0",
"react-is": "^17.0.2",
"enzyme": "^3.11.0",
"react-is": "^18.2.0",
"webpack": "^5.89.0",
"webpack-merge": "^4.1.2"
}
Expand Down
8 changes: 4 additions & 4 deletions packages/form/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
"peerDependencies": {
"@babel/runtime-corejs3": "^7.4.4",
"prop-types": "^15.5.8",
"react": "^17.0.2"
"react": "^18.2.0"
},
"dependencies": {
"@ichef/gypcrete": "^6.1.0",
Expand All @@ -45,11 +45,11 @@
"devDependencies": {
"@babel/cli": "^7.4.4",
"@testing-library/jest-dom": "^5.16.4",
"@testing-library/react": "^12.1.5",
"@testing-library/react": "^13.4.0",
"@testing-library/react-hooks": "^7.0.2",
"@testing-library/user-event": "^13.5.0",
"enzyme": "^3.7.0",
"react-dom": "^17.0.2",
"enzyme": "^3.11.0",
"react-dom": "^18.2.0",
"webpack": "^5.89.0"
}
}
10 changes: 5 additions & 5 deletions packages/imageeditor/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,22 +32,22 @@
"peerDependencies": {
"@babel/runtime-corejs3": "^7.4.4",
"prop-types": "^15.5.8",
"react": "^17.0.2"
"react": "^18.2.0"
},
"dependencies": {
"@ichef/gypcrete": "^6.1.0",
"classnames": "^2.2.5",
"react-avatar-editor": "^11.0.2",
"react-avatar-editor": "^13.0.1",
"warning": "^4.0.3"
},
"devDependencies": {
"@babel/cli": "^7.4.4",
"@testing-library/jest-dom": "^5.16.4",
"@testing-library/react": "^12.1.5",
"@testing-library/react": "^13.4.0",
"@testing-library/react-hooks": "^7.0.2",
"@testing-library/user-event": "^13.5.0",
"enzyme": "^3.7.0",
"react-dom": "^17.0.2",
"enzyme": "^3.11.0",
"react-dom": "^18.2.0",
"webpack": "^5.89.0"
}
}
4 changes: 2 additions & 2 deletions packages/storybook/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,8 @@
"autoprefixer": "^7.2.5",
"mini-css-extract-plugin": "^2.7.6",
"prop-types": "^15.6.2",
"react": "^17.0.2",
"react-dom": "^17.0.2",
"react": "^18.2.0",
"react-dom": "^18.2.0",
"terser-webpack-plugin": "^5.3.9"
}
}
Loading

0 comments on commit f6366f4

Please sign in to comment.