Skip to content

Releases: withastro/compiler-rs

v0.2.2

10 Jun 09:56
10a0c5a

Choose a tag to compare

Version Packages (#44)

@astrojs/compiler-rs@0.2.2

10 Jun 09:56
10a0c5a

Choose a tag to compare

Patch Changes

  • 6133672: Improved diagnostics when Astro sees a stray closing tag. Now Astro correctly shows the closing tag that doesn't match an open tag.
  • 23038db: Fixes compact: 'jsx' stripping significant same-line whitespace. JSX whitespace is now only trimmed where it borders a line break (matching React/Babel's rules), so a space at a text/expression, text/element, or element/element boundary is preserved. <h1>Page {n}</h1> now keeps its space (Page 1), as does <span>hello</span> <em>world</em>. Whitespace adjacent to newlines is still collapsed.
  • Updated dependencies [6133672]
  • Updated dependencies [23038db]
    • @astrojs/compiler-binding@0.2.2

@astrojs/compiler-binding@0.2.2

10 Jun 09:56
10a0c5a

Choose a tag to compare

Patch Changes

  • 6133672: Improved diagnostics when Astro sees a stray closing tag. Now Astro correctly shows the closing tag that doesn't match an open tag.
  • 23038db: Fixes compact: 'jsx' stripping significant same-line whitespace. JSX whitespace is now only trimmed where it borders a line break (matching React/Babel's rules), so a space at a text/expression, text/element, or element/element boundary is preserved. <h1>Page {n}</h1> now keeps its space (Page 1), as does <span>hello</span> <em>world</em>. Whitespace adjacent to newlines is still collapsed.

v0.2.1

21 May 11:48
e395344

Choose a tag to compare

Version Packages (#41)

@astrojs/compiler-rs@0.2.1

21 May 11:49
e395344

Choose a tag to compare

Patch Changes

  • eddd417: Fixes CSS scoping incorrectly adding a scope to &::pseudo-element selectors (e.g. &::marker, &::before) and to selectors that only reference & inside :is()/:where()/:not()/:has().
  • f4adcce: Fixes Unterminated string literal error when a quoted attribute on a component contains literal newlines (e.g. multi-line class).
  • ecb43d3: Fixes JSX not being transformed inside function declarations, class declarations and expressions, throw statements, and for-loop initializers.
  • Updated dependencies [eddd417]
  • Updated dependencies [f4adcce]
  • Updated dependencies [ecb43d3]
    • @astrojs/compiler-binding@0.2.1

@astrojs/compiler-binding@0.2.1

21 May 11:49
e395344

Choose a tag to compare

Patch Changes

  • eddd417: Fixes CSS scoping incorrectly adding a scope to &::pseudo-element selectors (e.g. &::marker, &::before) and to selectors that only reference & inside :is()/:where()/:not()/:has().
  • f4adcce: Fixes Unterminated string literal error when a quoted attribute on a component contains literal newlines (e.g. multi-line class).
  • ecb43d3: Fixes JSX not being transformed inside function declarations, class declarations and expressions, throw statements, and for-loop initializers.

v0.2.0: Version Packages (#32)

12 May 03:39
00e0740

Choose a tag to compare

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>

@astrojs/compiler-rs@0.2.0

12 May 03:39
00e0740

Choose a tag to compare

Minor Changes

Patch Changes

  • 0bddba4: Fixes Unexpected token error when an HTML attribute has an unquoted value such as a number (<input maxlength=255>) or contains characters like - or #.
  • Updated dependencies [0bddba4]
  • Updated dependencies [0726e00]
    • @astrojs/compiler-binding@0.2.0

@astrojs/compiler-binding@0.2.0

12 May 03:39
00e0740

Choose a tag to compare

Minor Changes

Patch Changes

  • 0bddba4: Fixes Unexpected token error when an HTML attribute has an unquoted value such as a number (<input maxlength=255>) or contains characters like - or #.

v0.1.10: Version Packages (#30)

24 Apr 14:57
2709302

Choose a tag to compare

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>