Changelog
phil/text-diff-bundlePas encore traduite
Cette page n’est pas encore traduite en français ; elle est montrée en anglais.
All notable changes to phil/text-diff-bundle will be documented in this file.
Updates should follow the Keep a CHANGELOG principles.
0.1.0-alpha - 2026-11-11
Added
PhilTextDiffBundleand thephil_text_diffconfiguration:max_edits, the bound of edits of a comparison;tokenizer, what thetext_difffilter compares by when the template names nothing; andhtml_sanitizer, the sanitizer of the HTML a template does not mark safe.TextDiffServices: the publicTextDiffservice, checking the blocks of a document difference with theNormalizerservice ofphil/ujo-bundlewhen it is installed, and the Twig extension reading documents with theUjoservice and rendering them with itsHtmlRendererservice.- The Twig filters
text_diff, two texts by words, lines, paragraphs or HTML, plain text escaped and HTML trusted only asTwig\Markup, sanitized or escaped otherwise; andtext_diff_document, two UJO documents, or their JSON, block by block. - The
comparisonStimulus controller,assets/src/comparison_controller.jsandassets/src/lib/marks.js: the inline, old and new views written asdata-text-diff-mode, the mode buttons pressed, the next and previous change marked, focused and brought into view, a replacement as one change, and a live counter; mapped for AssetMapper as@phil/text-diff-bundle. assets/styles/text-diff.css: insertions, deletions and the blocks of a document difference, the views and the current change, light and dark by the system ordata-theme, light on paper, its colours custom properties meeting the WCAG AA contrast, mapped for AssetMapper asphil-text-diff/text-diff.css.- The documentation in
doc/, one file per topic, indexed by the README. CONTRIBUTING.md,SECURITY.mdandCODE_OF_CONDUCT.md.