v7.14.1
Fixes
- revert shared highlighter implementation (892f2d3)
- fix published
sideEffectsglobs to match the packaged file layout (35b4669) - export pure-JS modules with a default condition for broader consumer compatibility (edba856)
- preserve multi-line highlight spans in
LineNumbers(0f91d15) - size the
LineNumbersgutter using the final line number (ee46213) - remove lookbehind regexes for older-engine compatibility (89eef0b)
- improve
sveltegrammar for dotted Svelte 5 rune suffixes and typed rune calls (a9b08be, 7687177) - improve
soliditygrammar for themulmodbuiltin (9ebc45c) - improve
kqlgrammar for dotted hint keywords (0aac646) - improve
ziggrammar foranyopaqueand duplicatefnhandling (ea1b634) - improve
justgrammar to emit v11 scopes for directives (00e5ec8) - improve
astrogrammar by anchoring frontmatter to the document start (4cffa14) - improve
hclgrammar by matching heredoc delimiters exactly (ca8ace1)
Packaging and compatibility fixes
This patch release focuses on shipping fixes for package consumers and tightening compatibility across more runtimes.
The published package now uses corrected sideEffects globs so bundlers can match the packaged file layout accurately, and pure JavaScript modules are exported with a default condition for better interoperability in downstream tooling.
A prior refactor that extracted a shared highlighter primitive was also reverted before release. That keeps the runtime behavior aligned with the established implementation while the packaging fixes land cleanly.
LineNumbers rendering fixes
LineNumbers now handles two rendering issues more accurately:
- multi-line highlight spans are preserved instead of being broken across numbered lines
- the gutter width is sized from the final line number, so alignment stays stable for longer snippets
These changes improve visual correctness without changing the public API.
Grammar fixes
Several bundled grammars received focused fixes in 7.14.1:
sveltenow highlights dotted Svelte 5 rune suffixes and typed rune calls more accuratelysoliditycorrectly recognizes themulmodbuiltinkqlmatches dotted hint keywordszigaddsanyopaquesupport and avoids duplicatefnhandlingjustemits modern v11 scopes for directivesastrofrontmatter is anchored to the start of the documenthclmatches heredoc delimiters exactly
This release also removes lookbehind regexes from language patterns that used them, improving compatibility with older JavaScript engines and environments that do not fully support regex lookbehind.