Skip to content

Releases: withastro/compiler

@astrojs/compiler@2.4.0

04 Jan 19:11
83bef19
Compare
Choose a tag to compare

Minor Changes

  • 9ff6342: Return generated frontmatter and body ranges in TSX output

Patch Changes

  • b52f7d1: Fixes an issue where unterminated quoted attributes caused the compiler to crash
  • 24e2886: Fixes a regression that caused whitespace between elements in an expression to result invalid code
  • c5bcbd0: Prefix TSX output with a JSX pragma to ensure proper types are used
  • 4f74c05: Fixes an issue where HTML and JSX comments lead to subsequent content being incorrectly treated as plain text when they have parent expressions.
  • cad2606: Fixes an issue where components with template literal attributes were printed with the name of the attribute as value.
  • 14ccba5: Fixes an issue where a tr element which contained an expression would cause its parent table to swallow any trailing element inside said table
  • f9373f2: Fixes an issue where Astro fragments used inside a table element would cause lots of missing pieces of markup
  • 4de359b: Preserve whitespace in expressions
  • fe2f0c8: Fixes an issue where / or */ would cause prematurely closed comments in the tsx output

@astrojs/compiler@2.3.4

15 Dec 20:31
06c1033
Compare
Choose a tag to compare

Patch Changes

  • 56e1959: Fixes a memory reference error when an expression is the final node in a file

@astrojs/compiler@2.3.3

15 Dec 19:40
ee569ee
Compare
Choose a tag to compare

Patch Changes

  • 5b450df: Fixed an index out of range error when multibyte characters were rendered as markup
  • 852fc1b: Fix index out of range [0] error when there is a component before the <html> tag
  • 05ecaff: Fixes an issue where when there are nested expressions, subsequent content was incorrectly treated as plain text in some cases.
  • 8c0cffb: Fixes an issue causing index out of range errors when handling some multibyte characters like \u2028.

@astrojs/compiler@2.3.2

14 Nov 22:57
53bc69c
Compare
Choose a tag to compare

Patch Changes

  • 2bdb4bb: Revert table related parsing change as it resulted in a regression

@astrojs/compiler@2.3.1

14 Nov 15:20
a4e3c37
Compare
Choose a tag to compare

Patch Changes

  • e241f2d: Fix generated code for expressions within td elements
  • 5ce5cc6: Fix compact collapse for empty text nodes between elements

@astrojs/compiler@2.3.0

08 Nov 09:27
1e421bf
Compare
Choose a tag to compare

Minor Changes

  • 0c24ea1: Add a new annotateSourceFile option. This option makes it so the compiler will annotate every element with its source file location. This is notably useful for dev tools to be able to provide features like a "Open in editor" button. This option is disabled by default.

    <div>
      <span>hello world</span>
    </div>

    Results in:

    <div data-astro-source-file="/Users/erika/Projects/..." data-astro-source-loc="1:1">
      <span data-astro-source-file="/Users/erika/Projects/..." data-astro-source-loc="2:2">hello world</span>
    </div>

    In Astro, this option is enabled only in development mode.

@astrojs/compiler@2.2.2

02 Nov 10:49
d6a4ba1
Compare
Choose a tag to compare

Patch Changes

  • bf76663: [TSX] Add ASTRO__MergeUnion util to allow destructuring from automatically inferred union Prop types

@astrojs/compiler@2.2.1

17 Oct 16:55
b99bc71
Compare
Choose a tag to compare

Patch Changes

  • a52c181: Fixed an issue where spread attributes could not include double quotation marks.

@astrojs/compiler@2.2.0

04 Oct 17:56
cebace1
Compare
Choose a tag to compare

Minor Changes

  • 7579d7c: Support CSS @starting-style rule (From: evanw/esbuild#3249)
  • 09abfe4: Adds ability for TSX output to automatically infer Astro.props and Astro.params when getStaticPaths is used

@astrojs/compiler@2.1.0

08 Sep 13:18
2169e80
Compare
Choose a tag to compare

Minor Changes

  • 2584348: Add propagation metadata to the TransformResult