Releases: withastro/compiler
@astrojs/compiler@3.0.0-beta.1
Patch Changes
- 755f046: Fixes a CSS scoping regression where selectors using the nesting selector (
&) with pseudo-classes or pseudo-elements (e.g.&:last-of-type,&::before) inside:global()contexts would incorrectly receive a duplicate scope attribute. - f89451a: Fixed an issue where explicit
<html>and<head>tags were removed from output when a JSX comment appeared between DOCTYPE and the<html>tag. - 8275bdd: Fixes a bug where trailing whitespaces were preserved before
<style>tags after transformation, in certain cases. Now trailing whitespaces are correctly removed. - e329d20: Fix slot attribute stripped inside expression
- 615eb21: Fix CSS nesting so nested selectors without an ampersand are parsed and scoped correctly.
@astrojs/compiler@2.13.1
@astrojs/compiler@3.0.0-beta.0
Major Changes
-
c05e16e: Removes the first argument of
$$result.createAstro()$$result.createAstro()does not accept anAstroGlobalPartialas the first argument anymore:-const Astro = $$result.createAstro($$Astro, $$props, $$slots); +const Astro = $$result.createAstro($$props, $$slots);
-
c05e16e: Removes
renderScriptfromTransformOptions. It is now the default and only behavior -
c05e16e: Removes
experimentalScriptOrderfromTransformOptions. It is now the default and only behavior
@astrojs/compiler@2.13.0
Minor Changes
-
59f7759: Support HTML element
Based on the recent commit history, this change appears to be related to fixing issue #1093 regarding selectedcontent parsing in customizable selects. The element is part of the new Customizable Select Element API
in HTML, used within elements to display the currently selected option(s). -
89c80fe: Adds a
walkAsyncutility function that returns a Promise from the tree traversal process.Unlike the existing
walkfunction which doesn't provide a way to wait for traversal completion,walkAsyncallows consumers toawaitthe full traversal of the AST.
Patch Changes
@astrojs/compiler@2.12.2
Patch Changes
- 950635e: Reverts a change where view transitions were made async to accomodate the CSP requirements.
@astrojs/compiler@2.12.1
@astrojs/compiler@2.12.0
Minor Changes
- e428ae0: Add head propagation metadata to server islands
@astrojs/compiler@2.11.0
Minor Changes
- 0399d55: Add an experimental flag
experimentalScriptOrderthat corrects the order styles & scripts are rendered within a component. When enabled, the order styles & scripts are rendered will be consistent with the order they are defined.
Patch Changes
- c758d7e: Add async properly when await used inside fragment
@astrojs/compiler@2.10.4
Patch Changes
-
8cae811: Fixes an issue with the conditional rendering of scripts.
This change updates a v5.0 breaking change when
experimental.directRenderScriptbecame 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