Repository navigation
runtime: update diff and optional highlighting - #605
Merged
Merged
Conversation
Adopt diff 9 and highlight.js 11.12 with the existing API, entrypoints and Node 12 runtime floor. Resolve the separate ts-node copy of diff to the patched compatible 4.0.4.
Deploying diff2html with
|
| Latest commit: |
f47a483
|
| Status: | ✅ Deploy successful! |
| Preview URL: | https://b686e180.diff2html.pages.dev |
| Branch Preview URL: | https://rodrigo-deps-published-runti.diff2html.pages.dev |
rtfpessoa
marked this pull request as ready for review
November 27, 2026 23:30
* commit '45b38e2648ab6a46160b6c7efd171b13a90a3933': ci: check the release tag before publishing ci: publish to npm with GitHub OIDC Signed-off-by: Rodrigo Fernandes <rodrigo.fernandes@datadoghq.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
🎥 Demonstration
The packed library and CLI were checked against real Git diffs in both layouts. Parsed JSON and rendered HTML outside embedded assets match the baseline. Four of 34 CLI screenshot/DOM cases change only because the new optional highlighter styles nested Git hunk headers.
🎯 Motivation
Bring the published runtime dependencies to current compatible stable versions without changing the entry points or required Node version.
📋 Summary
diffto 9 and optionalhighlight.jsto 11.12; retain Hogan and Node>=12.ts-node → diffcopy within its allowed range.The optional highlighter can add grammar styling; it remains optional for the root and base UI modules. The packed runtime was tested on Node 12.0.0, 12.22.12 and 24.22.3.
🔎 Expert review questions
↪️ Known deviations
Two baseline moderate dev-only Glob/Minimatch advisory pairs remain in Jest/Istanbul paths. Current parent ranges exclude patched majors and the production audit is empty.
🚧 Non-goals
No change to the declared Node floor, public API, or existing pull requests.