Releases: jfcherng/php-diff
Releases · jfcherng/php-diff
4.1.7
- 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
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
- Fix potential boundary error in
Diff::getText()
.
Both $start
and $end
could be negative.
4.1.3
- Fix
Diff::getText()
when $end
is null
.
4.1.2
- Update
jfcherng/php-sequence-matcher
^2.0
Release of new version 4.1.1
-
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.
-
Fix HTML special chars in JSON renderer should be escaped.
4.1.0
- 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
- Move factory classes to
Jfcherng\Diff\Factory\
- Merge
ReservedConstantInterface
into RendererConstant