Skip to content

Releases: caxy/php-htmldiff

v0.1.15

06 Nov 00:47
6342b02
Compare
Choose a tag to compare

What's Changed

New Contributors

Full Changelog: v0.1.14...v0.1.15

v0.1.14

19 Jan 11:16
Compare
Choose a tag to compare

v0.1.14 (2022-01-19)

Full Changelog

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

27 Sep 22:01
aca63d7
Compare
Choose a tag to compare

v0.1.13 (2021-09-27)

Full Changelog

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

05 Apr 21:21
7fb8aa0
Compare
Choose a tag to compare

v0.1.12 (2021-04-05)

Full Changelog

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

02 Feb 11:12
Compare
Choose a tag to compare

v0.1.11 (2021-02-02)

Full Changelog

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

05 Jan 11:14
4c142a5
Compare
Choose a tag to compare

v0.1.10 (2021-01-05)

Full Changelog

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

20 Feb 18:52
Compare
Choose a tag to compare

v0.1.9 (2019-02-20)

Full Changelog

Merged pull requests:

v0.1.8

15 Jan 19:53
Compare
Choose a tag to compare

v0.1.8 (2019-01-15)

Full Changelog

Implemented enhancements:

Closed issues:

  • Does not work on PHP 7.3 #79

v0.1.7

15 Mar 21:25
Compare
Choose a tag to compare

Bugfixes:

v0.1.6

07 Jan 16:40
Compare
Choose a tag to compare
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)