Releases: withastro/prettier-plugin-astro
Releases · withastro/prettier-plugin-astro
v0.13.0
Minor Changes
- e97406a: Fix plugin sometimes including significant whitespace inside components, fragments and custom elements
v0.12.3
Patch Changes
- e75f9c7: Fix
<br />
tags sometimes causing additional spaces to appear
- b4b0918: Fix not being able to format expressions with more than 2 roots
v0.12.2
Patch Changes
- 11b0dc7: Fix attributes using optional chaining not formatting correctly
v0.12.1
Patch Changes
- 0188f04: Fix attributes with multiple invalid JSX characters in their key inside expressions causing the plugin to throw an error
v0.12.0
Minor Changes
- fa1a6e3: Do not delete line breaks and indentation of lines in class attribute
Patch Changes
- b806845: Format doctype as lowercase to match Prettier 3.0
v0.11.0
Minor Changes
- 94ed904: Migrated the plugin to Prettier 3's new APIs. It's unfortunately not possible for a plugin to support both version 2 and 3 of Prettier. As such, from this version on, only Prettier 3 is supported.
v0.10.0
Minor Changes
- af9324e: Use the sync entrypoint of the Astro compiler instead of
synckit
, improving performance and reducing the dependency count of the plugin
v0.9.1
Patch Changes
- 97c4b07: fix: prevent parsing empty script tags
v0.9.0
Minor Changes
- abecea0: Use the babel-ts parser to parse the frontmatter. This parser was already used for expressions inside the template, so the experience should now be more homogenous all throughout the file.
- d2a2c26: Add support for formatting script tags containing JSON, Markdown and other content