Skip to content

Conversation

@renovate
Copy link
Contributor

@renovate renovate bot commented Aug 8, 2025

This PR contains the following updates:

Package Change Age Confidence
github.com/alecthomas/chroma/v2 v2.18.0 -> v2.20.0 age confidence

Release Notes

alecthomas/chroma (github.com/alecthomas/chroma/v2)

v2.20.0

Compare Source

Changelog

v2.19.0

Compare Source

Changelog


Configuration

📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).

🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.

Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

🔕 Ignore: Close this PR and you won't be reminded about this update again.


  • If you want to rebase/retry this PR, check this box

This PR was generated by Mend Renovate. View the repository job log.

@github-actions
Copy link
Contributor

github-actions bot commented Aug 8, 2025

Renovate PR Review Results

⚖️ Safety Assessment: ✅ Safe

🔍 Release Content Analysis

v2.20.0 Changes:

  • New Features: Improved tracing, new language lexers (Nu, Gemtext, Lox), CSS formatter option writeCSSComments
  • Bug Fixes: Markdown lexer delegation fix, ObjectPascal comment handling, Docker AS keyword parsing
  • Enhancements: Improved Go lexer, updated CSS properties, Catppuccin theme sync
  • Breaking Changes: None identified
  • Security Fixes: None mentioned

v2.19.0 Changes:

  • New Features: WASM playground, new language lexers (MoonScript, Core)
  • Improvements: Enhanced file type detection for Zig and Kotlin, compile-time lexer validation
  • Breaking Changes: None identified
  • Security Fixes: None mentioned

🎯 Impact Scope Investigation

Core Usage Analysis:

  • Primary Integration: internal/gat/gat.go:16,36-38 - Uses core Chroma types (chroma.Lexer, chroma.Formatter, chroma.Style)
  • Lexer Management: internal/lexers/lexers.go:6-7,36,44,51,55,61,64-65 - Uses Chroma's lexer registry and analysis functions
  • Style Management: internal/styles/styles.go:7-8,27,31,36-38,42 - Uses Chroma's style registry and XML parsing
  • Formatter Management: internal/formatters/formatters.go:4-5,8-9,13-14 - Uses Chroma's formatter registry

API Surface Analysis:
All Chroma APIs used in the codebase are stable public APIs:

  • lexers.Get(), lexers.Match(), lexers.Analyse(), lexers.Fallback
  • chroma.Coalesce(), chroma.NewXMLStyle()
  • styles.Register(), styles.Registry, styles.Names()
  • formatters.Registry, formatters.Names()

Dependency Impact:

  • Updated github.com/alecthomas/repr from v0.4.0 to v0.5.1 (internal dependency)
  • No changes to gat's direct API usage patterns

💡 Recommended Actions

Immediate Actions:

  • Merge Approved: The update can be safely merged
  • 🧪 Consider Testing: Run existing tests to verify functionality (optional but recommended)

Benefits of Update:

  • Access to new language lexers (Nu, Gemtext, Lox, MoonScript, Core)
  • Improved syntax highlighting for Go, Markdown, Docker, ObjectPascal
  • Enhanced CSS property support
  • Better tracing capabilities

No Migration Required:

  • All existing APIs remain backward compatible
  • No configuration changes needed
  • No code modifications required

🔗 Reference Links

@koki-develop koki-develop merged commit 99be01a into main Aug 9, 2025
5 checks passed
@koki-develop koki-develop deleted the renovate/github.com-alecthomas-chroma-v2-2.x branch August 9, 2025 04:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants