Skip to content

Releases: withastro/compiler

@astrojs/[email protected]

08 Feb 10:19
f167a98
Compare
Choose a tag to compare

Patch Changes

  • 8cae811: Fixes an issue with the conditional rendering of scripts.

    This change updates a v5.0 breaking change when experimental.directRenderScript became the default script handling behavior. If you have already successfully upgraded to Astro v5, you may need to review your script tags again and make sure they still behave as desired after this release. See the v5 Upgrade Guide for more details.

  • 970f085: Fixes an issue when parsing elements inside foreign content (e.g. SVG), when they were inside an expression

  • 6b6a134: Fixes a bug caused by having an extra space in the fragment tag in the TSX output

@astrojs/[email protected]

14 Aug 11:26
71fb3ef
Compare
Choose a tag to compare

Patch Changes

  • 5d0023d: Fixes sourcemapping for CRLF line endings wrongfully including the last character
  • f55a2af: Resolves an issue where the class:list directive was not correctly merging with the class attribute.

@astrojs/[email protected]

06 Aug 16:07
1c01c72
Compare
Choose a tag to compare

Patch Changes

  • f05a7cc: Adjust TSX output to return ranges using UTF-16 code units, as it would in JavaScript

@astrojs/[email protected]

31 Jul 15:56
b9b0b6a
Compare
Choose a tag to compare

Patch Changes

  • 21b7b95: Revert the transformation of top-level returns into throws in TSX as it was buggy in numerous situations
  • af471f5: Fixes positions for extracted tags being wrong when using IncludeStyles and IncludeScripts set to false

@astrojs/[email protected]

30 Jul 12:43
f31a4ea
Compare
Choose a tag to compare

Minor Changes

  • 1d684b1: Adds detected language to extracted style tags in TSX

Patch Changes

  • 7fa6577: Transform top level returns into throws in the TSX output

@astrojs/[email protected]

17 Jul 17:50
2e95e17
Compare
Choose a tag to compare

Patch Changes

  • a765f47: Escape script tags with unknown types

@astrojs/[email protected]

16 Jul 13:46
5c9f30f
Compare
Choose a tag to compare

Patch Changes

  • 9549bb7: Fixes style and script tags sometimes being forcefully put into the body / head tags in the AST

@astrojs/[email protected]

16 Jul 13:38
d1ba06d
Compare
Choose a tag to compare

Minor Changes

  • 3e25858: Adds two new options to convertToTSX: includeScripts and includeStyles. These options allow you to optionally remove scripts and styles from the output TSX file.

    Additionally this PR makes it so scripts and styles metadata are now included in the metaRanges property of the result of convertToTSX. This is notably useful in order to extract scripts and styles from the output TSX file into separate files for language servers.

  • 9fb8d5d: Adds serverComponents metadata

    This adds a change necessary to support server islands. During transformation the compiler discovers server:defer directives and appends them to the serverComponents array. This is exported along with the other metadata so that it can be used inside of Astro.

@astrojs/[email protected]

09 Jul 13:49
092b91b
Compare
Choose a tag to compare

Patch Changes

  • 6b7c12f: Avoids stringifying undefined in scoped class attributes
  • 8803da6: Fixes newlines in opening tag generating buggy code in TSX

@astrojs/[email protected]

24 Jun 11:07
7fcc29b
Compare
Choose a tag to compare

Patch Changes

  • 0bb2746: Allow data-astro-reload to take a value