Releases: withastro/compiler
Releases · withastro/compiler
@astrojs/[email protected]
Minor Changes
-
0c24ea1: Add a new
annotateSourceFileoption. 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]
Patch Changes
- bf76663: [TSX] Add
ASTRO__MergeUnionutil to allow destructuring from automatically inferred union Prop types
@astrojs/[email protected]
Patch Changes
- a52c181: Fixed an issue where spread attributes could not include double quotation marks.
@astrojs/[email protected]
Minor Changes
- 7579d7c: Support CSS
@starting-stylerule (From: evanw/esbuild#3249) - 09abfe4: Adds ability for TSX output to automatically infer
Astro.propsandAstro.paramswhengetStaticPathsis used
@astrojs/[email protected]
Minor Changes
- 2584348: Add propagation metadata to the TransformResult
@astrojs/[email protected]
Patch Changes
- 4e1e907: Remove experimental flags from
transition:directives. They are now enabled by default.
@astrojs/[email protected]
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]
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]
Patch Changes
- 52fe144: Change the value of the generated attribute
@astrojs/[email protected]
Minor Changes
- 365710c: Support the transition:persist directive