Releases: caxy/php-htmldiff
v0.1.15
What's Changed
- Fix #120: deprecated HTML-ENTITIES encoding by @richardbrinkman in #121
- Add spaceMatching setting that matches all spaces by @berarma in #111
- Add a placeholder for the HTML5 picture element by @LukeLeber in #115
New Contributors
- @richardbrinkman made their first contribution in #121
- @berarma made their first contribution in #111
- @LukeLeber made their first contribution in #115
Full Changelog: v0.1.14...v0.1.15
v0.1.14
v0.1.14 (2022-01-19)
Changes:
This release mainly removed everything that is related to the concept of special-case-tags. This was adopted from the
original library by rashid2538 that this fork is based on.
The feature tried to wrap the special tags in an extra <ins / del class='mod'>
tag.
However, this never really worked properly (the closing tag was not always added to the diff output) and usually ended up crippling the HTML.
Given the feature never really worked, and there is no clear use-case for it, I decided to remove it and fix
issue 106 and issue 69 in the process where it was sometimes impossible to diff html that contained these special tags or unexpected extra tags got added to the output.
In case you really needed this feature, please open an issue explaining your use-case, in that case this decision can be revisited.
- Deprecated all setSpecialCaseTags() config calls. There is no replacement, but the current expectation is that nobody ever used these calls anyway.
- Fixed Issue 106 / 69 by removing special-case-tags from the codebase
- Reduced the CRAP score of insertTag() by allot
v0.1.13
v0.1.13 (2021-09-27)
Changes:
- Add
.gitattributes
file to exclude demo and tests from the exported zip package to reduce package size when installed via composer (#86 - @danepowell )
Turbo Turbo
v0.1.12 (2021-04-05)
Changes:
- Word parser is rebuild to improve performance by 98% (according to xhprof profiler) and reducing code complexity.
- Whitespace checking improvements in match finding algorithm to improve performance by allot, up to 50% in some of my testing
ListDiff rework
v0.1.11 (2021-02-02)
Important
The changes to the list diffing are substantial, and we have tested as much as possible, to make sure the output stays the same between this version and the previous version.
If there are issues cropping up with list diffing after updating to this version feel free to open an issue
Changes:
- Fixed a bug where self-closing tags got crippled in HtmlDiff
- Ported ListDiff from SimpleXML to DOMDocument
- Cleanup of old list diff algorithm
- Possibility to disable html-purifier using a config flag
- Removed dependency php-simple-html-dom-parser
PHP8 compatible version
v0.1.10 (2021-01-05)
Important:
In order to be compatible with PHP8 we had to upgrade some vendor packages.
Since these vendor packages have dropped support for older versions of PHP we had todo the same, therefore this version is not compatible anymore with PHP versions prior to 7.3.
In case you are not able to upgrade your PHP version, please pin version v0.1.9 of php-htmldiff in your composer config.
Changes:
- Fixed the keywords that made this version incompatible with PHP8
- Upgraded PHPUnit dependencies with a PHP8 compatible version
v0.1.9
v0.1.8
v0.1.7
Bugfixes:
- Fix issues with unicode characters (@iluuu1994 #71, #72)
v0.1.6
Fixed warnings "count(): Parameter must be an array... (#65) * Fixed warnings "count(): Parameter must be an array or an object that implements Countable" in PHP7.1 * Added ability to preserve newlines in the diff (disabled by default)