Skip to content

Releases: withastro/prettier-plugin-astro

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

v0.8.1

11 May 17:46
12eb98b
Compare
Choose a tag to compare

Patch Changes

  • 9cb4c4f: Add compatibility for other plugins parsing top-level returns in Astro frontmatter
  • 88b0d84: Correctly pass options to embedded parsers
  • e5cf99d: Fix style tags using Stylus being truncated under certain circumstances

v0.8.0

26 Jan 10:23
8345010
Compare
Choose a tag to compare

Minor Changes

  • c724082: Add support for LESS style tags, fixed crash on style tags with unknown languages
  • 18cd321: Add support for formatting spread attributes

v0.7.2

04 Jan 14:48
2aa8505
Compare
Choose a tag to compare

Patch Changes

  • a97750b: Fix packaging error causing the plugin to only be installable using pnpm

v0.7.1

03 Jan 08:34
4bea97d
Compare
Choose a tag to compare

Patch Changes

  • 9fa788f: Upgrade @astrojs/compiler
  • a3ff2ef: Fix inline tags not hugging the end of their content if the last child was a tag

v0.7.0

28 Oct 15:42
e54f7ea
Compare
Choose a tag to compare

Minor Changes

  • 485fb91: Fixed custom-elements being allowed to self close despite the HTML spec saying otherwise

Patch Changes

  • b99b461: Add support for formatting expressions with multiple root elements
  • ca48060: Add support for prettier-ignore comments

v0.6.0

17 Oct 13:10
0e48e89
Compare
Choose a tag to compare

Minor Changes

  • 699e02c: Allow elements with set:* directives to self-close

Patch Changes

  • 163ffec: Fix jsxSingleQuote not considering if there was any incompatible characters inside the attribute value
  • 17af6ef: Fix style tags getting moved inside body tags
    Fix fragments with expressions inside being moved to before the expressions in certain cases

v0.5.5

29 Sep 18:48
4244991
Compare
Choose a tag to compare

Patch Changes

  • fe68b94: Fix missing newline after attributes on inline elements when using singleAttributePerLine
  • 96e2b28: Fix expressions not hugging the end of the tag in cases where they should
  • 4e6fde8: Fix newlines being added to style tags even if they were empty

v0.5.4

31 Aug 15:58
6198bc0
Compare
Choose a tag to compare

Patch Changes

  • 4115a8e: Support formatting expressions with elements with attributes not compatible with JSX