Skip to content

@astrojs/compiler-rs@0.4.0

Choose a tag to compare

@github-actions github-actions released this 10 Aug 22:45
· 11 commits to main since this release
e8364c1

Minor Changes

  • bc10d43: Adds a comments array to the AST returned by parse(), covering comments in the frontmatter, in <script> blocks, and in the template.
  • bc10d43: parse() now reports node and comment positions as UTF-16 offsets, so they line up with JavaScript string indices. Previously they were UTF-8 byte offsets, which drifted on any source containing non-ASCII characters.

Patch Changes

  • 90af674: Fixes an issue where a <script define:vars={...}> element lost all of its other attributes (such as data-astro-rerun, id, or nonce) in the compiled output.
  • Updated dependencies [90af674]
  • Updated dependencies [bc10d43]
  • Updated dependencies [bc10d43]
    • @astrojs/compiler-binding@0.4.0