Skip to content

Releases: withastro/compiler

@astrojs/[email protected]

08 Nov 09:27
1e421bf

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/[email protected]

02 Nov 10:49
d6a4ba1

Choose a tag to compare

Patch Changes

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

@astrojs/[email protected]

17 Oct 16:55
b99bc71

Choose a tag to compare

Patch Changes

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

@astrojs/[email protected]

04 Oct 17:56
cebace1

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/[email protected]

08 Sep 13:18
2169e80

Choose a tag to compare

Minor Changes

  • 2584348: Add propagation metadata to the TransformResult

@astrojs/[email protected]

23 Aug 20:54
a163db5

Choose a tag to compare

Patch Changes

  • 4e1e907: Remove experimental flags from transition: directives. They are now enabled by default.

@astrojs/[email protected]

21 Aug 16:59
5d58651

Choose a tag to compare

Major Changes

  • cd93272: The scope hash created by the compiler is now lowercase.

    This aligns with the HTML spec of the attribute names, where they are lowercase by spec.

    This change is needed because the compiler now creates data attributes that contain the hash in their name.

@astrojs/[email protected]

18 Aug 16:00
aa01628

Choose a tag to compare

Patch Changes

  • 80b7e42: Pass the type of the current component as a type argument to the AstroGlobal in order to type Astro.self

@astrojs/[email protected]

04 Aug 08:26
4fd8f9b

Choose a tag to compare

Patch Changes

  • 52fe144: Change the value of the generated attribute

@astrojs/[email protected]

02 Aug 16:02
997a9f1

Choose a tag to compare

Minor Changes

  • 365710c: Support the transition:persist directive