Skip to content

[Docs Site] Bump prettier-plugin-astro from 0.14.1 to 1.0.0 - #33399

Open
dependabot[bot] wants to merge 1 commit into
productionfrom
dependabot/npm_and_yarn/prettier-plugin-astro-1.0.0
Open

[Docs Site] Bump prettier-plugin-astro from 0.14.1 to 1.0.0#33399
dependabot[bot] wants to merge 1 commit into
productionfrom
dependabot/npm_and_yarn/prettier-plugin-astro-1.0.0

Conversation

@dependabot

@dependabot dependabot Bot commented on behalf of github Sep 11, 2026

Copy link
Copy Markdown
Contributor

Bumps prettier-plugin-astro from 0.14.1 to 1.0.0.

Release notes

Sourced from prettier-plugin-astro's releases.

v1.0.0

Major Changes

  • a8bf1a3: Raises the minimum supported Node version to 22.12.0.

  • 595d47f: 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.

v1.0.0-beta.2

Patch Changes

  • cc30d24: Fixes various formatting issues when using astroCompressHTML: 'html' or 'none':

    • Fixes a stray > being added after an empty or ignored element that is followed by a sibling.
    • Fixes closing tags being split from trailing void elements like <img>.
    • Fixes whitespace being added inside tables, lists, and captions under htmlWhitespaceSensitivity: 'strict'.
    • Fixes line breaks around inline elements being replaced by spaces.
    • Allows inline elements to wrap at the print width without adding rendered whitespace.
    • Keeps inline elements written on one line on that line.
    • Fixes components with dotted names like <Astro.self> losing their closing tags or failing to format.
    • Fixes whitespace around inline-block elements and reflowing markup written on one line.
    • Fixes quotes in style attribute values being written unescaped, corrupting the attribute and breaking the next format.
    • Fixes children hugging the closing bracket when an element's attributes span multiple lines.
    • Fixes whitespace being added around a lone <slot />, which stopped :empty from matching the container.
    • Fixes srcset values being mangled when a URL contains a comma, such as a data: URI or query string.
    • Lays out block-level elements like HTML.
    • Fixes whitespace being removed around a lone <slot />, which allowed :empty to start matching the container.
    • Fixes children hugging the closing bracket when an element's attributes wrap and allows a lone long attribute to wrap.
    • Formats style and srcset attributes.
    • Allows runs of adjacent inline elements to wrap at the print width without adding rendered whitespace.
    • Lays out graphical SVG contents one element per line.
    • Fixes nested markup being kept on one line.
    • Fixes spaces being removed from text directly inside <body>.
    • Fixes nested elements being collapsed onto a single line.
    • Fixes a blank line being left inside an opening tag whose attributes break.

v1.0.0-beta.1

Major Changes

  • a8bf1a3: Raises the minimum supported Node version to 22.12.0.

Patch Changes

  • b0ec799: Fixes <script> tags being formatted as JavaScript instead of TypeScript
  • 04ecfe2: Fixes a crash on parenthesized types in template expressions

v1.0.0-beta.0

Major Changes

... (truncated)

Changelog

Sourced from prettier-plugin-astro's changelog.

1.0.0

Major Changes

  • a8bf1a3: Raises the minimum supported Node version to 22.12.0.

  • 595d47f: 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.

1.0.0-beta.2

Patch Changes

  • cc30d24: Fixes various formatting issues when using astroCompressHTML: 'html' or 'none':

    • Fixes a stray > being added after an empty or ignored element that is followed by a sibling.
    • Fixes closing tags being split from trailing void elements like <img>.
    • Fixes whitespace being added inside tables, lists, and captions under htmlWhitespaceSensitivity: 'strict'.
    • Fixes line breaks around inline elements being replaced by spaces.
    • Allows inline elements to wrap at the print width without adding rendered whitespace.
    • Keeps inline elements written on one line on that line.
    • Fixes components with dotted names like <Astro.self> losing their closing tags or failing to format.
    • Fixes whitespace around inline-block elements and reflowing markup written on one line.
    • Fixes quotes in style attribute values being written unescaped, corrupting the attribute and breaking the next format.
    • Fixes children hugging the closing bracket when an element's attributes span multiple lines.
    • Fixes whitespace being added around a lone <slot />, which stopped :empty from matching the container.
    • Fixes srcset values being mangled when a URL contains a comma, such as a data: URI or query string.
    • Lays out block-level elements like HTML.
    • Fixes whitespace being removed around a lone <slot />, which allowed :empty to start matching the container.
    • Fixes children hugging the closing bracket when an element's attributes wrap and allows a lone long attribute to wrap.
    • Formats style and srcset attributes.
    • Allows runs of adjacent inline elements to wrap at the print width without adding rendered whitespace.
    • Lays out graphical SVG contents one element per line.
    • Fixes nested markup being kept on one line.
    • Fixes spaces being removed from text directly inside <body>.
    • Fixes nested elements being collapsed onto a single line.
    • Fixes a blank line being left inside an opening tag whose attributes break.

1.0.0-beta.1

Major Changes

  • a8bf1a3: Raises the minimum supported Node version to 22.12.0.

Patch Changes

  • b0ec799: Fixes <script> tags being formatted as JavaScript instead of TypeScript
  • 04ecfe2: Fixes a crash on parenthesized types in template expressions

... (truncated)

Commits
Maintainer changes

This version was pushed to npm by GitHub Actions, a new releaser for prettier-plugin-astro since your current version.


@dependabot
dependabot Bot requested review from a team as code owners September 11, 2026 20:08
@dependabot dependabot Bot added dependencies Pull requests that update a dependency file javascript Pull requests that update Javascript code labels Sep 11, 2026
@cloudflare-docs-bot

cloudflare-docs-bot Bot commented Sep 11, 2026

Copy link
Copy Markdown
Contributor

Dependabot review

Package Impact Recommendation
prettier-plugin-astro 0.14.1 → 1.0.0 🟡 Low ✅ Merge

Overall: ✅ Merge + spot-check

prettier-plugin-astro 1.0.0 is a major rewrite (0.x → 1.0.0) of a direct devDependency used solely for formatting .astro source files via .prettierrc.mjs. The rewrite moves the plugin onto Astro 7's Rust compiler (@astrojs/compiler-rs), raises the minimum Node version to 22.12.0 (repo runs Node 24 per .nvmrc/devEngines — satisfied), and changes whitespace formatting to match Astro's whitespace handling. The new astroCompressHTML option is not needed since the repo's astro.config.ts does not set compressHTML, and the prettier ^3.5.3 peer dep is satisfied by prettier 3.9.6. The main risk is formatting drift: CI (ci.yml) runs pnpm run format:check, which includes prettier --check "**/*.astro", so if the new printer formats any .astro files differently, CI will fail until files are reformatted with pnpm run format:content:fix. The plugin is also consumed as an optional dep of @astrojs/language-server (via @astrojs/check) and prettier-plugin-tailwindcss, both of which resolve cleanly in the updated lockfile. No visitor-facing output (rendered HTML, search, Worker responses) is affected since prettier is dev-only tooling. Merge is likely safe, but verify CI formatting passes and spot-check .astro files; a follow-up reformat commit may be needed.

Package details

prettier-plugin-astro: 0.14.1 → 1.0.0

Type: breaking change
Dependency type: direct (devDependencies)

What changed

  • Minimum supported Node version raised to 22.12.0 (was ^14.15.0 || >=16.0.0); repo runs Node 24 so this is satisfied.
  • Plugin fully rewritten on top of Astro 7's Rust compiler (@astrojs/compiler-rs); whitespace formatting now matches Astro's whitespace handling, so .astro formatting output may differ.
  • New astroCompressHTML option added to mirror Astro's compressHTML setting; repo does not set compressHTML in astro.config.ts, so no config change required.
  • New dependencies: @astrojs/compiler-rs (native Rust compiler bindings), @prettier/parse-srcset; sass-formatter bumped 0.7.9 -> 0.8.0.
  • peerDependencies now prettier ^3.5.3; repo has prettier 3.9.6, which satisfies it.
  • Bug fixes: <script> tags formatted as JS instead of TypeScript, crash on parenthesized types, style/srcset attribute formatting fixes, and numerous HTML printer fixes.

Usage in this repo
Direct devDependency declared in package.json and used in .prettierrc.mjs (plugins array, parser 'astro' for *.astro files). CI ci.yml runs pnpm run format:check, which includes prettier --check "**/*.astro". Also consumed as an optional dependency of @astrojs/language-server (via @astrojs/check, used by astro check) and prettier-plugin-tailwindcss; both resolve cleanly in the updated pnpm-lock.yaml.

Impact: 🟡 Low — Prettier is dev/build tooling only — it formats .astro source files and is not part of the render pipeline, so visitor-facing output (rendered HTML, search, Worker responses) is unaffected. The main risk is formatting drift: the rewritten printer may reformat .astro files differently, which could fail CI's format:check until files are reformatted, and the new native compiler dependency must install correctly in CI. Node 24 and prettier 3.9.6 satisfy the new engine and peer requirements.


@github-actions

Copy link
Copy Markdown
Contributor

This pull request requires reviews from CODEOWNERS as it changes files that match the following patterns:

Pattern Owners
package.json @cloudflare/content-engineering
* @cloudflare/product-owners

@github-actions

github-actions Bot commented Sep 11, 2026

Copy link
Copy Markdown
Contributor

CI run failed: build logs

@cloudflare-workers-and-pages

cloudflare-workers-and-pages Bot commented Sep 11, 2026

Copy link
Copy Markdown

🚀 Deploying Preview to Cloudflare 🚀

Preview URL: https://dependabot-npm-and-yarn-prettier-plugin-astro-1.previews.developers.cloudflare.com (commit fa22690)

This URL reflects your latest Preview deployment

Preview Deployments by commit

Status Deployment URL Commit Updated (UTC) See this deployment's details
  • Build: Success ✅
  • Deployment: Success ✅

View logs ↗
https://1ff77a78.previews.developers.cloudflare.com fa22690 2026-09-11T23:17:35.524Z Visit the dashboard ↗
  • Build: Success ✅
  • Deployment: Success ✅

View logs ↗
https://cb1cbe95.previews.developers.cloudflare.com 2199d19 2026-09-11T20:22:55.352Z Visit the dashboard ↗

@mvvmm

mvvmm commented Sep 11, 2026

Copy link
Copy Markdown
Collaborator

@dependabot rebase

@dependabot @github

dependabot Bot commented on behalf of github Sep 11, 2026

Copy link
Copy Markdown
Contributor Author

Looks like this PR has been edited by someone other than Dependabot. That means Dependabot can't rebase it - sorry!

If you're happy for Dependabot to recreate it from scratch, overwriting any edits, you can request @dependabot recreate.

@mvvmm

mvvmm commented Sep 11, 2026

Copy link
Copy Markdown
Collaborator

@dependabot recreate

Bumps [prettier-plugin-astro](https://github.com/withastro/prettier-plugin-astro) from 0.14.1 to 1.0.0.
- [Release notes](https://github.com/withastro/prettier-plugin-astro/releases)
- [Changelog](https://github.com/withastro/prettier-plugin-astro/blob/main/CHANGELOG.md)
- [Commits](withastro/prettier-plugin-astro@v0.14.1...v1.0.0)

---
updated-dependencies:
- dependency-name: prettier-plugin-astro
  dependency-version: 1.0.0
  dependency-type: direct:development
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
@dependabot
dependabot Bot force-pushed the dependabot/npm_and_yarn/prettier-plugin-astro-1.0.0 branch from 2199d19 to fa22690 Compare September 11, 2026 23:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dependencies Pull requests that update a dependency file javascript Pull requests that update Javascript code size/m

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants