Skip to content

Releases: withastro/prettier-plugin-astro

v0.14.1

16 Jul 16:01
1150195
Compare
Choose a tag to compare

Patch Changes

  • 7282bcb: Fixes an issue where style and script tags would sometimes get moved to other tags

v0.14.0

24 May 15:45
6d917b2
Compare
Choose a tag to compare

Minor Changes

  • bb756df: Adds a new option called astroSkipFrontmatter to disable formatting the frontmatter. This can be useful when using other tools to format the frontmatter, such as Biome or dprint.

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