Packages

prettier-plugin-astro

1.1.2 · 23 Oct 2026MIT1.7M / weekRepositoryHomepagenpmAtom feed

Your version

1.0.0

major8 Sep 2026Where it was published

1.1.2 is the newest release of 1.x.

In short

2 breaking

  • Breaking

    Raises the minimum supported Node version to 22.12.0.

  • Breaking

    The plugin has been fully rewritten on top of Astro 7's new Rust compiler. This rewrite fixes many long-standing issues, such as certain elements not being handled properly inside expressions.

Release note

Major Changes

  • Breaking

    Raises the minimum supported Node version to 22.12.0.

  • Breaking

    The plugin has been fully rewritten on top of Astro 7's new Rust compiler. This rewrite fixes many long-standing issues, such as certain elements not being handled properly inside expressions.

    Whitespace formatting now matches Astro’s whitespace handling, and a new astroCompressHTML option has been added to match Astro's compressHTML setting. If you set compressHTML in your Astro config, also set astroCompressHTML in your Prettier config to match.

    In addition, this rewrite has allowed us to more closely match Prettier's built-in JSX and HTML formatting, leading to less cosmetic differences between the different files in your repo.

A whole project to check? Paste its package.json in the dependency check: every deprecated, outdated or vulnerable dependency, with what to upgrade to. Free, no account.