Releases: alecthomas/chroma
Releases · alecthomas/chroma
Release list
v3.0.0-alpha.5
Changelog
- 01c740b fix: use sync.OnceValue for FontLiberationMono
v3.0.0-alpha.4
Changelog
- 20d2910 docs: document remaining HTML formatter options in README
- 5557e83 chore: remove commented-out panic, allocate trace encoder lazily
- d5de026 docs: correct stale style and HTML formatter doc comments
- 7c759ac fix: stop Words mutating its callers' slices
- 879e833 fix: escape configured values in HTML attributes
- 8ee61c4 fix: case-normalise Counterpart lookups and serialisation
- 15997eb fix: forward SetTracing through Coalesce and RemappingLexer
- a69d1c0 fix: surface regex match errors instead of swallowing them
- 34ba3a7 fix: guard against zero-width match loops in the lexer
- 5b89a37 fix: clamp state-stack pops instead of panicking
- 17102ca feat: exit non-zero from chroma --check on tokenisation errors
- 06e404d refactor: embed Liberation Mono as a WOFF file, upgraded to 2.1.5
- 43196dc fix: skip nil emitters in UsingByGroup
- 3beda64 refactor: remove dead error variable in needRules
- 49190d1 fix: panic loudly if the fallback style is missing
- 1ccaeea fix: harden compressStyle and drop double compression
- b359e38 fix: honour --check when reading from stdin
- f19cf58 fix: do not fail on empty input with --fail
- 59a84fd fix: bound the lexer mutator loop instead of a broken guard
- 01c3eff fix: reject malformed colours in ParseColour
- d21c88c chore: remove unbuildable _tools/exercise and _tools/css2style
- 83da377 chore: remove obsolete pygments2chroma.hlb and hlb tool
- 07cb946 docs: document StandardTypes parent-class fallback
- 6a26849 docs: document registration concurrency contract
- bb6fb4a fix: propagate writer errors in SVG and TTY formatters
- 67e1502 refactor!: remove redundant Analyser interface
- 9cb2777 refactor: share playground rendering between chromad and WASM
- e4eafee refactor: move dns analyser into its XML definition
- 4a9a274 refactor: extract lexer config glob validation
- fbf2531 refactor: extract glob matching in LexerRegistry.Match
- 05563d0 fix: correct mistyped brown in ANSI2RGB colour map
- 3634696 refactor: share TTY attribute escape building
- caf24e9 refactor: extract shared token-type style lookup
- df666cd chore(deps): update all non-major dependencies (#1321)
- 4fa0add chore: delete stray test.jsonl
- cb55223 chore: remove commented-out config fields and dead comment
- eb17b23 chore: delete commented-out XML generation block in NewLexer
- ecca99e refactor!: remove unused Colours type
- 651478f refactor!: remove unused RecoveringFormatter
- 186adc4 fix: correct mistyped yellow in 8/16-colour TTY palettes
- f5dd141 fix: repair README language-table generation
- d0f6ed1 chore: tidy cmd module dependencies
- 7eff956 fix: correct SVG @font-face CSS syntax and MIME types
- 180daf7 fix: remove shadowed entries from 256-colour TTY tables
- a6b9dc7 refactor: remove redundant re-sort of styles in chromad
- bff8721 refactor: restore lineRanges sort.Interface implementation
- bcc0d8f refactor: replace deprecated ioutil.ReadAll with io.ReadAll
- b151274 refactor: replace math.Min/Max with builtin min/max
- 76cf6db refactor: replace sort package usage with slices/cmp
- 50f98ad feat: add HTML line prompts (#1319)
- 30b3d6c chore: add theme request link
- 37d03cd chore: route lexer requests to discussions
- 122e010 Add Astro lexer (#1296)
- deca444 feat(lexers): add Hurl lexer (#1298)
- c74f282 feat: add JQ syntax highlighting lexer (#1290)
- ff53760 formatters/html: drop -moz-tab-size and -o-tab-size prefixes (#1279)
- f106c56 chore(deps): update all non-major dependencies (#1297)
- f0e1def Quality: Unsafe type assertion in panic recovery will re-panic for non-error values (#1295)
- 4224e71 Add missing NameAttribute entry to github-dark.xml (#1294)
- f9a15c9 chore(deps): update all non-major dependencies (#1291)
- 35fadff chore(deps): update actions/checkout action to v7 (#1292)
- ad9051e chore: delete hcl lexer
v3.0.0-alpha.3
Changelog
- 900164f fix: use v3 version in cmd go.mod require lines
v2.27.0
Changelog
- a6d00fe fix(html): make mode class output opt-in via WithModeClasses
- f52d015 chore: some house-keeping
- f08a9ab chore: add fmt + test to BUILD.bit
- 6da8f88 fix(yaml): comments can be key-values (#1289)
- 67785a4 chore(deps): update all non-major dependencies (#1285)
- d9dd73f Add templ XML lexer (#1283)
- effffdb chore(deps): update all non-major dependencies (#1280)
- 03236a4 support for PostScript font files (#1282)
- e10d532 Fix YAML slash comments with colons (#1278)
v2.26.1
Changelog
- 56c7702 fix: downgrade go.mod version to 1.25
v2.26.0
Changelog
- a4d3f60 feat(chromad): use style counterparts for theme switching
- ce159e6 chore: migrate to new bit format
- 180ea9f perf(colour): replace Sprintf/ParseUint round-trip in NewColour with direct bit arithmetic (#1274)
- 68a08b0 docs: how to support dynamic theme switching
- 6fb9d92 feat(html): tag output with style mode
- a71fea3 feat(styles): add light/dark mode support
v2.25.0
Changelog
- c3826f0 chore: go mod tidy
- fb5bc39 fix: emit HTTP body tokens without Coalesce
- a3c2946 Improve Nu file detection (#1260)
- e841b1a chore(deps): update all non-major dependencies (#1272)
- 3ed2db8 Add Gemfile.lock lexer (& ruby improvements) (#1269)
- 41fb546 Add YAML+Jinja lexer (#1268)
- e99b881 chore(deps): update all non-major dependencies (#1263)
- e67dd2f (Markless) Fix parse issue for embed directives without options (#1266)
- dffa370 fix(go): tokenize trailing // as comment instead of consuming next line (#1265)
- 1cf1560 chore: upgrade to github.com/dlclark/regexp2/v2
- 2cbcf7b chore: upgrade golangci-lint
- 786675b chore(deps): update all non-major dependencies (#1257)
- 235590c feat: add JSONL support to JSON lexer (#1262)
- f9b5c97 fix(dart): match single-line comments without trailing newline (#1225) (#1261)
- 097f8e9 Mention Arturo in README (#1256)
- d46ce60 feat(markdown): highlight frontmatter and comments (#1245)
- f786b2a feat(lexers): add support for LilyPond (#1255)
- 0a02b98 chore(deps): update actions/checkout digest to de0fac2 (#1212)
- c55009e Fix AGENTS.md referencing a non-existent scripts directory (#1231)
- c5e763e Improve protobuf lexer (#1253)
- 113cd0e Add Arturo lexer (#1232)
- 4498d71 chore(deps): update dependency binaryen to v129 (#1238)
- 885f912 Added f4 to "Projects using Chroma" list (#1242)
- c42c9ef Update java lexer (#1254)
v2.24.1
Changelog
- d2a3784 fix: fallback bug
v2.24.0
Changelog
- 0b841ee chore: go mod tidy
- 10fcb68 chore(deps): update ubuntu docker tag to v26 (#1251)
- 2218de6 chore(deps): update all non-major dependencies (#1236)
- 2099887 Update Solarized Light to use correct background color (#1250)
- ce43442 Add Lateralus lexer (#1249)
- 2b00673 fix: commenting issues on gas lexer (#1247)
- 8d04def Add NameOther entry to github-dark theme (#1240)
- f2db790 chore(deps): update all non-major dependencies (#1234)
- fc18a48 Include embedded font license in COPYING file (#1233)
- e11ef85 chore(deps): update all non-major dependencies (#1211)
- 79e0fa7 Add ERB lexer (#1228)
- b59560d Add Spade lexer (#1229)
- 83b5491 Import Luau lexer (#1209)
- da72a97 Add JetBrains Darcula theme (#1226)
- 8087957 styles: case-insensitive style registration and lookup (#1223)
- 10daf04 Add
.json5to json Lexer (#1224) - dccba78 Add AMPL lexer (#1219)
- ee4ad0a Fix MySQL lexer single comment render error (#1214)
- b160804 Add
usingKeyword to JavaScript (#1215) - 17e5911 Pop type state when encountering punctuation for graphql (#1210)
- 893841b Show error message in chromad (#1208)
- fef8258 Fix error handling in
needRules()(#1207) - d8a3315 Update the PHP lexer (#1206)
- 353c35b Add the Kanagawa themes (#1198)
- 41448fe Update the Materialize lexer (#1201)
- 020d1c0 Add
.qrcas extension for XML (#1205) - 6a63b3a Add
meson.optionsas filename for Meson (#1204) - d398caf Import Gettext lexer (#1202)
- 43245c9 chore(deps): update dependency biome to v2.3.12 (#1200)
- 8215091 feat: add scdoc support (#1199)
- 3fce7ab chore(deps): update all non-major dependencies (#1188)