Skip to content

runtime: update diff and optional highlighting - #605

Merged
rtfpessoa merged 2 commits into
masterfrom
rodrigo/deps-published-runtime
Nov 28, 2026
Merged

rtfpessoa merged 2 commits into
masterfrom
rodrigo/deps-published-runtime

Conversation

@rtfpessoa

Copy link
Copy Markdown
Owner

🎥 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

  • Update diff to 9 and optional highlight.js to 11.12; retain Hogan and Node >=12.
  • Refresh the distinct development-only ts-node → diff copy within its allowed range.
  • Preserve CJS, ESM, declarations, and base/full/slim browser entry points.

⚠️ Merge Danger

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

  • Do any upstream Diff 9 or Highlight.js changes affect a supported entry point not covered by the consumer fixtures?

↪️ 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.

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.
@cloudflare-workers-and-pages

cloudflare-workers-and-pages Bot commented Nov 27, 2026 •

Copy link
Copy Markdown

Deploying diff2html with  Cloudflare Pages  Cloudflare Pages

Latest commit: f47a483
Status: ✅  Deploy successful!
Preview URL: https://b686e180.diff2html.pages.dev
Branch Preview URL: https://rodrigo-deps-published-runti.diff2html.pages.dev

View logs

@rtfpessoa
rtfpessoa marked this pull request as ready for review November 27, 2026 23:30
Base automatically changed from rodrigo/deps-website-build to master November 28, 2026 09:20
* 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>
@rtfpessoa
rtfpessoa merged commit fedf225 into master Nov 28, 2026
8 checks passed
@rtfpessoa
rtfpessoa deleted the rodrigo/deps-published-runtime branch November 28, 2026 09:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

1 participant