Release Notes
Development
v4.0.1 - January 6th, 2019
Fix main reference path - b826104
v4.0.0 - January 5th, 2019
#94 - Missing "No newline at end of file" when comparing two texts that do not end in newlines (@federicotdn)
#227 - Licence
#199 - Import statement for jsdiff
#159 - applyPatch affecting wrong line number with with new lines
#8 - A new state "replace"
Drop ie9 from karma targets - 79c31bd
Upgrade deps. Convert from webpack to rollup - 2c1a29c
Make ()[]"' as word boundaries between each other - f27b899
jsdiff: Replaced phantomJS by chrome - ec3114e
Add yarn.lock to .npmignore - 29466d8
Compatibility notes:
Bower and Component packages no longer supported
v3.5.0 - March 4th, 2018
Omit redundant slice in join method of diffArrays - 1023590
Support patches with empty lines - fb0f208
Accept a custom JSON replacer function for JSON diffing - 69c7f0a
Optimize parch header parser - 2aec429
Fix typos - e89c832
v3.4.0 - October 7th, 2017
#183 - Feature request: ability to specify a custom equality checker for
diffArrays
#173 - Bug: diffArrays gives wrong result on array of booleans
#158 - diffArrays will not compare the empty string in array?
comparator for custom equality checks - 30e141e
count oldLines and newLines when there are conflicts - 53bf384
Fix: diffArrays can compare falsey items - 9e24284
Docs: Replace grunt with npm test - 00e2f94
v3.3.1 - September 3rd, 2017
#141 - Cannot apply patch because my file delimiter is "/r/n" instead of "/n"
#192 - Fix: Bad merge when adding new files (#189)
correct spelling mistake - 21fa478
v3.3.0 - July 5th, 2017
#114 - /patch/merge not exported
Gracefully accept invalid newStart in hunks, same as patch(1) does. - d8a3635
Use regex rather than starts/ends with for parsePatch - 6cab62c
Add browser flag - e64f674
refactor: simplified code a bit more - 8f8e0f2
refactor: simplified code a bit - b094a6f
fix: some corrections re ignoreCase option - 3c78fd0
ignoreCase option - 3cbfbb5
Sanitize filename while parsing patches - 2fe8129
Added better installation methods - aced50b
Simple export of functionality - 8690f31
v3.2.0 - December 26th, 2016
#154 - Add
examples
andimages
to.npmignore
. (@wtgtybhertgeghgtwtg)
v3.1.0 - November 27th, 2016
#146 - JsDiff.diffArrays to compare arrays (@wvanderdeijl)
#144 - Split file using all possible line delimiter instead of hard-coded "/n" and join lines back using the original delimiters (@soulbeing)
v3.0.1 - October 9th, 2016
#135 - parsePatch combines patches from multiple files into a single IUniDiff when there is no "Index" line (@ramya-rao-a)
#124 - IE7/IE8 failure since 2.0.0 (@boneskull)
v3.0.0 - August 23rd, 2016
#119 - Do single reflow (@wifiextender)
Compatibility notes:
applyPatches patch callback now is async and requires the callback be called to continue operation
v2.2.3 - May 31st, 2016
v2.2.2 - March 13th, 2016
#102 - diffJson with dates, returns empty curly braces (@dr-dimitru)
v2.2.1 - November 12th, 2015
v2.2.0 - October 29th, 2015
v2.2.0 - October 29th, 2015
v2.1.3 - September 30th, 2015
#78 - fix: error throwing when apply patch to empty string (@21paradox)
v2.1.2 - September 23rd, 2015
v2.1.1 - September 9th, 2015
#73 - Is applyPatches() exposed in the API? (@davidparsson)
v2.1.0 - August 27th, 2015
#69 - Missing count (@wfalkwallace)
#68 - diffLines seems broken (@wfalkwallace)
Move whitespace ignore out of equals method - 542063c
Include source maps in babel output - 7f7ab21
Merge diff/line and diff/patch implementations - 1597705
Drop map utility method - 1ddc939
Documentation for parsePatch and applyPatches - 27c4b77
Compatibility notes:
The undocumented ignoreWhitespace flag has been removed from the Diff equality check directly. This implementation may be copied to diff utilities if dependencies existed on this functionality.
v2.0.2 - August 8th, 2015
#67 - cannot require from npm module in node (@commenthol)
Convert to chai since we don’t support IE8 - a96bbad
v2.0.1 - August 7th, 2015
Add release build at proper step - 57542fd
v2.0.0 - August 7th, 2015
#62 - Allow access to structured object representation of patch data (@bittrance)
#61 - Use svg instead of png to get better image quality (@PeterDaveHello)
#29 - word tokenizer works only for 7 bit ascii (@plasmagunman)
Compatibility notes:
this.removeEmpty
is now called automatically for all instances. If this is not desired, this may be overridden on a per instance basis.The library has been refactored to use some ES6 features. The external APIs should remain the same, but bower projects that directly referenced the repository will now have to point to the components/jsdiff repository.
v1.4.0 - May 6th, 2015
#56 - Two files patch (@rgeissert)
#14 - Flip added and removed order? (@jakesandlund)
v1.3.2 - March 30th, 2015
#44 - invalid-meta jsdiff is missing "main" entry in bower.json
v1.3.1 - March 13th, 2015
#52 - Fix for #51 Wrong result of JsDiff.diffLines (@felicienfrancois)
v1.3.0 - March 2nd, 2015
#47 - Adding Diff Trimmed Lines (@JamesGould123)
v1.2.2 - January 26th, 2015
#45 - Fix AMD module loading (@pedrocarrico)
#43 - added a bower file (@nbrustein)
v1.2.1 - December 26th, 2014
v1.2.0 - November 29th, 2014
#28 - Implemented diffJson (@papandreou)
Allow for optional async diffing - 19385b9
Fix diffChars implementation - eaa44ed
v1.1.0 - November 25th, 2014
#31 - Don't rely on Array.prototype.map (@papandreou)
v1.0.8 - December 22nd, 2013
#23 - Prettied up the API formatting a little, and added basic node and web examples (@airportyh)
v1.0.7 - September 11th, 2013
#22 - Added variant of WordDiff that doesn't ignore whitespace differences (@papandreou
Add 0.10 to travis tests - 243a526
v1.0.6 - August 30th, 2013
#19 - Explicitly define contents of npm package (@sindresorhus
Last updated