diff --git a/changelog.md b/changelog.md index e37692c..836fe92 100644 --- a/changelog.md +++ b/changelog.md @@ -1,140 +1,412 @@ -# changelog - -## next - -* Refactored HTML Inline renderer to HTML Unified. - -* The non table unified renderer is cut from the code. - -## 2.3.0 (2020-11-19) - -* Add: Change log. - -* Fix: Html SideBySide renders equal lines of version 1 at both sides (Option - ignoreCase). - -* Fix: Second parameter of string repeat function minimizes to 0. - -* Fix: #60 - Unified Cli renderer options incompatible with Main renderer - options - -* Fix: #64 - Calculation of maxLineMarkerWidth independent of input format. - -* Add: Similarity calculation - -* Add: New marking levels for inline differences - -* Add: Html merged renderer - -## 2.2.1 (2020-08-06) - -* Fix: #58 - Side by side diff shows empty diff - -## 2.2.0 (2020-07-23) - -* Add: Option for a custom override renderer. #53 - -* Add: No output when there are no differences between the compared strings / - files. #52 #54 - -## 2.1.1 (2020-07-17) - -* Fix: #50 - Renderers produce output with equal texts, while they shouldn't. - -## 2.1.0 (2020-07-13) - -* Add: Cli uncolored output. This allows it to be piped. - -## 2.0.0 (2020-07-09) - -* Add: Unified Commandline colored output. -* Change: switch to semantic versioning. - -## 1.18 (2020-07-01) - -* Add: A dark theme to the example. -* Fix: Avoid variables with short names (some). - -## 1.17 (2020-06-08) - -* Fix #32 - Side by side diff shows only partially all deleted lines. - -## 1.16 (2020-03-02) - -* Features - * Add: option trimEqual. - -* Fixes - * Fix PHPMD Violation. - * Code Optimization, cleanup, refactoring and commenting. - -## 1.15 (2020-01-24) - -* Add: New Unified HTML. -* Fix: Code clean up. - -## 1.14 (2019-12-03) - -* Fix: Remove some old dead code. - -## 1.13 (2019-10-08) - -* Change: Switch to PSR12. - -## 1.12 (2019-03-18) - -* Change: Update Composer Configuration. -* Fix: PSR-2 conventions. - -## 1.11 (2019-02-22) - -* Fix: Code clean up. -* Fix: Composer autoloader for unit tests. - -## 1.10 (2019-02-20) - -* Fix: Code clean up. - -## 1.9 (2019-02-19) - -* Fix: Code clean up. - -## 1.8 - -* Change: Update Readme and bumping versions. - -* Fix: Moved include of Autoloader from the constructor to global space for - HtmlArray unit test. - -## 1.7 - -* Fix: PSR-2 code alignment. - -## 1.6 - -* Change: Bump required version of PHP to v7.1. -* Add: Return type hinting. - -## 1.5 (2019-01-15) - -* Fix: Autoloader naming issues. - -## 1.4 (2019-01-14) - -* Add: PSR-4 namespace support. - -## 1.3 (2019-01-11) - -* Fix: PHP methods contained too much logic. That has been simplified. - -## 1.2 (2018-01-23) - -* Add: Support for custom titles. - -## 1.1 (2017-05-06) - -* Fix: Wrong highlight area for chinese characters. - -## 1.0 - -* Initial version. +# Changelog + +## Upcoming changes (Undetermined) + +* Add DigiLive/gitChangelog for change log generation (0a6a84f) +* Bump library version (013f862) +* Cut HTML Unified Renderer (1ba255f) +* Document PhpUnit Similarity Test (7ec484c) +* Document Update Changelog (1646605) +* Document disabled inspection (909e195) +* Document generateLinesEqual() (8a193c9) +* Document methods (94c8bd5) +* Fix #83 - Lines not properly marked (6fcafe1) +* Fix HTML Merged Renderer (07da484) +* Fix constructor DocBlocks (b13ff84) +* Fix html syntax error (11ec623) +* Fix namespace and unused code (77a7b59) +* Fix probably undefined variable (3954a2b) +* Fix property visibility and method docBlocks (3bc0839) +* Fix property visibility and unused code (34a032f) +* Fix redundant and unused code. (73f6776) +* Refactor HTML Inline Renderer to HTML Unified (cf516d1) +* Refactor callbacks and if/else expressions. (79d989d) +* Refactor if/else statements (5ba19f7) +* Refactor static method calls to non-static (035cd33) +* Reformat library code (8e9735f) +* Require PHPUnit 8 or 9. (0bd0bd2) +* Update Key words (5bd040c) +* Update changelog.md (fb50095) +* add phpunit config file (7382ee8) +* exclude not needed files for zip / composer export (08c9244) +* keep assets for readme file (8edb202) +* upgrade required PHP version to 7.3 (8962a2b) + +## v2.3.0 (2020-11-19) + +* Add Html Merged renderer. (d70eaf6) +* Add PhpUnit test for html merged renderer (4512c03) +* Add calculation for similarity ratio. (3e4bbe6) +* Add choosing marking levels to html example (c27035a) +* Add new marking levels for inline differences (75358da) +* Document properties and constructor (6c95ccd) +* Fix: Html SideBySide renders equal lines of version 1 at both sides. (ccfc465) +* Fix Merged::generateLinesReplace() (cef85b5) +* Fix PSR-4 Auto loading Typo (6e2ad47) +* Fix PhpUnit test (3ccaa10) +* Fix Undefined offset notice (b10fd38) +* Fixes #64 - maxLineMarkerWidth only calculated for input format plain. (c5f6d72) +* Fix generateBlockHeader docBlocks (b5cfbd5) +* Fix visibility of removed lines (ec0918b) +* Refactor sample text (6b9661c) +* Simplify code (276d84d) +* Simplify options merge (24c8bb9) +* Update Changelog Increase version number (a4e5058) +* Update changelog.md (491d539) +* add changelog (4b7a56f) +* add changelog to Readme file (09aea70) +* add date (c64c0cc) +* add declaration (cff7db1) +* add wiki links to README.md (ccd5a6d) +* change cli colors option from simple to true (38864db) +* check only if option is set (98781fd) +* check type of option (fbccaf4) +* correct typos (df270f5) +* github markdown urls should not contain ")" (1a71822) +* if option is true, not only if it is set (8098c71) +* merge options instead of set them directly (0e3fd21) +* update README file (0a16fd1, eb382fa) +* update changelog (98ac4c5) + +## v2.2.1 (2020-08-06) + +* Fix #58 - Side by side diff shows empty diff (0946d59, 369b146, 02695d5) +* add to dev for unit tests (acd12cb) +* make jblond/php-cli optional (0346948) +* pcre is needed (147b89e) +* return direct from isset (0822804) +* update readme file (2bb7a09) +* update version number (e6812d0) + +## v2.2.0 (2020-07-23) + +* Change rendering flow. (c323f77) +* Fix code quality. (0ef6def) +* Resolve #52 and fixes. (2be0c51, fda4852) +* add line for readabiltity (e28511b) +* increase version number for the next release (6acb81e) + +## v2.1.1 (2020-07-17) + +* Fix #50. (47d6288) +* add unit test for cli output (0c75757) +* correct typo (4f2b31a) +* increase version number for #50 bug fix release (eda111b) +* move images to assets directory (fbea75e) +* remove empty line (65f2aa4) +* remove second empty last line (af5b2c5) +* update doc (8555fdd, 66e8de5) +* update doc in unit test (7ec0dbb) + +## v2.1.0 (2020-07-13) + +* Following up #42. (f3a8f0d) +* add plain output for cli (d7bbe12) +* follow up https://github.com/JBlond/php-diff/pull/42 (8586225) +* refactor variable names (b48cbe6) +* remove not used variable (1ecdac5) +* remove output example (89602af) +* remove some complexity (a1e61fb) + +## v2.0.0 (2020-07-09) + +* Add Cli color support (4192d8b) +* Add dark theme example (6f41894) +* Add example picture (ee37a28) +* Correct typo in wording (99150a4) +* Hide images by default, to have a shorter readme (5cd9113) +* Update README.md (bae640e, 9c4e77c) +* Update README.md Requirements (fe63c57) +* Update background color (3d82cd2) +* add composer scripts descriptions. Update key words (6bfd4f9) +* add missing tag from merge (639f3cc) +* adjust color (ae6cfe4) +* a new line for each change (12950b2, d3b5ec9) +* change composer require for package (ede59fb) +* correct some markdown warnings in README.md (d3de726) +* increase version number (f44ee81) +* reduce Cyclomatic Complexity (8fcc5fb) +* remove Autoloader.php and have only the one from composer (7a49d76) +* remove from merge conflict (d00d224) +* resize image (e1126f5) +* revert that change (e93d249, f1d90c2) +* show one picture as a preview (ab6eb28, 606ff22) +* update Readme (7e6e125) +* update example with full class path (37088ab) + +## v1.18 (2020-07-01) + +* Avoid variables with short names (70e327b) +* add author (e132cdb) +* add dark theme example (b9d0ef6) +* ignore phpstorm settings (19bdb97) +* increase version number (69b7e07) +* remove exclude (cac11d6) + +## v1.17 (2020-06-08) + +* Code Fixes. (dd07685) +* Fix issue #32. (7ef67e6) +* Property initializer is redundant (bbd3f38) +* Update LICENSE (8c2c88a) +* change to new array format (1da5da2, 2090f98) +* chris did not add this file at all (dc68ae0) +* fix typo in phpdoc (db259fc) +* increase version number for release (5912a3f) +* remove used property (6de7325) +* update readme example (217c513) +* use SPL (0466227) + +## v1.16 (2020-03-02) + +* Add composer package PHP Mess Detector v2.* (3e527d1) +* Add contributor to author lists. (4c2cbb7, c11b4ba) +* Add trimEqual option. (98d993e) +* Add types of elements for renderer (4d1b4a0, 83b4104) +* Change example texts. (cd653c2) +* Code Optimization, cleanup, refactoring and commenting. (c29a8aa, 0e230e3) +* Code fixes, optimization, cleanup, refactoring and commenting. (54892e1) +* Fix PHPMD Violation. (5d03eae) +* Fix expected value for HtmlRendererTest::testUnified() (fbda2bd) +* Line exceeds 120 characters; contains 121 (0b3dea0) +* Remove formatting of "collapsed block" indicator. (3d33000) +* Update README.md (b2dd9e9, 43ba9e0) +* import (66af1f7) +* phpmd warning: The method render uses an else expression (df413d4) +* remove TODO warning (55a4eba) +* remove some warnings from https://insight.symfony.com/projects/aa609edb-cdb1-45cf-ad51-afbdab48f6a1/analyses/56 (2fe16f9) +* update Version number (f8d5fe2) + +## v1.15 (2020-01-24) + +* Code Fixes, Optimization, cleanup, refactoring and commenting. (78a1658) +* Code Fixes. (d1c724c) +* Code Optimization, cleanup, refactoring and commenting. (7748252, c017af5, c984365, 6bc3f7c, 0d8c872) +* Code Style Fixes. (5e7ddf3) +* Code cleanup, bumped required PHP version to >= 7.2 and updated readme. (71b63a1) +* Code commenting. (e6cd9e0) +* Code reformatting and minor optimization, Typo fixes (7f87ce3, 3a1c258) +* Correct paths for composer run-script phpunit (6bfc5e7) +* HTML Unified Renderer added, Code optimization, cleanup and commenting. (0c5e1a4) +* PHPUnit test added for diff-view renderers. (122a72c) +* PHPUnit test for HTML Unified Renderer added. (611dc21) +* PSR12 fixes (e227356, 2a01869) +* PSR12.Files.DeclareStatement (7c75b07) +* Preperation for local developement. (4352698) +* Update PHPUnit tests (3b2c367) +* fix notation (795fe20) +* ignore composer lock file (ec0e0a6) +* raise version number (9700db7) +* remove blank line (35cd1eb) +* remove list, but use an array (aed258f, 84941b3) +* valid html can have no white space before the first tag (42b1ace) + +## v1.14 (2019-12-03) + +* prepare 1.14 (fab2a43) +* remove unused function (49e2c3a) +* some code clean up (1cc43c3) + +## v1.13 (2019-10-08) + +* Use PSR 12 (039fab0) +* prepare 1.13 (1cdd3dc) +* update phpunit (d883a00) + +## v1.12 (2019-03-18) + +* PHP Mess Detector Avoid unused private methods such as '__autoload'. even if not correct (e0f6842) +* add more files to .gitignore (27b21eb) +* add phpunit test to composer (e8a3f71) +* add tests (6d165a6) +* increase version number (f755fce) +* remove BOM (1dd40d8) +* remove files from .gitignore (2f11a9d) +* tabs vs space (745b331) +* update Readme with example code (3396d35) + +## v1.11 (2019-02-22) + +* avoid short variable names (5d07754) +* increase version number (aa4cf3b) +* license is in an external file. (7468872) +* remove dead code (5ad1cb3) +* remove idea (0f27cc1) +* update (93663b5) +* update composer file (autoload) (288f33c) +* update doc (8c56a2d) +* update example (718ec11) +* update phpdoc (33f71f1) + +## v1.10 (2019-02-20) + +* PSR2 indention (ef0f9ae) +* avoid short variable names (f75c870, 8a699ef, e940dd9, 7482c2b, 0a7fff5) +* avoid short variable names fix codacy warnings (4428ffe) +* fix codacy warnings of unused functions (8037d99) +* fix example (9207f73) +* ignore ide files (cd49cec) +* increase version (8e72ea7) +* remove else (3af88d2) +* remove unsued function (96f028c) +* update example (c6977f3) +* update package names (f21937d) +* update readme (247ddb1) + +## v1.9 (2019-02-19) + +* add comment like in the other file (8b68a5d) +* add stronger type hinting (3a6ef42) +* deduplicate render code (5967e91) +* increase version number (8f19707) +* lib\jblond\Diff\SequenceMatcher.php:622 PhanTypeMismatchDimFetch When fetching an array index from a value of type array|array{}, found an array index of type '0', but expected the index to be of type int (1c537ff) +* longer variable names (68e517a) +* stronger type hinting (9cc5cfb) + +## v1.8 (2019-02-13) + +* PSR1.Files.SideEffects.FoundWithSymbols (7699e4f) +* Revert "PSR1.Files.SideEffects.FoundWithSymbols" make unit test work again (5231883) +* change PHP version (d36ca2b) +* fix test (b4cfce1) +* increase version number (7d22093) +* refer to License file (6311fd4) +* relative path to pictures (3df01cc) +* short variable name (7c62963, c8ec74b) +* update version string (5d22b81) + +## v1.7 (2019-01-19) + +* add code sniffer PSR2 file (6fa3c76) +* adding curly brackets (148e787) +* done. support for PSR4 is given (aea2437) +* fix PSR1.Files.SideEffects.FoundWithSymbols (fe21917) +* fix tabs (354bf5c) +* remove useless use import (4113efe) +* return type match (53502f2) +* tabs vs space (f326877) + +## v1.6 (2019-01-19) + +* EOF (bb7b472, 77323c6) +* Fix warning with PHP 7.2 when trying to count NULL (fe69c4f) +* PSR2 (4579c63) +* add ci file (add8165) +* add dock block (2aafad1) +* add unit tests (0db511d) +* brace on a new line (a850718) +* code formating (39d6dbd) +* correct type hint warnings (e0cc8c3) +* fix tests (44a6ab0) +* follow PSR2 rules (a8adfcb) +* follow PSR2 rules except tabs vs space (e7830fd) +* increase required PHP version (0c3fd1a) +* increase version number (ea70fdf, 3b2b9e7) +* remove floor function. Thanks jfcherng for the hint (5327190) +* update (9509231, 2416e52, 277c3b4) +* update to PHPUnit 7 (2ee25e3) +* updatew (501d061) +* use XML (be786d3) +* use elseif, not else if (6f057bf) +* use strict types (c53c230) + +## v1.5 (2019-01-15) + +* remove require_once, use only autoloader (4623f1b) + +## v1.4 (2019-01-14) + +* Add PSR4 autoloader (bda1da9) +* Update README.md (ea93fb9) +* add badge (0fac082) +* add keywords (e64716d) +* add name spacing (1d15164) +* increase version (6500c97) +* remove debug line (62b01c5) +* rename files (b4769cf) +* shorten code (87edbec) + +## v1.3 (2019-01-11) + +* Fixed lengths of functions (3591789) +* Fix some typos (5ca2257) +* Update README.md (fdfc17a) +* added missing doc block (c6f3745) +* add lang to html (1623626) +* add second image (176b647) +* change readme (94defe0) +* increase version number (89f7feb) +* optional parameters should be the last parameter (18e0b93) +* packagist.org warning (ca954c3) + +## v1.2 (2018-01-23) + +* Handle side by side title customization (d620b8c) +* Update README.md (8515967) +* added example code from https://github.com/JBlond/php-diff/issues/1 (258b976) +* add image to README.md (0432f78) +* update copyright (14b612c) +* update example (980c7da) + +## v1.1 (2017-05-05) + +*   is not HTML5 valid (4804307) +* Add ability not to expand tabs (f5da126) +* Added note about https://github.com/Xiphe/jQuery-Merge-for-php-diff (2ebc51f) +* Add in working ignoreWhitespace and ignoreCase options (self-describing), fix up an issue where a diff of two files exactly the same would show the last $context lines, general cleanup (690419d) +* Add mbstring extension as package dependency (a929467) +* Add missing docblock. Rename isLineDifferent to linesAreDifferent (516c4be) +* Fix ' (c81931f) +* Fix an issue with insertions being skipped. (b13d23d) +* Fix links (2c38d0e) +* Fix tab expansion and deprecated preg_replace use on fixSpaces. (f0aba03) +* Fix the ignoring of option context (60de296) +* HTML5 (ded9951) +* Make `Diff_Renderer_Html_Array::formatLines` method protected (a44f99d) +* Make `Diff_Renderer_Html_Array::formatLines` method protected https://github.com/chrisboulton/php-diff/pull/26 (0bc8fa4) +* Rename README to README.md (d9242f7) +* Replace the substring with multi byte (19a92b3) +* Support for PHP 5.5 and above https://github.com/chrisboulton/php-diff/pull/25 (22822bb) +* This function has never been used (b3b089c) +* UTF-8 (1139134) +* Update LICENSE file new line at the end (d42578a) +* Update README.md (8ca3a1e) +* User specific files should not appear in .gitignore (af6fe2e) +* add composer file (be8dc58) +* added ' (09d0c4c) +* added License (3b5b338) +* added widget (d1a5e18) +* adding composer manifest to distribute as a library (9083bd6) +* add missing doc blocks (d3b9a63) +* bug fix https://github.com/chrisboulton/php-diff/pull/21 (a9b8ef7) +* clean ' (bf2398c) +* clean up (f1d7fdc) +* correct line number https://github.com/chrisboulton/php-diff/pull/23 (25905e7) +* created License (7cb8e63) +* end with a new line (b433ddb) +* end witha new line (b660567) +* example files Chinese (f63f3d6) +* fullBCount wasn't declared (f99d93b) +* get rid of PHP warning when custom options are not set (bf3353c) +* issue catch from https://github.com/one2/php-diff/commit/784ff858c3b1d46d98c42a43673c07674fc2cd5e (47cae23) +* matchingBlocks wasn't declared (e0ff768) +* no composer (de3e02e) +* not a valid email (358d10c) +* only the chinese line (cb6e774) +* opCodes wasn't declared (c19f1d6) +* some fixing (0ef9663) +* superfluous closing tags (dfca0df) +* syntax error (7650451) +* try to fix "Wrong highlight area in Chinese" (4c1bb37) +* unused function (c8efb81, 4ffd751) +* update (09b54e4) +* updated to my repo (c9c4c99) +* update json file (b587d23) +* update phpdoc block (edc62b4) +* use index instead of an assumption of a constant (5d8ade8) +* visibility (d3eb3ab) + +## v1.0 (2010-03-11) + +* Initial import (ac22200) +* Redo directory structure to match current coding style, rename classes to match directory style, fix up naming conventions (5c5c179) diff --git a/generateChangelog.php b/generateChangelog.php new file mode 100644 index 0000000..e73f3f9 --- /dev/null +++ b/generateChangelog.php @@ -0,0 +1,13 @@ +build(); +} catch (Exception $exception) { + echo $exception->getMessage(); +} +$changeLog->save('changelog.md');