Recent Releases of https://github.com/jfcherng/php-diff

https://github.com/jfcherng/php-diff - 6.10.17

Ported changes from 6.16.x:

  • fix: remove debug print

- PHP
Published by jfcherng almost 2 years ago

https://github.com/jfcherng/php-diff - 6.16.2

  • fix: remove debug print

- PHP
Published by jfcherng almost 2 years ago

https://github.com/jfcherng/php-diff - 6.10.16

Ported changes from 6.16.x:

  • fix: Differ::getStatistics() not working when no difference

- PHP
Published by jfcherng almost 2 years ago

https://github.com/jfcherng/php-diff - 6.16.1

  • fix: Differ::getStatistics() not working when no difference

- PHP
Published by jfcherng almost 2 years ago

https://github.com/jfcherng/php-diff - 6.10.15

Ported changes from 6.16.x:

  • chore: fix deprecated php-cs-fixer options
  • feat: add new differ option: fullContextIfIdentical (https://github.com/jfcherng/php-diff/pull/79)
  • chore: fix typos (https://github.com/jfcherng/php-diff/pull/75)

- PHP
Published by jfcherng almost 2 years ago

https://github.com/jfcherng/php-diff - 6.16.0

  • chore: fix deprecated php-cs-fixer options
  • feat: add new differ option: fullContextIfIdentical (#79)
  • chore: fix typos (#75)

- PHP
Published by jfcherng almost 2 years ago

https://github.com/jfcherng/php-diff - 6.15.3

  • chore: add cze (Czech) translation (#74)

- PHP
Published by jfcherng over 2 years ago

https://github.com/jfcherng/php-diff - 6.10.14

Ported changes from 6.15.x:

  • chore: add cze (Czech) translation (#74)

- PHP
Published by jfcherng over 2 years ago

https://github.com/jfcherng/php-diff - 6.10.13

Ported changes from 6.15.x:

  • chore: add nob (Norwegian) translation (#73)

- PHP
Published by jfcherng over 2 years ago

https://github.com/jfcherng/php-diff - 6.15.2

  • chore: add nob (Norwegian) translation (#73)

- PHP
Published by jfcherng over 2 years ago

https://github.com/jfcherng/php-diff - 6.15.1

  • chore: update deps

- PHP
Published by jfcherng over 2 years ago

https://github.com/jfcherng/php-diff - 6.10.12

Ported changes from 6.15.x:

  • feat: add new differOption: lengthLimit

Previously this is hard-coded as 1000 in https://github.com/jfcherng/php-sequence-matcher/blob/3.2.9/src/SequenceMatcher.php#LL683C28-L683C32

Fixes https://github.com/jfcherng/php-diff/issues/71

- PHP
Published by jfcherng almost 3 years ago

https://github.com/jfcherng/php-diff - 6.15.0

  • feat: add new differOption: lengthLimit

Previously this is hard-coded as 1000 in https://github.com/jfcherng/php-sequence-matcher/blob/3.2.9/src/SequenceMatcher.php#LL683C28-L683C32

Fixes https://github.com/jfcherng/php-diff/issues/71

- PHP
Published by jfcherng almost 3 years ago

https://github.com/jfcherng/php-diff - 6.10.11

Ported changes from 6.14.x:

  • fix: (Combined) unmerge-able block shouldn't be repeated (https://github.com/jfcherng/php-diff/issues/69)

- PHP
Published by jfcherng almost 3 years ago

https://github.com/jfcherng/php-diff - 6.14.2

  • fix: (Combined) unmerge-able block shouldn't be repeated (https://github.com/jfcherng/php-diff/issues/69)

- PHP
Published by jfcherng almost 3 years ago

https://github.com/jfcherng/php-diff - 6.10.9

Ported changes from 6.14.x:

  • feat: add differ option: ignoreLineEnding

- PHP
Published by jfcherng almost 3 years ago

https://github.com/jfcherng/php-diff - 6.14.0

  • feat: add differ option: ignoreLineEnding

- PHP
Published by jfcherng almost 3 years ago

https://github.com/jfcherng/php-diff - 6.13.1

  • fix: another way to fix \r shouldn't be visualized like a newline in Combined renderer (#34)

- PHP
Published by jfcherng almost 3 years ago

https://github.com/jfcherng/php-diff - 6.10.8

Ported changes from 6.13.x:

  • feat: provide a way to override an existing language

Check https://github.com/jfcherng/php-diff/blob/6.10.8/README.md#override-an-existing-language

- PHP
Published by jfcherng about 3 years ago

https://github.com/jfcherng/php-diff - 6.13.0

  • feat: provide a way to override an existing language

Check https://github.com/jfcherng/php-diff/blob/6.13.0/README.md#override-an-existing-language

- PHP
Published by jfcherng about 3 years ago

https://github.com/jfcherng/php-diff - 6.10.7

  • fix: side-by-side column too narrow (#63)

- PHP
Published by jfcherng over 3 years ago

https://github.com/jfcherng/php-diff - 6.12.1

  • fix: side-by-side column too narrow (#63)

- PHP
Published by jfcherng over 3 years ago

https://github.com/jfcherng/php-diff - 6.10.6

Ported changes from 6.12.x:

  • feat: new rendererOption: spaceToHtmlTag (#60)
  • fix: select the code only (#59)
  • fix: wrong visual tabSize on browser

- PHP
Published by jfcherng over 3 years ago

https://github.com/jfcherng/php-diff - 6.12.0

  • feat: new rendererOption: spaceToHtmlTag (#60)
  • fix: select the code only (#59)
  • fix: wrong visual tabSize on browser

- PHP
Published by jfcherng over 3 years ago

https://github.com/jfcherng/php-diff -

Ported changes from 6.11.x:

  • fix: Combined::renderArray isn't working properly

- PHP
Published by jfcherng over 3 years ago

https://github.com/jfcherng/php-diff - 6.11.6

  • fix: Combined::renderArray isn't working properly

- PHP
Published by jfcherng over 3 years ago

https://github.com/jfcherng/php-diff - 6.10.4

  • chore: update deps (upstream)

- PHP
Published by jfcherng almost 4 years ago

https://github.com/jfcherng/php-diff - 6.11.5

  • chore: update deps (upstream)

- PHP
Published by jfcherng almost 4 years ago

https://github.com/jfcherng/php-diff - 6.10.3

Ported changes from 6.11.x:

  • chore: update deps
  • chore: add ita (Italian) translation
  • chore: add ukr (Ukraine) translation
  • fix: wrong execution result under php alpine image (#51)

- PHP
Published by jfcherng almost 4 years ago

https://github.com/jfcherng/php-diff - 6.11.4

  • chore: add ita (Italian) translation

- PHP
Published by jfcherng almost 4 years ago

https://github.com/jfcherng/php-diff - 6.11.3

  • refactor: utilize PHP 7.4 typed properties (only for final classes since it's a BC breaking change)
  • refactor: utilize PHP 7.4 array spread operator
  • refactor: utilize PHP 7.4 arrow funciton
  • refactor: utilize PHP 7.4 null coalescing assignment
  • chore: update deps

- PHP
Published by jfcherng almost 4 years ago

https://github.com/jfcherng/php-diff - 6.11.2

  • fix: wrong execution result under php alpine image (#51)

- PHP
Published by jfcherng about 4 years ago

https://github.com/jfcherng/php-diff - 6.11.1

  • chore: add ukr (Ukraine) translation

- PHP
Published by jfcherng about 4 years ago

https://github.com/jfcherng/php-diff - 6.11.0

  • chore: bump min PHP requirement to 7.4

    • Version 6.10 and before requires PHP >= 7.1
    • Note that PHP 7.3 is no longer supported by the PHP official: https://www.php.net/supported-versions.php
  • refactor: use PHP new features

- PHP
Published by jfcherng about 4 years ago

https://github.com/jfcherng/php-diff - 6.10.0

  • chore: add liip/rmt as a dev dependency
  • chore: allow phan/phan ^4
  • feat: add methods to get diff statistics

php $differ->getStatistics(); DiffHelper::getStatistics();

both return something like

php [ 'inserted' => 0, 'deleted' => 0, 'unmodified' => 0, 'changedRatio' => 0.0, ]

  • fix: deprecated method in .php_cs

- PHP
Published by jfcherng almost 5 years ago

https://github.com/jfcherng/php-diff - 6.9.0

  • feat: add option: showHeader (https://github.com/jfcherng/php-diff/issues/42)

- PHP
Published by jfcherng about 5 years ago

https://github.com/jfcherng/php-diff - 6.8.0

  • feat: add renderer: JsonText (https://github.com/jfcherng/php-diff/issues/40)

The previous Json renderer has been deprecated. You may use JsonHtml instead, for a more explicit name with a comparison to JsonText.

- PHP
Published by jfcherng over 5 years ago

https://github.com/jfcherng/php-diff - 6.7.7

  • fix: a regression about the last diff block (#36)

- PHP
Published by jfcherng over 5 years ago

https://github.com/jfcherng/php-diff - 6.7.6

  • fix: ignoreWhitespaces doesn't produce the same result with GNU diff's (#35)

- PHP
Published by jfcherng over 5 years ago

https://github.com/jfcherng/php-diff - 6.7.5

  • fix: \r shouldn't be visualized like a newline in Combined renderer (#34)

- PHP
Published by jfcherng over 5 years ago

https://github.com/jfcherng/php-diff - 6.7.4

  • fix: OP_EQ lines are not escaped in Combined renderer

- PHP
Published by jfcherng over 5 years ago

https://github.com/jfcherng/php-diff - 6.7.3

  • chore: allow PHP 8

- PHP
Published by jfcherng over 5 years ago

https://github.com/jfcherng/php-diff - 6.7.2

  • fix: unexpected Combined output due to HTML formatting (#30)

- PHP
Published by jfcherng almost 6 years ago

https://github.com/jfcherng/php-diff - 6.7.1

- PHP
Published by jfcherng almost 6 years ago

https://github.com/jfcherng/php-diff - 6.7.0

  • feat: support colorized CLI output for text renderers (https://github.com/jfcherng/php-diff/pull/29) 2020-04-06_21-02-17

- PHP
Published by jfcherng almost 6 years ago

https://github.com/jfcherng/php-diff - 6.6.4

  • feat: add Spanish translation (#26)

- PHP
Published by jfcherng almost 6 years ago

https://github.com/jfcherng/php-diff - 6.6.3

Just some refactoring.

- PHP
Published by jfcherng almost 6 years ago

https://github.com/jfcherng/php-diff - 6.6.2

  • fix: wordGlues works wrongly under some circumstances (#25)
  • fix(CSS): better strip alignment effect

- PHP
Published by jfcherng almost 6 years ago

https://github.com/jfcherng/php-diff - 6.6.1

  • Add German (deu) translation.

- PHP
Published by jfcherng almost 6 years ago

https://github.com/jfcherng/php-diff - 6.6.0

  • Add new renderer option: wordGlues.

This option is introduced to improve the readability for word-level diff. By default, - and are treated as "glues" to merge consecutive diffs into a whole.

Snipaste_2020-03-12_18-54-34 Snipaste_2020-03-12_18-54-56

- PHP
Published by jfcherng almost 6 years ago

https://github.com/jfcherng/php-diff - 6.5.7

  • Add Json renderer option: jsonEncodeFlags.

- PHP
Published by jfcherng almost 6 years ago

https://github.com/jfcherng/php-diff - 6.5.6

  • Add Combined renderer option: mergeThreshold.

- PHP
Published by jfcherng almost 6 years ago

https://github.com/jfcherng/php-diff - 6.5.5

  • Combined: do not merge blocks which change too much. (https://github.com/jfcherng/php-diff/issues/20#issuecomment-596088928)
  • Fix CSS table text alignment for very long lines.

- PHP
Published by jfcherng almost 6 years ago

https://github.com/jfcherng/php-diff - 6.5.4

This release brings various fixes for Context and Unified mostly.

  • Fix DiffHelper::calculateFiles() for empty files.
  • Fix there are extra leading/trailing lines when context is set to 0.
  • Fix Unified line numbers when context is 0.
  • Fix all-equal hunk content should be omitted in Context output.
  • Fix Context/Unified output for EOL at EOF. (https://github.com/jfcherng/php-diff/issues/23)

- PHP
Published by jfcherng almost 6 years ago

https://github.com/jfcherng/php-diff - 6.5.3

  • Improve Combined renderer output for newlines. (https://github.com/jfcherng/php-diff/commit/41c6d0b5ef06d0b0b3ea002aa45f1bebbd2914a0#commitcomment-37651644)

- PHP
Published by jfcherng almost 6 years ago

https://github.com/jfcherng/php-diff - 6.5.2

  • Fix there should not be \n in the Combined renderer output.
  • Beautify the example demo.php for textual renderer outputs.

- PHP
Published by jfcherng almost 6 years ago

https://github.com/jfcherng/php-diff - 6.5.1

  • Allow overriding SCSS variables.
  • Combine: Prefer the new if we can only show either the old or the new.

- PHP
Published by jfcherng almost 6 years ago

https://github.com/jfcherng/php-diff - 6.5.0

  • Add new HTML renderer: Combined (https://github.com/jfcherng/php-diff/pull/22)

This renderer is suitable for articles and always has no line number.

image

- PHP
Published by jfcherng almost 6 years ago

https://github.com/jfcherng/php-diff - 6.4.7

  • CSS: SideBySide stripe background uses background-attachement: fixed;. (So I give up, non-fixed stripes always may be misaligned.)

previous: p

current: image

- PHP
Published by jfcherng almost 6 years ago

https://github.com/jfcherng/php-diff - 6.4.6

  • CSS: Make SideBySide stripe background better aligned across line.

background-attachment: fixed; should fix this perfectly but it will make you feel stripes are scrolling when you scroll.

- PHP
Published by jfcherng almost 6 years ago

https://github.com/jfcherng/php-diff - 6.4.5

  • 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. (https://github.com/jfcherng/php-diff/issues/8)

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

- PHP
Published by jfcherng almost 6 years ago

https://github.com/jfcherng/php-diff - 6.4.4

  • Fix SideBySide renderer wrong new line numbers.

- PHP
Published by jfcherng about 6 years ago

https://github.com/jfcherng/php-diff - 6.4.3

  • Merge SideBySide insert/delete/equal columns when lineNumbers is false.

- PHP
Published by jfcherng about 6 years ago

https://github.com/jfcherng/php-diff - 6.4.2

  • Fix SideBySide renderer fatal error.

- PHP
Published by jfcherng about 6 years ago

https://github.com/jfcherng/php-diff - 6.4.1

  • Fix typo: Woker -> Worker.

- PHP
Published by jfcherng about 6 years ago

https://github.com/jfcherng/php-diff - 6.4.0

  • Add renderer option: lineNumbers. (#19)

- PHP
Published by jfcherng about 6 years ago

https://github.com/jfcherng/php-diff - 6.3.2

  • Add French (fra) translation.

- PHP
Published by jfcherng about 6 years ago

https://github.com/jfcherng/php-diff - 6.3.1

  • Remove dep: nicmart/string-template. (I should introduce this only if we really need to use it.)

- PHP
Published by jfcherng about 6 years ago

https://github.com/jfcherng/php-diff - 6.3.0

  • Allow rendering HTML result with the JSON result. (https://github.com/jfcherng/php-diff/pull/17)

php // 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));

- PHP
Published by jfcherng about 6 years ago

https://github.com/jfcherng/php-diff - 6.2.1

  • Add Turkish (tur) translation.

- PHP
Published by jfcherng about 6 years ago

https://github.com/jfcherng/php-diff - 6.2.0

  • Add renderer option: resultForIdenticals. This is used to customize the returned diff when the new and the old are identical. (#12)

- PHP
Published by jfcherng over 6 years ago

https://github.com/jfcherng/php-diff - 6.1.2

  • Add Portuguese (por) translation.
  • Follow PSR-12.

- PHP
Published by jfcherng over 6 years ago

https://github.com/jfcherng/php-diff - 6.1.1

  • Fix renderer option language cannot be an array. (#11)

- PHP
Published by jfcherng over 6 years ago

https://github.com/jfcherng/php-diff - 6.1.0

  • Add renderer option: wrapperClasses.

- PHP
Published by jfcherng over 6 years ago

https://github.com/jfcherng/php-diff - 6.0.1

  • Fix Japanese translations.
  • Sass: replace compass/css3 functions with dart-sass built-in.

- PHP
Published by jfcherng over 6 years ago

https://github.com/jfcherng/php-diff - 5.2.2: Final Release for v5

This release is functionally identical to 5.2.1. Just to tag that 5.2.2 is the final v5 release.

You may consider upgrading to v6.

- PHP
Published by jfcherng almost 7 years ago

https://github.com/jfcherng/php-diff - 6.0.0

There is no new feature or fix. 6.0.0 is just a massive clean up / API renaming release.

See https://github.com/jfcherng/php-diff/blob/v6/UPGRADING/UPGRADING_v6.md for upgrading.

- PHP
Published by jfcherng almost 7 years ago

https://github.com/jfcherng/php-diff - 5.2.1

  • Fix Diff::getOldNewComparison() should use finalize().

- PHP
Published by jfcherng almost 7 years ago

https://github.com/jfcherng/php-diff - 5.2.0

  • Deprecate the static AbstractRenderer::getIdenticalResult(). Use the non-static AbstractRenderer::getResultForIdenticals() instead.
  • Some codes clean up.

- PHP
Published by jfcherng almost 7 years ago

https://github.com/jfcherng/php-diff - 4.2.3: Final Release for v4

  • Just some tiny fixes.

You may consider upgrading to v5.

- PHP
Published by jfcherng almost 7 years ago

https://github.com/jfcherng/php-diff - 4.2.2

  • Adapt some non-breaking changes from the master branch.

You may consider upgrading to v5.

- PHP
Published by jfcherng almost 7 years ago

https://github.com/jfcherng/php-diff - 4.2.1

  • Fix DiffHelp::getTemplatesInfo() typos.

- PHP
Published by jfcherng almost 7 years ago

https://github.com/jfcherng/php-diff -

  • Fix DiffHelp::getTemplatesInfo() typos.

- PHP
Published by jfcherng almost 7 years ago

https://github.com/jfcherng/php-diff - 5.1.0

  • Add DiffHelper::calculateFiles()
  • Add DiffHelper::getProjectDirectory()
  • Add DiffHelper::getStyleSheet()
  • Add INFO['type'] for renderers
  • require-dev at least phpunit/phpunit 7.5
  • Rewrite DiffHelper::getTemplatesInfo() and DiffHelper::getStyleSheet()

- PHP
Published by jfcherng almost 7 years ago

https://github.com/jfcherng/php-diff - 4.2.0

  • Add DiffHelper::calculateFiles()
  • Add DiffHelper::getProjectDirectory()
  • Add DiffHelper::getStyleSheet()
  • Add INFO['type'] for renderers
  • require-dev at least phpunit/phpunit 7.5
  • Rewrite DiffHelper::getTemplatesInfo() and DiffHelper::getStyleSheet()

- PHP
Published by jfcherng almost 7 years ago

https://github.com/jfcherng/php-diff -

  • Fix Json renderer with empty changes.

- PHP
Published by jfcherng almost 7 years ago

https://github.com/jfcherng/php-diff - 4.1.9

  • Fix Json renderer with empty changes.

- PHP
Published by jfcherng almost 7 years ago

https://github.com/jfcherng/php-diff -

  • Fix squizlabs/php_codesniffer should be in require-dev.

- PHP
Published by jfcherng almost 7 years ago

https://github.com/jfcherng/php-diff -

  • Fix squizlabs/php_codesniffer should be in require-dev.

- PHP
Published by jfcherng almost 7 years ago

https://github.com/jfcherng/php-diff -

  • Add renderer option: outputTagAsString.
  • Update jfcherng/php-sequence-matcher ^3.0
  • The following function has been removed.
    • Diff::setAB()
    • Diff::setA()
    • Diff::setB()
    • Diff::getA()
    • Diff::getB()

See https://github.com/jfcherng/php-diff/blob/v5/UPGRADING/UPGRADING_v5.md for upgrading.

- PHP
Published by jfcherng almost 7 years ago

https://github.com/jfcherng/php-diff -

  • 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.

- PHP
Published by jfcherng almost 7 years ago

https://github.com/jfcherng/php-diff -

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().

- PHP
Published by jfcherng about 7 years ago

https://github.com/jfcherng/php-diff -

  • Fix potential boundary error in Diff::getText(). Both $start and $end could be negative.

- PHP
Published by jfcherng about 7 years ago

https://github.com/jfcherng/php-diff -

  • Fix Diff::getText() when $end is null.

- PHP
Published by jfcherng about 7 years ago

https://github.com/jfcherng/php-diff -

  • Update jfcherng/php-sequence-matcher ^2.0

- PHP
Published by jfcherng about 7 years ago

https://github.com/jfcherng/php-diff -

  • 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.

- PHP
Published by jfcherng about 7 years ago

https://github.com/jfcherng/php-diff -

  • 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.

- PHP
Published by jfcherng about 7 years ago

https://github.com/jfcherng/php-diff -

  • Move factory classes to Jfcherng\Diff\Factory\
  • Merge ReservedConstantInterface into RendererConstant

- PHP
Published by jfcherng about 7 years ago

https://github.com/jfcherng/php-diff -

  • 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.

- PHP
Published by jfcherng about 7 years ago

https://github.com/jfcherng/php-diff -

  • 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.

- PHP
Published by jfcherng about 7 years ago