Releases: withastro/compiler
Releases · withastro/compiler
@astrojs/compiler@2.3.4
Patch Changes
- 56e1959: Fixes a memory reference error when an expression is the final node in a file
@astrojs/compiler@2.3.3
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
Patch Changes
- 2bdb4bb: Revert table related parsing change as it resulted in a regression
@astrojs/compiler@2.3.1
@astrojs/compiler@2.3.0
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
Patch Changes
- bf76663: [TSX] Add
ASTRO__MergeUnion
util to allow destructuring from automatically inferred union Prop types
@astrojs/compiler@2.2.1
Patch Changes
- a52c181: Fixed an issue where spread attributes could not include double quotation marks.
@astrojs/compiler@2.2.0
Minor Changes
- 7579d7c: Support CSS
@starting-style
rule (From: evanw/esbuild#3249) - 09abfe4: Adds ability for TSX output to automatically infer
Astro.props
andAstro.params
whengetStaticPaths
is used
@astrojs/compiler@2.1.0
Minor Changes
- 2584348: Add propagation metadata to the TransformResult
@astrojs/compiler@2.0.1
Patch Changes
- 4e1e907: Remove experimental flags from
transition:
directives. They are now enabled by default.