prettier-plugin-astro
1.1.2 · 23 Oct 2026MIT1.7M / weekRepositoryHomepagenpmAtom feed
Upgrading prettier-plugin-astro From 0.5.2 to 1.1.2
26 releases in betweenevery note read
Reading releases, release notes and advisories…
- 3
- changes to make
- 0
- advisories fixed
- 12
- new
- 29
- fixes
Before you upgrade
Tick each one off as you go- Breaking1.0.0
- Breaking1.0.0
- Breaking1.0.0-beta.0
Release by release
- Fixed
Updates the Astro compiler to the latest release
- Fixed
- Fixed
Fixes a
TypeError("Cannot read properties of undefined (reading 'semi')") when a comment appears before a statement inside a template expression.
- Fixed
- Fixed
Fix non-idempotent indentation of multiline comments nested inside CSS rules.
- Fixed
Fixes raw elements being forcefully paired up when self-closed.
- Fixed
- Fixed
Publish TypeScript declarations for Astro plugin options.
- Fixed
Fixes an error when a JavaScript comment appears before a raw or custom-printed element, such as a
<script>in the alternate branch of a conditional expression. - Fixed
Fix non-idempotent CSS
<style>block formatting withastroCompressHTMLset to'html'or'none'.
- Fixed
- 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.
- Breaking
- Fixed
Fixes an issue where style and script tags would sometimes get moved to other tags
- Fixed
- New
Adds a new option called
astroSkipFrontmatterto disable formatting the frontmatter. This can be useful when using other tools to format the frontmatter, such as Biome or dprint.
- New
- Fixed
Fix plugin sometimes including significant whitespace inside components, fragments and custom elements
- Fixed
3 other lines we could not sort, mostly version bumps
- 1.1.0
When unset /
undefined, the attributes stay as written, i.e<Comp value={value} />and<Comp {value} />can co-exist in the same file. - 1.1.0
When set to
true, attributes that can be written in the shorthand form will automatically be transformed.<Comp value={value} />will become<Comp {value} /> - 1.1.0
When set to
false, attributes will always be expanded to their full form.
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.