Skip to content

chore(deps-dev): bump prettier-plugin-astro from 0.14.1 to 1.1.2 - #110

Closed
dependabot[bot] wants to merge 1 commit into
mainfrom
dependabot/npm_and_yarn/prettier-plugin-astro-1.1.2
Closed

dependabot[bot] wants to merge 1 commit into
mainfrom
dependabot/npm_and_yarn/prettier-plugin-astro-1.1.2

Conversation

@dependabot

@dependabot dependabot Bot commented on behalf of github Nov 2, 2026 •

Copy link
Copy Markdown
Contributor

Bumps prettier-plugin-astro from 0.14.1 to 1.1.2.

Release notes

Sourced from prettier-plugin-astro's releases.

v1.1.2

Patch Changes

  • 98d4164: Updates the Astro compiler to the latest release

v1.1.1

Patch Changes

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

v1.1.0

Minor Changes

  • bfbb6c5: Adds support for three astroAllowShorthand formatting modes:

    • When unset / undefined, the attributes stay as written, i.e <Comp value={value} /> and <Comp {value} /> can co-exist in the same file.
    • When set to true, attributes that can be written in the shorthand form will automatically be transformed. <Comp value={value} /> will become <Comp {value} />
    • When set to false, attributes will always be expanded to their full form.

Patch Changes

  • 4b3547e: Fix non-idempotent indentation of multiline comments nested inside CSS rules.
  • edfb35f: Fixes raw elements being forcefully paired up when self-closed.

v1.0.1

Patch Changes

  • 5b5a735: Publish TypeScript declarations for Astro plugin options.
  • 6154471: 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.
  • fabb28f: Fix non-idempotent CSS <style> block formatting with astroCompressHTML set to 'html' or 'none'.

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.

... (truncated)

Changelog

Sourced from prettier-plugin-astro's changelog.

1.1.2

Patch Changes

  • 98d4164: Updates the Astro compiler to the latest release

1.1.1

Patch Changes

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

1.1.0

Minor Changes

  • bfbb6c5: Adds support for three astroAllowShorthand formatting modes:

    • When unset / undefined, the attributes stay as written, i.e <Comp value={value} /> and <Comp {value} /> can co-exist in the same file.
    • When set to true, attributes that can be written in the shorthand form will automatically be transformed. <Comp value={value} /> will become <Comp {value} />
    • When set to false, attributes will always be expanded to their full form.

Patch Changes

  • 4b3547e: Fix non-idempotent indentation of multiline comments nested inside CSS rules.
  • edfb35f: Fixes raw elements being forcefully paired up when self-closed.

1.0.1

Patch Changes

  • 5b5a735: Publish TypeScript declarations for Astro plugin options.
  • 6154471: 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.
  • fabb28f: Fix non-idempotent CSS <style> block formatting with astroCompressHTML set to 'html' or 'none'.

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

... (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 added dependencies Pull requests that update a dependency file javascript Pull requests that update javascript code labels Nov 2, 2026
@netlify

netlify Bot commented Nov 2, 2026 •

Copy link
Copy Markdown

✅ Deploy Preview for cscsdev ready!

Name Link
🔨 Latest commit 505eb6a
🔍 Latest deploy log https://app.netlify.com/projects/cscsdev/deploys/6ae7e80830474e6c1c82911d
😎 Deploy Preview https://deploy-preview-110--cscsdev.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@jvcorredor jvcorredor mentioned this pull request Nov 2, 2026
5 tasks done
jvcorredor added a commit that referenced this pull request Nov 2, 2026
## Summary

```diff
 eslint                        9.39.5 -> 10.13.0
 eslint-plugin-astro           1.7.0  -> 3.2.1     (peers eslint >=10)
 prettier-plugin-tailwindcss   0.7.4  -> 0.8.1
-eslint-plugin-jsx-a11y        6.10.2
+eslint-plugin-jsx-a11y-x      0.2.0
```

`eslint.config.js` is unchanged. The `flat/jsx-a11y-recommended` config
is still used. `AGENTS.md` now describes the a11y plugin accurately.

**Why the a11y plugin is swapped.** `eslint-plugin-jsx-a11y` 6.10.2
(latest, Oct 2024) peers `eslint ^3 ... ^9` and has no ESLint 10 release
(jsx-eslint/eslint-plugin-jsx-a11y#1075, open). The lint config does use
it, through `eslint-plugin-astro`'s `flat/jsx-a11y-recommended`.
`eslint-plugin-astro` 3.2 supports the community fork
`eslint-plugin-jsx-a11y-x` (es-tooling, same rules, peers `eslint ^9 ||
^10`, v0.2.0 from May 2026, repo active, about 417k weekly downloads) as
a second optional peer and prefers `jsx-a11y` only when it is installed.
`overrides` was rejected because it would hide an unsupported runtime.

`typescript-eslint` 8.72.0 and `eslint-plugin-storybook` 10.6.3 already
support ESLint 10; their resolved versions are unchanged, and the
`typescript-eslint` family's range floor is raised to `^8.61.0` to match
`eslint-plugin-astro`'s optional peer. The a11y rules cover `.astro`
files only (not `.tsx`); that gap predates this PR and is tracked in
#114. Versions are the newest published before the 2026-10-26 cooldown
cutoff.

**Migration checked.** ESLint v10 migration guide: Node >=20.19,
`eslint-env` comments, config lookup from file, JSX reference tracking,
removed eslintrc. None needed a change. `eslint-plugin-astro` 2.x and
3.x changelog: ESM only, and `astro/no-prerender-export-outside-pages`
was added to `recommended`. `astro/valid-compile` and
`astro/no-omitted-end-tags` were deprecated and dropped from
`recommended`, since `astro check` (run in CI) covers them.

## Test plan

- [x] `npm run lint`, `format:check`, `check` (0 errors), `test:run` (80
passed), `build` and `build-storybook` all pass.
- [x] `npm run format` once with prettier-plugin-tailwindcss 0.8.1: **0
files changed**, so there is no separate format commit.
- [x] **Planted violations** in a scratch copy (TypeScript
`no-unused-vars`, `ban-ts-comment`, `no-var`; Astro
`no-conflict-set-directives`, `no-unused-define-vars-in-style`;
Storybook `default-exports`; 11 a11y findings including `alt-text`,
`anchor-is-valid` for both a missing href and `href="#"`,
`click-events-have-key-events`, `media-has-caption`). Main and the
branch report the same 18 findings. A second a11y file
(`label-has-associated-control`, `mouse-events-have-key-events`,
`no-distracting-elements`, `aria-role`) is identical too. A bare
`<input>` without a label is not flagged on either side, because it is
not covered by `label-has-associated-control`.
- [x] **Rule sets** (`eslint --print-config` on an `.astro` file): all
34 `astro/jsx-a11y/*` rules have the same names and severities on main
and the branch, none added or dropped. The only difference is that
`jsx-a11y-x` writes its default options into the resolved config.
Non-a11y astro rules: dropped `astro/valid-compile` (deprecated
upstream, covered by `astro check`), added
`astro/no-exports-from-components` and
`astro/no-prerender-export-outside-pages`. Existing code passes the new
rules.
- [x] `npm audit`: 21 vulnerabilities before, 19 after (one low, 18
moderate). `eslint-plugin-jsx-a11y`, `eslint-compat-utils` and
`@eslint/eslintrc` are gone. **The eslint / minimatch /
typescript-eslint chain is not gone:** advisory GHSA-g3hv-75wg-m249
needs `minimatch >=11.0.1`, which was only published 2026-10-27 (inside
the 7-day cooldown), and eslint 10.13 still depends on `minimatch ^10`.

## Merge Danger

**Door:** two-way. Revert restores the previous lockfile.

**Blast Radius:** dev tooling and CI only.

This includes `prettier-plugin-tailwindcss` 0.8.1 from #97, which stays
open for its `pocketbase` half (B3). Supersedes #105
(eslint-plugin-astro 3.2.1). That PR cannot pass on its own because it
requires eslint 10 and `jsx-a11y` pins `<=9`. Not touched: #74 (optional
Storybook ESLint plugin loading), #111 and #102 (vitest 5), #110
(prettier-plugin-astro).

Refs: #81
Refs: #90

BREAKING CHANGE: `eslint-plugin-jsx-a11y` is replaced by
`eslint-plugin-jsx-a11y-x`, and ESLint 10 changes the config and CLI
behaviour (flat config only, new config lookup, `eslint-env` comments
are errors). `engines.node` is unchanged (already `>=22.23.4`).

🤖 Generated with [Claude Code](https://claude.com/claude-code)

---------

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
Bumps [prettier-plugin-astro](https://github.com/withastro/prettier-plugin-astro) from 0.14.1 to 1.1.2.
- [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.1.2)

---
updated-dependencies:
- dependency-name: prettier-plugin-astro
  dependency-version: 1.1.2
  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.1.2 branch from 6c70622 to 505eb6a Compare November 2, 2026 01:31
jvcorredor added a commit that referenced this pull request Nov 3, 2026
Supersedes #110 (Dependabot bump; its `build` job failed at
`format:check`).

## Summary

```diff
 package.json
-  "prettier-plugin-astro": "^0.14.1"
+  "prettier-plugin-astro": "^1.1.2"      # peer: prettier ^3.5.3 (repo has ^3.8.1)
 src/**/*.astro                          # 7 files re-run through `prettier --write`
   long class="..." attrs   stay on one line (no wrapping)
   {expr && (...)} / .map() hug the brace
   inline whitespace made explicit: {" "}
```

No `.prettierrc.mjs` change was needed. 1.1.2 was published 2026-10-23,
so it clears the 7-day cooldown.

## Evidence

- **Before:** #110 `build` job: `prettier --check .` reports "Code style
issues found in 11 files" (all `.astro`).
**After:** local run of every `ci.yml` step except `test:pb` (PocketBase
download) and the Containerfile/netlify pin checks, which this change
does not touch: `eslint .` clean, `prettier --check .` "All matched
files use Prettier code style!", `astro check` 0 errors, `vitest run`
249/249, `astro build` and `build-storybook` succeed,
`scripts/test-agent-hooks.sh` passes.
- Formatting-only: `diff -r dist-before dist-after` of `astro build`
output (before vs after the `.astro` reformat) is empty. `Welcome.astro`
is not imported anywhere, so it is not covered by the build diff; its
changes are the same style rules (`{" "}` preserves the original
spaces).

## Merge Danger

**Door:** two-way

**Blast Radius:** dev-tooling

Only the formatter changes; `dist/` is byte-identical. Open PRs touching
these `.astro` files may need a re-format.

Refs: #117

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
@jvcorredor

Copy link
Copy Markdown
Contributor

Superseded by #139, which bumps prettier-plugin-astro to 1.1.2 and applies the 1.x formatting.

@jvcorredor jvcorredor closed this Nov 3, 2026
@dependabot @github

dependabot Bot commented on behalf of github Nov 3, 2026

Copy link
Copy Markdown
Contributor Author

OK, I won't notify you again about this release, but will get in touch when a new version is available. If you'd rather skip all updates until the next major or minor version, let me know by commenting @dependabot ignore this major version or @dependabot ignore this minor version. You can also ignore all major, minor, or patch releases for a dependency by adding an ignore condition with the desired update_types to your config file.

If you change your mind, just re-open this PR and I'll resolve any conflicts on it.

@dependabot
dependabot Bot deleted the dependabot/npm_and_yarn/prettier-plugin-astro-1.1.2 branch November 3, 2026 13:13
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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant