Skip to content

Releases: withastro/prettier-plugin-astro

v0.13.0

19 Jan 18:18
5f7c26e
Compare
Choose a tag to compare

Minor Changes

  • e97406a: Fix plugin sometimes including significant whitespace inside components, fragments and custom elements

v0.12.3

27 Dec 14:20
3d596c1
Compare
Choose a tag to compare

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

13 Nov 15:44
936c6ae
Compare
Choose a tag to compare

Patch Changes

  • 11b0dc7: Fix attributes using optional chaining not formatting correctly

v0.12.1

25 Oct 18:33
06dc7f3
Compare
Choose a tag to compare

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

22 Aug 11:25
fc214a6
Compare
Choose a tag to compare

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.1

15 Aug 15:44
701fbd3
Compare
Choose a tag to compare

Patch Changes

  • 62fe714: removes pnpm from engines

v0.11.0

12 Jul 21:10
889d502
Compare
Choose a tag to compare

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

01 Jun 14:54
d232bf6
Compare
Choose a tag to compare

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

26 May 14:02
adc0dc1
Compare
Choose a tag to compare

Patch Changes

  • 97c4b07: fix: prevent parsing empty script tags

v0.9.0

19 May 14:04
e2608a7
Compare
Choose a tag to compare

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