Skip to content

v7.14.1

Choose a tag to compare

@metonym metonym released this 07 Jul 02:11
· 561 commits to master since this release
v7.14.1
67e18c2

Fixes

  • revert shared highlighter implementation (892f2d3)
  • fix published sideEffects globs 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 LineNumbers gutter using the final line number (ee46213)
  • remove lookbehind regexes for older-engine compatibility (89eef0b)
  • improve svelte grammar for dotted Svelte 5 rune suffixes and typed rune calls (a9b08be, 7687177)
  • improve solidity grammar for the mulmod builtin (9ebc45c)
  • improve kql grammar for dotted hint keywords (0aac646)
  • improve zig grammar for anyopaque and duplicate fn handling (ea1b634)
  • improve just grammar to emit v11 scopes for directives (00e5ec8)
  • improve astro grammar by anchoring frontmatter to the document start (4cffa14)
  • improve hcl grammar 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:

  • svelte now highlights dotted Svelte 5 rune suffixes and typed rune calls more accurately
  • solidity correctly recognizes the mulmod builtin
  • kql matches dotted hint keywords
  • zig adds anyopaque support and avoids duplicate fn handling
  • just emits modern v11 scopes for directives
  • astro frontmatter is anchored to the start of the document
  • hcl matches 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.