Skip to content

Releases: jfcherng/php-diff

6.4.5

24 Feb 06:56
2abb0d1
Compare
Choose a tag to compare
  • CSS: Make empty table cells have normal height.

  • CSS: Nonexistenet lines in SideBySide are shown as stripes.

    image

    This change also reverts "Merge SideBySide insert/delete/equal columns when lineNumbers is false."
    since stripes are quite distinguishable. And it's more consistent to most diff softwares.

  • Add a new constant: Differ::CONTEXT_ALL, which can be used for the context differ option
    to show the whole source text in the output diff. (#8)

    It's just a large integer without possible overflow during calculation.

6.4.4

13 Feb 06:17
1f1b24c
Compare
Choose a tag to compare
  • Fix SideBySide renderer wrong new line numbers.

6.4.3

09 Feb 21:43
5bb0015
Compare
Choose a tag to compare
  • Merge SideBySide insert/delete/equal columns when lineNumbers is false.

6.4.2

09 Feb 11:00
fc9c87b
Compare
Choose a tag to compare
  • Fix SideBySide renderer fatal error.

6.4.1

09 Feb 09:45
fa71652
Compare
Choose a tag to compare
  • Fix typo: Woker -> Worker.

6.4.0

07 Feb 09:53
535e9b3
Compare
Choose a tag to compare
  • Add renderer option: lineNumbers. (#19)

6.3.2

16 Jan 05:02
26aa954
Compare
Choose a tag to compare
  • Add French (fra) translation.

6.3.1

11 Jan 17:10
03b051d
Compare
Choose a tag to compare
  • Remove dep: nicmart/string-template. (I should introduce this only if we really need to use it.)

6.3.0

05 Jan 08:23
f51ed1c
Compare
Choose a tag to compare
  • Allow rendering HTML result with the JSON result. (#17)
// use the JSON result to render in HTML
$jsonResult = DiffHelper::calculate($old, $new, 'Json'); // may store the JSON result in your Database
$htmlRenderer = RendererFactory::make('Inline');
$result = $htmlRenderer->renderArray(json_decode($jsonResult, true));

6.2.1

04 Jan 17:21
8e441ad
Compare
Choose a tag to compare
  • Add Turkish (tur) translation.