Packages

prettier-plugin-astro

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

Upgrading prettier-plugin-astro From 0.14.1 to 1.1.2

5 releases in betweenevery note read

Reading releases, release notes and advisories…

  1. 0.14.1yours
  2. 1.0.0major
  3. 1.0.1
  4. 1.1.0
  5. 1.1.1
  6. 1.1.2target
  7. 3 pre
3
changes to make
0
advisories fixed
0
new
7
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

  1. 1.1.2

    23 Oct 20261 fix
    • Fixed

      Updates the Astro compiler to the latest release

  2. 1.1.1

    9 Oct 20261 fix
    • Fixed

      Fixes a TypeError ("Cannot read properties of undefined (reading 'semi')") when a comment appears before a statement inside a template expression.

  3. 1.1.0

    24 Sep 20262 fixes
    • Fixed

      Fix non-idempotent indentation of multiline comments nested inside CSS rules.

    • Fixed

      Fixes raw elements being forcefully paired up when self-closed.

  4. 1.0.1

    17 Sep 20263 fixes
    • 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 with astroCompressHTML set to 'html' or 'none'.

  5. 1.0.0

    Migration needed8 Sep 2026
    • 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.

3 other lines we could not sort, mostly version bumps
  • 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.

    1.1.0

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.