Skip to content

feat(deps): update chroma to v2.27.0 and other dependencies - #294

Merged
koki-develop merged 1 commit into
mainfrom
claude/project-thread-7zci4o
Nov 27, 2026
Merged

koki-develop merged 1 commit into
mainfrom
claude/project-thread-7zci4o

Conversation

@koki-develop

Copy link
Copy Markdown
Owner

Before: gat highlights with chroma v2.24.1, renders Markdown with glamour v0.10.0 and draws images with go-sixel v0.0.9, and uses minify v2.24.13 and testify v1.11.1. CI pins actions/checkout v6.0.2, actions/cache v5.0.5 and jdx/mise-action v3.5.1, the docs and demo workflows use create-pull-request v7.0.11, the release workflow uses release-please-action v4 and create-github-app-token v2, and mise.toml pins vhs 0.9.0.

After: gat builds with chroma v2.27.0, glamour v1.0.0, go-sixel v0.0.14, minify v2.25.0 and testify v1.12.1, and every workflow pins the latest action releases (for jdx/mise-action, the latest release that is at least 7 days old, which is Renovate's minimum release age). mise.toml pins vhs 0.12.1.

What users see:

  • In Go, a // with nothing after it (an empty // line, or a trailing // after code such as "bar", //) no longer turns the next line into a comment.
  • Gemfile.lock (and *.gemfile.lock), *.jsonl, Templ, LilyPond, Arturo and YAML+Jinja files are highlighted, and so are the Ruby files Appraisals, .pryrc, *.gemfile and *.json.jbuilder and the PostScript files *.epsf, *.epsi, *.pfa and *.t42. Markdown front matter and HTML comments are highlighted, and the protobuf, Dart, HTTP and Markless lexers get fixes. Scripts that start with #!/usr/bin/env nu are detected as Nu, and -l accepts the names of the new languages and new aliases such as jsonl, salt and ansible (see docs/languages.md).
  • *.sls files are read as YAML+Jinja (Salt states). R6RS Scheme libraries with the .sls extension, which were highlighted by content detection, now show each line in a single color.
  • Go whose language is detected from its content (read from stdin, or a file without a known extension) is detected as Templ when a line, indented or not, starts with templ (for example a variable named templ). It is then highlighted as Templ, and where it was detected as Go before, -p no longer runs gofmt on it.
  • In Java, words such as to, with, uses and requires are highlighted as keywords even where they are used as identifiers.
  • The gruvbox and gruvbox-light themes color namespaces, such as os in import os.
  • YAML: chroma's YAML lexer now ends a key at the first : and does not let a key contain # or //.
    • // and the rest of the line is highlighted as a comment.
    • A trailing comment after a value, as in labels: [] # note: x, is highlighted as a comment instead of being split at its :.
    • When a value contains : , as in k: 'a: b' or the flow mapping k: {a: 1, b: 2}, the key ends at the first :, and the text from there to the next : (such as 'a in k: 'a: b') is highlighted as a key too. Before, the whole text up to the last : was one key.
    • A key that contains #, such as C#:, is no longer highlighted as a key. The whole line is shown in one color.
  • -p on a *.jsonl file with a single record now pretty-prints it as JSON over several lines, because *.jsonl maps to the JSON lexer. A file with more than one record is printed as is, as before.
  • Images: transparent pixels show the terminal background instead of black, and sixel output is smaller and faster (a 1000×1000 transparent PNG: 257 KB to 173 KB, 0.61 s to 0.10 s). Color quantization changes slightly.
  • -M renders Markdown as before. With -M -c, code blocks follow the highlighting changes above.
  • --mask-secrets output is unchanged.
flowchart LR
  subgraph gat
    H[highlighting] --> C[chroma v2.27.0]
    M[-M] --> G[glamour v1.0.0]
    I[images] --> S[go-sixel v0.0.14]
    N[*-min formats] --> Mi[minify v2.25.0]
  end
  subgraph CI
    W[workflows] --> Co[checkout v7.0.1]
    W --> Se[setup] --> Mise[mise-action v5.2.10] --> T[mise.toml: vhs 0.12.1]
    Se --> Ca[cache v6.1.0]
    R[release-please.yml] --> RP[release-please-action v5.0.0]
    R --> AT[create-github-app-token v3.4.0]
    D[update-docs.yml, update-demo.yml] --> CPR[create-pull-request v8.1.3]
  end
Loading

How:

  • Go modules: chroma v2.24.1 to v2.27.0, glamour v0.10.0 to v1.0.0, go-sixel v0.0.9 to v0.0.14, testify v1.11.1 to v1.12.1 and minify v2.24.13 to v2.25.0, then go mod tidy. No gat code changes were needed.
  • Actions, pinned by commit SHA: checkout v7.0.1, cache v6.1.0, mise-action v5.2.10 (experimental: true is kept), release-please-action v5.0.0, create-github-app-token v3.4.0 and create-pull-request v8.1.3. create-github-app-token v3 deprecates the app-id input, so the release job passes the same secret as client-id, which v3 accepts as either a client ID or an App ID.
  • mise.toml: vhs 0.9.0 to 0.12.1. The tapes pass vhs validate.
  • docs/languages.md is regenerated with go run ./docs/update.go.

This supersedes #283 and #270.

Checks run locally: go test ./..., golangci-lint 2.15.0 (0 issues), actionlint, goreleaser check and a snapshot build, and a comparison of output against a build of main.


Generated by Claude Code

Go modules:
- github.com/alecthomas/chroma/v2 v2.24.1 -> v2.27.0
- github.com/charmbracelet/glamour v0.10.0 -> v1.0.0
- github.com/mattn/go-sixel v0.0.9 -> v0.0.14
- github.com/stretchr/testify v1.11.1 -> v1.12.1
- github.com/tdewolff/minify/v2 v2.24.13 -> v2.25.0

GitHub Actions:
- actions/checkout v6.0.2 -> v7.0.1
- actions/cache v5.0.5 -> v6.1.0
- jdx/mise-action v3.5.1 -> v5.2.10
- googleapis/release-please-action v4.4.1 -> v5.0.0
- actions/create-github-app-token v2.2.2 -> v3.4.0 (app-id -> client-id)
- peter-evans/create-pull-request v7.0.11 -> v8.1.3

Tools: vhs 0.9.0 -> 0.12.1

docs/languages.md is regenerated for the languages chroma v2.27.0 adds.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@koki-develop
koki-develop merged commit 1d4657e into main Nov 27, 2026
6 checks passed
@koki-develop
koki-develop deleted the claude/project-thread-7zci4o branch November 27, 2026 22:15
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