react-diff-view
Advanced tools
Comparing version 1.4.0-beta.6 to 1.4.0
{ | ||
"name": "react-diff-view", | ||
"version": "1.4.0-beta.6", | ||
"version": "1.4.0", | ||
"description": "A git diff component to consume the git unified diff output.", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -19,2 +19,3 @@ # react-diff-view | ||
- Customizable events and styles. | ||
- A bunch of utility function to manipulate diff structure if source text is provided. | ||
@@ -460,1 +461,12 @@ Run `npm start` to enjoy a full featured demo with diff display, collapsed code expansion, code comment and large diff lazy load. | ||
- Update `gitdiff-parser` to fix an issue with whitespace in filename. | ||
### 1.4.0 | ||
- Add `expandFromRawCode` function to create hunks from source code. | ||
- Make `insertHunk` work when hunks have overlaps. | ||
- Add `referenceRawCodeOrLines` parameter to `addStubHunk` function to automatically determineswhether a stub hunk is required. | ||
- Add `computeCorresponding(Old|New)LineNumber` functions to get corresponding line number from one side to another side. | ||
- Add `findChangeBy(Old|New)LineNumber` functions to find specific change in hunks. | ||
- Add `getCollapsedLinesCountBetween` function to count collapsed lines between two hunks. | ||
- Add `expandCollapsedBlockBy` function to expand collapsed blocks from a predicate function. | ||
- `stubHunk` option on `parse` function is deprecated. |
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
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
594782
1
471