Skip to content

Update Astro to version 6.x and related adapter dependencies#1295

Merged
mhdcodes merged 2 commits intomainfrom
astro-6
Mar 14, 2026
Merged

Update Astro to version 6.x and related adapter dependencies#1295
mhdcodes merged 2 commits intomainfrom
astro-6

Conversation

@mhdcodes
Copy link
Copy Markdown
Member

@mhdcodes mhdcodes commented Mar 14, 2026

Summary by CodeRabbit

  • Documentation

    • Added Versioning section explaining the release scheme and its alignment with Astro major releases.
  • Chores

    • Upgraded project packages and peer compatibility to Astro 6.x and bumped several package versions.
    • Updated dev tooling and dependency versions.
    • Reduced CI Node.js testing matrix to 22.x and 24.x.
    • Removed example blog content and its associated routing in example apps.

@changeset-bot
Copy link
Copy Markdown

changeset-bot bot commented Mar 14, 2026

🦋 Changeset detected

Latest commit: 7732d9f

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 7 packages
Name Type
astro-svg-loaders Major
astro-seo-schema Major
astro-ui-avatars Major
astro-useragent Major
astro-purgecss Major
astro-seo-meta Major
astro-gtm Major

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@coderabbitai
Copy link
Copy Markdown
Contributor

coderabbitai bot commented Mar 14, 2026

Caution

Review failed

Pull request was closed or merged during review

📝 Walkthrough

Walkthrough

Upgrade of repository dependencies and examples to Astro v6: updated CI Node.js matrix, bumped Astro peer/dev dependencies across packages and example apps, removed example-purgecss blog content and content collection, and added README versioning notes.

Changes

Cohort / File(s) Summary
CI Workflow
.github/workflows/node.js.yml
Removed Node.js 20.x from the CI matrix; retained 22.x and 24.x.
Documentation
README.md
Added a Versioning section describing that major versions follow Astro major versions; minor/patch are package-local.
Example App Dependencies
apps/example-purgecss-ssr/package.json, apps/example-purgecss/package.json, apps/example-useragent/package.json, apps/playground/package.json
Bumped astro devDependency to ^6.0.x across examples; bumped @astrojs/node to ^10.0.1 where present.
Example Content & Routes
apps/example-purgecss/src/content/article-*.md, apps/example-purgecss/src/content/config.ts, apps/example-purgecss/src/pages/blog/[...slug].astro
Deleted three blog article markdown files, the content collection config, and the dynamic blog route/getStaticPaths.
Root Tooling
package.json
Updated devDependencies: @changesets/cli, @types/node, turbo, vitest; removed astro from root devDependencies.
Orbit Packages (peerDependencies & versions)
packages/astro-gtm/package.json, packages/astro-purgecss/package.json, packages/astro-seo-meta/package.json, packages/astro-seo-schema/package.json, packages/astro-svg-loaders/package.json, packages/astro-ui-avatars/package.json, packages/astro-useragent/package.json, packages/astro-vanilla-extract/package.json, packages/astro-webhooks/package.json
Bumped peerDependencies.astro from ^5.0.0 → ^6.0.0 across packages; several packages also had version bumps (e.g., astro-gtm, astro-ui-avatars) and purgecss bumped ^7 → ^8 in astro-purgecss.
Changeset
.changeset/pretty-spies-fry.md
Added a changeset declaring major version bumps for multiple packages to align with Astro v6 upgrade.

Estimated code review effort

🎯 3 (Moderate) | ⏱️ ~20 minutes

Possibly related PRs

Poem

🐰 Hopping through versions, I munch on the trace,
Upgrading Astro, a swift little race.
Node trimmed and packages polished anew,
Blog crumbs swept away, skies clearer and blue.
Cheer from the burrow — release, hop, and embrace!

🚥 Pre-merge checks | ✅ 3
✅ Passed checks (3 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The pull request title accurately describes the main changeset: updating Astro to version 6.x and related adapter dependencies across multiple packages.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Post copyable unit tests in a comment
  • Commit unit tests in branch astro-6
📝 Coding Plan
  • Generate coding plan for human review comments

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

Tip

You can disable sequence diagrams in the walkthrough.

Disable the reviews.sequence_diagrams setting to disable sequence diagrams in the walkthrough.

@pkg-pr-new
Copy link
Copy Markdown

pkg-pr-new bot commented Mar 14, 2026

Open in StackBlitz

npm i https://pkg.pr.new/astro-gtm@1295
npm i https://pkg.pr.new/astro-purgecss@1295
npm i https://pkg.pr.new/astro-seo-meta@1295
npm i https://pkg.pr.new/astro-seo-schema@1295

commit: 7732d9f

Copy link
Copy Markdown
Contributor

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 1

🤖 Prompt for all review comments with AI agents
Verify each finding against the current code and only fix it if needed.

Inline comments:
In `@README.md`:
- Around line 32-35: Revise the absolute versioning statement that currently
reads "Major version: Matches the Astro major version (e.g., `6.x.x` = Astro
v6)" and "Major/Breaking changes are only introduced when Astro releases a new
major version" to acknowledge upstream dependency-driven breaking changes;
update the README wording (the two bullet lines and the following sentence) to
say major version alignment is intended to follow Astro's major when possible
but that breaking changes may also occur due to upstream package major bumps or
other internal decisions, and recommend checking changelogs and compatibility
notes for each release.

ℹ️ Review info
⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro

Run ID: fb91b7c6-c6f5-420c-8b47-6c7421119d61

📥 Commits

Reviewing files that changed from the base of the PR and between 0aeecdb and a486a72.

⛔ Files ignored due to path filters (1)
  • pnpm-lock.yaml is excluded by !**/pnpm-lock.yaml
📒 Files selected for processing (21)
  • .github/workflows/node.js.yml
  • README.md
  • apps/example-purgecss-ssr/package.json
  • apps/example-purgecss/package.json
  • apps/example-purgecss/src/content/blog/article-1.md
  • apps/example-purgecss/src/content/blog/article-2.md
  • apps/example-purgecss/src/content/blog/article-3.md
  • apps/example-purgecss/src/content/config.ts
  • apps/example-purgecss/src/pages/blog/[...slug].astro
  • apps/example-useragent/package.json
  • apps/playground/package.json
  • package.json
  • packages/astro-gtm/package.json
  • packages/astro-purgecss/package.json
  • packages/astro-seo-meta/package.json
  • packages/astro-seo-schema/package.json
  • packages/astro-svg-loaders/package.json
  • packages/astro-ui-avatars/package.json
  • packages/astro-useragent/package.json
  • packages/astro-vanilla-extract/package.json
  • packages/astro-webhooks/package.json
💤 Files with no reviewable changes (5)
  • apps/example-purgecss/src/content/blog/article-3.md
  • apps/example-purgecss/src/content/blog/article-1.md
  • apps/example-purgecss/src/content/config.ts
  • apps/example-purgecss/src/pages/blog/[...slug].astro
  • apps/example-purgecss/src/content/blog/article-2.md

Comment on lines +32 to +35
- **Major version**: Matches the Astro major version (e.g., `6.x.x` = Astro v6)
- **Minor/Patch versions**: Independent package updates

Major/Breaking changes are only introduced when Astro releases a new major version.
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⚠️ Potential issue | 🟡 Minor

Versioning statement is too absolute.

Line 35 can mislead maintainers/users because breaking changes may also be driven by upstream package majors.

✏️ Suggested wording
-- **Major version**: Matches the Astro major version (e.g., `6.x.x` = Astro v6)
-- **Minor/Patch versions**: Independent package updates
-
-Major/Breaking changes are only introduced when Astro releases a new major version.
+- **Major version**: Tracks the targeted Astro major version (e.g., `6.x.x` targets Astro v6)
+- **Minor/Patch versions**: Independent package updates
+
+Breaking changes are generally aligned with Astro major releases, but can also occur when required by upstream dependency major changes.
📝 Committable suggestion

‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.

Suggested change
- **Major version**: Matches the Astro major version (e.g., `6.x.x` = Astro v6)
- **Minor/Patch versions**: Independent package updates
Major/Breaking changes are only introduced when Astro releases a new major version.
- **Major version**: Tracks the targeted Astro major version (e.g., `6.x.x` targets Astro v6)
- **Minor/Patch versions**: Independent package updates
Breaking changes are generally aligned with Astro major releases, but can also occur when required by upstream dependency major changes.
🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed.

In `@README.md` around lines 32 - 35, Revise the absolute versioning statement
that currently reads "Major version: Matches the Astro major version (e.g.,
`6.x.x` = Astro v6)" and "Major/Breaking changes are only introduced when Astro
releases a new major version" to acknowledge upstream dependency-driven breaking
changes; update the README wording (the two bullet lines and the following
sentence) to say major version alignment is intended to follow Astro's major
when possible but that breaking changes may also occur due to upstream package
major bumps or other internal decisions, and recommend checking changelogs and
compatibility notes for each release.

@mhdcodes mhdcodes changed the title Astro v6 Update Astro to version 6.x and related adapter dependencies Mar 14, 2026
@mhdcodes mhdcodes merged commit 7d5e6de into main Mar 14, 2026
6 of 7 checks passed
@mhdcodes mhdcodes deleted the astro-6 branch March 14, 2026 22:33
@github-actions github-actions bot mentioned this pull request Mar 14, 2026
@mhdcodes mhdcodes linked an issue Mar 14, 2026 that may be closed by this pull request
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Astro 6 support

1 participant