Skip to content

Commit

Permalink
fix: update dependencies and correct zero width extraLines (fixes #29)
Browse files Browse the repository at this point in the history
  • Loading branch information
Aeolun committed Oct 17, 2023
1 parent 8b5c579 commit c4b317a
Show file tree
Hide file tree
Showing 7 changed files with 3,710 additions and 3,143 deletions.
2 changes: 2 additions & 0 deletions examples/src/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -181,6 +181,8 @@ class Example extends Component<{}, ExampleState> {
<ReactDiff
highlightLines={this.state.highlightLine}
onLineNumberClick={this.onLineNumberClick}
showLines={['R30']}
extraLinesSurroundingDiff={2}
oldValue={this.state.compareMethod === DiffMethod.JSON ? oldJson : oldJs}
compareMethod={this.state.compareMethod}
splitView={this.state.splitView}
Expand Down
74 changes: 37 additions & 37 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -35,60 +35,60 @@
"prettier": "prettier --write ."
},
"dependencies": {
"@emotion/css": "^11.10.5",
"classnames": "^2.3.1",
"@emotion/css": "^11.11.2",
"classnames": "^2.3.2",
"diff": "^5.1.0",
"memoize-one": "^6.0.0",
"prop-types": "^15.8.1"
},
"devDependencies": {
"@babel/core": "^7.18.6",
"@babel/preset-env": "^7.18.6",
"@babel/preset-react": "^7.18.6",
"@babel/preset-typescript": "^7.18.6",
"@babel/core": "^7.23.2",
"@babel/preset-env": "^7.23.2",
"@babel/preset-react": "^7.22.15",
"@babel/preset-typescript": "^7.23.2",
"@semantic-release/changelog": "6.0.1",
"@semantic-release/git": "10.0.1",
"@testing-library/react": "^13.4.0",
"@types/diff": "^5.0.2",
"@types/expect": "^1.20.3",
"@types/diff": "^5.0.6",
"@types/expect": "^1.20.4",
"@types/memoize-one": "^4.1.1",
"@types/mocha": "^5.2.5",
"@types/node": "^12.0.12",
"@types/mocha": "^5.2.7",
"@types/node": "^12.20.55",
"@types/prop-types": "15.7.5",
"@types/react": "^16.4.14",
"@types/react-dom": "^16.0.8",
"@types/webpack": "^4.4.13",
"@typescript-eslint/eslint-plugin": "^5.30.5",
"@typescript-eslint/parser": "^5.30.5",
"css-loader": "^6.7.1",
"eslint": "^8.19.0",
"@types/react": "^16.14.49",
"@types/react-dom": "^16.9.20",
"@types/webpack": "^4.41.34",
"@typescript-eslint/eslint-plugin": "^5.62.0",
"@typescript-eslint/parser": "^5.62.0",
"css-loader": "^6.8.1",
"eslint": "^8.51.0",
"eslint-config-airbnb": "^19.0.4",
"eslint-plugin-import": "^2.26.0",
"eslint-plugin-jsx-a11y": "^6.6.0",
"eslint-plugin-react": "^7.30.1",
"eslint-plugin-import": "^2.28.1",
"eslint-plugin-jsx-a11y": "^6.7.1",
"eslint-plugin-react": "^7.33.2",
"eslint-plugin-react-hooks": "^4.6.0",
"expect": "^28.1.1",
"expect": "^28.1.3",
"file-loader": "^6.2.0",
"gh-pages": "^4.0.0",
"html-webpack-plugin": "^5.5.0",
"jest": "^28.1.2",
"jest-environment-jsdom": "^28.1.2",
"mini-css-extract-plugin": "^2.6.1",
"mocha": "^10.0.0",
"prettier": "^2.7.1",
"html-webpack-plugin": "^5.5.3",
"jest": "^28.1.3",
"jest-environment-jsdom": "^28.1.3",
"mini-css-extract-plugin": "^2.7.6",
"mocha": "^10.2.0",
"prettier": "^2.8.8",
"raw-loader": "^4.0.2",
"react": "^18.0.0",
"react-dom": "^18.0.0",
"sass": "^1.53.0",
"sass-loader": "^13.0.2",
"semantic-release": "^19.0.3",
"react": "^18.2.0",
"react-dom": "^18.2.0",
"sass": "^1.69.3",
"sass-loader": "^13.3.2",
"semantic-release": "^19.0.5",
"spy": "^1.0.0",
"ts-loader": "^9.3.1",
"ts-node": "^10.8.2",
"typescript": "^4.7.4",
"webpack": "^5.73.0",
"ts-loader": "^9.5.0",
"ts-node": "^10.9.1",
"typescript": "^5.2.2",
"webpack": "^5.89.0",
"webpack-cli": "^4.10.0",
"webpack-dev-server": "^4.9.3"
"webpack-dev-server": "^4.15.1"
},
"peerDependencies": {
"react": "^15.3.0 || ^16.0.0 || ^17.0.0 || ^18.0.0",
Expand Down
Loading

0 comments on commit c4b317a

Please sign in to comment.