react-diff-view
Advanced tools
Comparing version 2.5.0 to 2.6.0
{ | ||
"name": "react-diff-view", | ||
"version": "2.5.0", | ||
"version": "2.6.0", | ||
"description": "A git diff component to consume the git unified diff output.", | ||
@@ -15,2 +15,3 @@ "main": "cjs/index.js", | ||
"scripts": { | ||
"prepare": "husky install", | ||
"test": "jest --config ./jest.config.js", | ||
@@ -22,3 +23,4 @@ "start": "skr dev --src-dir=site", | ||
"prepublishOnly": "npm run build", | ||
"lint": "eslint src site" | ||
"lint": "eslint src site", | ||
"ci": "yarn install --immutable && npm run lint && npm run build && npm run build-pages && npm run test" | ||
}, | ||
@@ -30,12 +32,12 @@ "author": "otakustay", | ||
"diff-match-patch": "^1.0.5", | ||
"shallow-equal": "^1.2.1", | ||
"shallow-equal": "^3.1.0", | ||
"warning": "^4.0.3" | ||
}, | ||
"devDependencies": { | ||
"@ant-design/icons": "^4.8.0", | ||
"@babel/core": "^7.20.2", | ||
"@ant-design/icons": "^5.0.1", | ||
"@babel/core": "^7.20.12", | ||
"@babel/eslint-parser": "^7.19.1", | ||
"@babel/eslint-plugin": "^7.19.1", | ||
"@babel/plugin-proposal-class-properties": "^7.18.6", | ||
"@babel/plugin-proposal-decorators": "^7.20.2", | ||
"@babel/plugin-proposal-decorators": "^7.20.13", | ||
"@babel/plugin-proposal-export-default-from": "^7.18.10", | ||
@@ -47,46 +49,47 @@ "@babel/plugin-proposal-export-namespace-from": "^7.18.9", | ||
"@ecomfe/eslint-config": "^7.4.0", | ||
"@reskript/cli": "5.7.2", | ||
"@reskript/cli-build": "5.7.2", | ||
"@reskript/cli-dev": "5.7.2", | ||
"@reskript/settings": "5.7.2", | ||
"@types/react-test-renderer": "^16.9.5", | ||
"antd": "^4.24.3", | ||
"autoprefixer": "^9.8.8", | ||
"babel-jest": "^26.6.3", | ||
"babel-loader": "^9.1.0", | ||
"@reskript/cli": "5.7.4", | ||
"@reskript/cli-build": "5.7.4", | ||
"@reskript/cli-dev": "5.7.4", | ||
"@reskript/settings": "5.7.4", | ||
"@types/react-test-renderer": "^18.0.0", | ||
"antd": "^5.2.1", | ||
"autoprefixer": "^10.4.13", | ||
"babel-jest": "^29.4.3", | ||
"babel-loader": "^9.1.2", | ||
"babel-plugin-add-react-displayname": "0.0.5", | ||
"babel-plugin-import": "^1.13.5", | ||
"babel-plugin-import": "^1.13.6", | ||
"babel-plugin-lodash": "^3.3.4", | ||
"babel-plugin-react-require": "^3.1.3", | ||
"core-js": "^3.26.1", | ||
"css-loader": "^6.7.2", | ||
"cssnano": "^5.1.14", | ||
"core-js": "^3.28.0", | ||
"css-loader": "^6.7.3", | ||
"cssnano": "^5.1.15", | ||
"enzyme": "^3.11.0", | ||
"enzyme-adapter-react-16": "^1.15.7", | ||
"eslint": "^8.28.0", | ||
"eslint-plugin-jest": "^27.1.5", | ||
"eslint-plugin-react": "^7.31.11", | ||
"eslint": "^8.34.0", | ||
"eslint-plugin-jest": "^27.2.1", | ||
"eslint-plugin-react": "^7.32.2", | ||
"eslint-plugin-react-hooks": "^4.6.0", | ||
"gitdiff-parser": "^0.2.2", | ||
"html-webpack-plugin": "^5.5.0", | ||
"husky": "^8.0.3", | ||
"identity-obj-proxy": "^3.0.0", | ||
"jest": "^26.6.3", | ||
"jest": "^29.4.3", | ||
"less": "^4.1.3", | ||
"less-loader": "^11.1.0", | ||
"lodash": "^4.17.21", | ||
"nanoid": "^4.0.0", | ||
"postcss": "^8.4.19", | ||
"postcss-cli": "^10.0.0", | ||
"postcss-custom-properties": "^13.0.0", | ||
"nanoid": "^4.0.1", | ||
"postcss": "^8.4.21", | ||
"postcss-cli": "^10.1.0", | ||
"postcss-custom-properties": "^13.1.3", | ||
"prism-color-variables": "^1.0.1", | ||
"prop-types": "^15.8.1", | ||
"raw-loader": "^4.0.2", | ||
"react": "^16.14.0", | ||
"react-dom": "^16.14.0", | ||
"react": "^18.2.0", | ||
"react-dom": "^18.2.0", | ||
"react-infinite-scroller": "^1.2.6", | ||
"react-markdown": "^8.0.3", | ||
"react-test-renderer": "^16.14.0", | ||
"react-markdown": "^8.0.5", | ||
"react-test-renderer": "^18.2.0", | ||
"react-timeago": "^7.1.0", | ||
"refractor": "^2.10.1", | ||
"rollup": "^1.32.1", | ||
"rollup": "^3.17.1", | ||
"rollup-plugin-auto-external": "^2.0.0", | ||
@@ -97,3 +100,3 @@ "rollup-plugin-babel": "^4.4.0", | ||
"rollup-plugin-sourcemaps": "^0.6.3", | ||
"rollup-plugin-terser": "^5.3.1", | ||
"rollup-plugin-terser": "^7.0.2", | ||
"sha1": "^1.1.1", | ||
@@ -104,3 +107,3 @@ "style-loader": "^3.3.1", | ||
"webpack": "^5.75.0", | ||
"webpack-cli": "^5.0.0", | ||
"webpack-cli": "^5.0.1", | ||
"webpack-dev-server": "^4.11.1", | ||
@@ -134,3 +137,3 @@ "worker-loader": "^3.0.8" | ||
], | ||
"packageManager": "yarn@3.3.0" | ||
"packageManager": "yarn@3.4.1" | ||
} |
@@ -280,10 +280,19 @@ # react-diff-view | ||
--diff-selection-background-color: #b3d7ff; | ||
--diff-selection-text-color: var(--diff-text-color);; | ||
--diff-gutter-insert-background-color: #d6fedb; | ||
--diff-gutter-insert-text-color: var(--diff-text-color); | ||
--diff-gutter-delete-background-color: #fadde0; | ||
--diff-gutter-delete-text-color: var(--diff-text-color); | ||
--diff-gutter-selected-background-color: #fffce0; | ||
--diff-gutter-selected-text-color: var(--diff-text-color); | ||
--diff-code-insert-background-color: #eaffee; | ||
--diff-code-insert-text-color: var(--diff-text-color); | ||
--diff-code-delete-background-color: #fdeff0; | ||
--diff-code-delete-text-color: var(--diff-text-color); | ||
--diff-code-insert-edit-background-color: #c0dc91; | ||
--diff-code-insert-edit-text-color: var(--diff-text-color); | ||
--diff-code-delete-edit-background-color: #f39ea2; | ||
--diff-code-delete-edit-text-color: var(--diff-text-color); | ||
--diff-code-selected-background-color: #fffce0; | ||
--diff-code-selected-text-color: var(--diff-text-color); | ||
--diff-omit-gutter-line-color: #cb2a1d; | ||
@@ -741,1 +750,5 @@ } | ||
- Add CSS variables to customize diff components. | ||
### 2.6.0 | ||
- Add more CSS variable to customize text color inside insert, delete changes. |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
1304888
1151
753
71
+ Addedshallow-equal@3.1.0(transitive)
- Removedshallow-equal@1.2.1(transitive)
Updatedshallow-equal@^3.1.0