Skip to content

Releases: jfcherng/php-diff

4.1.7

21 Feb 18:19
d4ae50d
Compare
Choose a tag to compare
  • Fix AbstractHtml::expandTabs() $tabSize undeclared.
  • Fix problem caused by in OP_EQ, it still may be $old !== $new.
  • Update example/old_file.txt and the new one.

4.1.5

21 Feb 11:53
e401aa5
Compare
Choose a tag to compare

The following APIs have been deprecated and will be removed in v5.

  • Diff::setA() becomes Diff::setOld().
  • Diff::setB() becomes Diff::setNew().
  • Diff::setAB() becomes Diff::setOldNew().
  • Diff::getA() becomes Diff::getOld().
  • Diff::getB() becomes Diff::getNew().

4.1.4

20 Feb 10:49
ff2325d
Compare
Choose a tag to compare
  • Fix potential boundary error in Diff::getText().
    Both $start and $end could be negative.

4.1.3

20 Feb 08:46
519b398
Compare
Choose a tag to compare
  • Fix Diff::getText() when $end is null.

4.1.2

20 Feb 07:19
992ab72
Compare
Choose a tag to compare
  • Update jfcherng/php-sequence-matcher ^2.0

Release of new version 4.1.1

19 Feb 11:38
a336b96
Compare
Choose a tag to compare
  • Fix HTML renderer should not emphasize inserted/deleted lines.

    It looks like the following screenshot now. Line 3 (new) and 11 (old) are no longer wholly emphasized.
    inline-char-level-diff

  • Fix HTML special chars in JSON renderer should be escaped.

4.1.0

16 Feb 11:21
b0f7e81
Compare
Choose a tag to compare
  • Allow HTML renderer option tabSize to be < 0, which means do not convert tab into spaces. In this case, you must add your own CSS to visualize tabs in HTML.

4.0.1

08 Feb 12:30
f60adc4
Compare
Choose a tag to compare
  • Move factory classes to Jfcherng\Diff\Factory\
  • Merge ReservedConstantInterface into RendererConstant

4.0.0

08 Feb 02:07
e2fa97b
Compare
Choose a tag to compare
  • Add final keyword to non-inherited classes.
  • Strip out SequenceMatcher as an external package.

See https://github.com/jfcherng/php-diff/blob/v4/UPGRADING_v4.md for upgrading.

3.3.0

25 Jan 09:16
21d1165
Compare
Choose a tag to compare
  • Use JSON format language files.

    Doing something like require "{$language}.php" is potentially dangerous if the languages/ folder is written with some malicious PHP scripts.