All notable changes are documented in this file using the Keep a CHANGELOG principles.
6.0.2 - 2024-07-03
- This project now uses PHPStan instead of Psalm for static analysis
6.0.1 - 2024-03-02
- Do not use implicitly nullable parameters
6.0.0 - 2024-02-02
SebastianBergmann\Diff\Chunk::getStart()
,SebastianBergmann\Diff\Chunk::getStartRange()
,SebastianBergmann\Diff\Chunk::getEnd()
,SebastianBergmann\Diff\Chunk::getEndRange()
, andSebastianBergmann\Diff\Chunk::getLines()
SebastianBergmann\Diff\Diff::getFrom()
,SebastianBergmann\Diff\Diff::getTo()
, andSebastianBergmann\Diff\Diff::getChunks()
SebastianBergmann\Diff\Line::getContent()
andSebastianBergmann\Diff\Diff::getType()
- Removed support for PHP 8.1
5.1.1 - 2024-03-02
- Do not use implicitly nullable parameters
5.1.0 - 2023-12-22
SebastianBergmann\Diff\Chunk::start()
,SebastianBergmann\Diff\Chunk::startRange()
,SebastianBergmann\Diff\Chunk::end()
,SebastianBergmann\Diff\Chunk::endRange()
, andSebastianBergmann\Diff\Chunk::lines()
SebastianBergmann\Diff\Diff::from()
,SebastianBergmann\Diff\Diff::to()
, andSebastianBergmann\Diff\Diff::chunks()
SebastianBergmann\Diff\Line::content()
andSebastianBergmann\Diff\Diff::type()
SebastianBergmann\Diff\Line::isAdded()
,SebastianBergmann\Diff\Line::isRemoved()
, andSebastianBergmann\Diff\Line::isUnchanged()
SebastianBergmann\Diff\Diff
now implementsIteratorAggregate
, iterating over it yields the aggregatedSebastianBergmann\Diff\Chunk
objectsSebastianBergmann\Diff\Chunk
now implementsIteratorAggregate
, iterating over it yields the aggregatedSebastianBergmann\Diff\Line
objects
SebastianBergmann\Diff\Chunk::getStart()
,SebastianBergmann\Diff\Chunk::getStartRange()
,SebastianBergmann\Diff\Chunk::getEnd()
,SebastianBergmann\Diff\Chunk::getEndRange()
, andSebastianBergmann\Diff\Chunk::getLines()
SebastianBergmann\Diff\Diff::getFrom()
,SebastianBergmann\Diff\Diff::getTo()
, andSebastianBergmann\Diff\Diff::getChunks()
SebastianBergmann\Diff\Line::getContent()
andSebastianBergmann\Diff\Diff::getType()
5.0.3 - 2023-05-01
- #119: Improve performance of
TimeEfficientLongestCommonSubsequenceCalculator
5.0.2 - 2023-05-01
- #118: Improve performance of
MemoryEfficientLongestCommonSubsequenceCalculator
5.0.1 - 2023-03-23
- #115:
Parser::parseFileDiff()
does not handle diffs correctly that only add lines or only remove lines
5.0.0 - 2023-02-03
- Passing a
DiffOutputBuilderInterface
instance toDiffer::__construct()
is no longer optional
- Removed support for PHP 7.3, PHP 7.4, and PHP 8.0
4.0.4 - 2020-10-26
SebastianBergmann\Diff\Exception
now correctly extends\Throwable
4.0.3 - 2020-09-28
- Changed PHP version constraint in
composer.json
from^7.3 || ^8.0
to>=7.3
4.0.2 - 2020-06-30
- This component is now supported on PHP 8
4.0.1 - 2020-05-08
- #99: Regression in unified diff output of identical strings
4.0.0 - 2020-02-07
- Removed support for PHP 7.1 and PHP 7.2
3.0.2 - 2019-02-04
Chunk::setLines()
now ensures that the$lines
array only containsLine
objects
3.0.1 - 2018-06-10
- Removed
"minimum-stability": "dev",
fromcomposer.json
3.0.0 - 2018-02-01
- The
StrictUnifiedDiffOutputBuilder
implementation of theDiffOutputBuilderInterface
was added
- The default
DiffOutputBuilderInterface
implementation now generates context lines (unchanged lines)
- Removed support for PHP 7.0
- #70: Diffing of arrays no longer works
2.0.1 - 2017-08-03
- #66: Restored backwards compatibility for PHPUnit 6.1.4, 6.2.0, 6.2.1, 6.2.2, and 6.2.3
2.0.0 - 2017-07-11 [YANKED]
- #64: Show line numbers for chunks of a diff
- This component is no longer supported on PHP 5.6