Skip to content

Commit

Permalink
Merge pull request #87 from recharts/v4
Browse files Browse the repository at this point in the history
react-smooth v4 "breaking changes"
  • Loading branch information
ckifer committed Jan 29, 2024
2 parents 7a2b67e + f57e926 commit 3ad17a7
Show file tree
Hide file tree
Showing 3 changed files with 45 additions and 63 deletions.
75 changes: 32 additions & 43 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

11 changes: 5 additions & 6 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "react-smooth",
"version": "3.0.0",
"version": "4.0.0",
"description": "react animation library",
"main": "lib/index",
"module": "es6/index",
Expand Down Expand Up @@ -41,13 +41,13 @@
},
"homepage": "https://github.com/recharts/react-smooth#readme",
"peerDependencies": {
"prop-types": "^15.6.0",
"react": "^15.0.0 || ^16.0.0 || ^17.0.0 || ^18.0.0",
"react-dom": "^15.0.0 || ^16.0.0 || ^17.0.0 || ^18.0.0"
"react": "^16.8.0 || ^17.0.0 || ^18.0.0",
"react-dom": "^16.8.0 || ^17.0.0 || ^18.0.0"
},
"dependencies": {
"fast-equals": "^5.0.1",
"react-transition-group": "2.9.0"
"react-transition-group": "^4.4.5",
"prop-types": "^15.8.1"
},
"devDependencies": {
"@babel/cli": "^7.23.0",
Expand Down Expand Up @@ -81,7 +81,6 @@
"json-loader": "^0.5.7",
"pre-commit": "^1.2.2",
"prettier": "^2.8.8",
"prop-types": "^15.8.1",
"react": "^18.2.0",
"react-dom": "^18.2.0",
"webpack": "^5.89.0",
Expand Down
22 changes: 8 additions & 14 deletions webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,14 +12,14 @@ const config = {
},

module: {
rules: [{
use: 'babel-loader',
test: /\.(js|jsx)$/,
exclude: /node_modules/,
include: [
path.resolve(__dirname, 'src'),
],
}],
rules: [
{
use: 'babel-loader',
test: /\.(js|jsx)$/,
exclude: /node_modules/,
include: [path.resolve(__dirname, 'src')],
},
],
},

resolve: {
Expand All @@ -43,12 +43,6 @@ const config = {
commonjs: 'react-transition-group',
amd: 'react-transition-group',
},
'prop-types': {
root: 'PropTypes',
commonjs2: 'prop-types',
commonjs: 'prop-types',
amd: 'prop-types',
},
},

plugins: [
Expand Down

0 comments on commit 3ad17a7

Please sign in to comment.