Skip to content

Upgrade to Astro v7#1307

Merged
mhdcodes merged 4 commits into
mainfrom
upgrade-to-astro-v7
Jun 22, 2026
Merged

Upgrade to Astro v7#1307
mhdcodes merged 4 commits into
mainfrom
upgrade-to-astro-v7

Conversation

@mhdcodes

@mhdcodes mhdcodes commented Jun 22, 2026

Copy link
Copy Markdown
Member

Summary by CodeRabbit

  • Chores
    • Updated Astro framework compatibility to Astro v7.0.0 across examples and packages.
    • Updated the Astro Node adapter to v11.0.0 in the affected example apps.
    • Bumped related development and formatting/testing tool dependencies to newer compatible versions.
    • Updated peer dependency ranges for Astro to ensure consistent Astro v7 support across all relevant packages.
    • Added a pnpm override to pin vite-node to ^6.0.0.

@changeset-bot

changeset-bot Bot commented Jun 22, 2026

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: 8289d84

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

coderabbitai Bot commented Jun 22, 2026

Copy link
Copy Markdown
Contributor

Review Change Stack

📝 Walkthrough

Walkthrough

All package.json files across the monorepo are updated to target Astro ^7.0.0 (from ^6.x) and @astrojs/node ^11.0.0 (from ^10.x) in both app dependencies and package peerDependencies. The root package.json also bumps several tooling devDependencies and adds a pnpm.overrides entry for vite-node.

Changes

Astro v7 upgrade across monorepo

Layer / File(s) Summary
Package peerDependencies: astro ^6 → ^7
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
peerDependencies.astro updated from ^6.0.0 to ^7.0.0 in all nine library packages.
App and root dependency bumps
apps/example-purgecss-ssr/package.json, apps/example-purgecss/package.json, apps/example-useragent/package.json, apps/playground/package.json, package.json, packages/astro-vanilla-extract/package.json
App manifests bump astro to ^7.0.0 and @astrojs/node to ^11.0.0; root manifest adds pnpm.overrides for vite-node and bumps @arethetypeswrong/cli, @changesets/cli, @types/node, prettier, turbo, and vitest; @vanilla-extract/vite-plugin updated to ^5.2.0.
Changeset documentation
.changeset/sparkly-lands-press.md
Declares seven astro-prefixed packages as major version bumps and specifies the upgrade to Astro v7.

Estimated code review effort

🎯 1 (Trivial) | ⏱️ ~3 minutes

Possibly related PRs

  • codiume/orbit#1295: Also performs astro and @astrojs/node version bumps across the same set of apps/* and packages/astro-* manifests.
  • codiume/orbit#1283: Modifies packages/astro-seo-schema/package.json to update the build system; overlaps with this PR's peer dependency update in the same file.

Poem

🐰 Hop, hop, hooray — version seven is here!
Bumped all the peers with a twitch of my ear,
From six to seven, each package aligned,
The node adapter and tooling refined.
No breaking hops — just manifests, clean and bright! ✨

🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The pull request title 'Upgrade to Astro v7' accurately and concisely summarizes the main objective of the changeset, which is to upgrade all Astro dependencies and peer dependencies across the monorepo from v6 to v7.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.

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

✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch upgrade-to-astro-v7

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.

@pkg-pr-new

pkg-pr-new Bot commented Jun 22, 2026

Copy link
Copy Markdown

Open in StackBlitz

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

commit: 8289d84

@coderabbitai coderabbitai Bot left a comment

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.

Actionable comments posted: 1

🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

Inline comments:
In `@package.json`:
- Around line 9-13: In the pnpm overrides section of package.json, locate the
vite-node entry and change its value from the current ^6.0.0 to the pinned
version 3.2.4 to ensure compatibility with the vitest version specified in
devDependencies.
🪄 Autofix (Beta)

Fix all unresolved CodeRabbit comments on this PR:

  • Push a commit to this branch (recommended)
  • Create a new PR with the fixes

ℹ️ Review info
⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro

Run ID: 45199fe4-1497-4475-8b9b-87a1dfa6f8ff

📥 Commits

Reviewing files that changed from the base of the PR and between 5082f80 and 90662f6.

⛔ Files ignored due to path filters (1)
  • pnpm-lock.yaml is excluded by !**/pnpm-lock.yaml
📒 Files selected for processing (3)
  • .changeset/sparkly-lands-press.md
  • package.json
  • packages/astro-vanilla-extract/package.json
✅ Files skipped from review due to trivial changes (1)
  • .changeset/sparkly-lands-press.md

Comment thread package.json Outdated
Comment on lines +9 to +13
"pnpm": {
"overrides": {
"vite-node": "^6.0.0"
}
},

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 | 🔴 Critical

🧩 Analysis chain

🌐 Web query:

What version of vite-node is required for Astro v7?

💡 Result:

Astro v7 does not require any specific version of vite-node. Astro’s official v7 upgrade guide says Astro v7 “upgrades to Vite 8 as the development server and production bundler” [1]. The sources found for Astro v7 do not mention vite-node at all, and Astro’s Node integration docs describe the @astrojs/node adapter (not vite-node) for on-demand rendered routes [2]. Therefore, there is no authoritative “vite-node version required for Astro v7” specified in the official Astro documentation. If you’re seeing vite-node in your toolchain, it’s likely coming from a separate dependency (e.g., a dev SSR tool) rather than being a required Astro v7 component.

Citations:


🏁 Script executed:

cat package.json

Repository: codiume/orbit

Length of output: 1207


🏁 Script executed:

# Search for vite-node usage in the codebase
rg "vite-node" --type js --type ts --type json

Repository: codiume/orbit

Length of output: 98


🏁 Script executed:

# Check if Astro is in any workspace package.json
find apps packages -name "package.json" -type f 2>/dev/null | head -20 | xargs grep -l "astro" 2>/dev/null

Repository: codiume/orbit

Length of output: 539


🏁 Script executed:

# Search for any documentation or comments about vite-node or the override
rg "vite-node|vite\s*6|vitest.*version" -A 2 -B 2 --type md --type txt

Repository: codiume/orbit

Length of output: 39


🏁 Script executed:

# Check the git history to understand why this override was added
git log --oneline --all -S "vite-node" -- package.json 2>/dev/null | head -5

Repository: codiume/orbit

Length of output: 102


🏁 Script executed:

# Show the commit that added the override
git show 90662f6 --stat

Repository: codiume/orbit

Length of output: 10384


🏁 Script executed:

# Check vitest and vite-node compatibility
web_search
What is the recommended vite-node version for vitest 4.1.9?

Repository: codiume/orbit

Length of output: 151


🌐 Web query:

vitest 4.1.9 vite-node version compatibility

💡 Result:

Vitest version 4.1.9 explicitly requires and pins vite-node to version 3.2.4 [1]. While Vitest previously relied on vite-node as its engine, the Vitest project has migrated to Vite's official built-in environment runner [2][3]. As part of this transition, Vitest pinned the final supported version of the external vite-node package to 3.2.4 to maintain stability for users still relying on that legacy architecture [1][4]. You should ensure your project uses vite-node 3.2.4 when working with Vitest 4.1.9 [1].

Citations:


🏁 Script executed:

# Check vitest config for clues about vite-node
cat vitest.config.mts

Repository: codiume/orbit

Length of output: 216


Fix vite-node override: use version 3.2.4 for vitest compatibility.

The override sets vite-node to ^6.0.0, but vitest 4.1.9 (in devDependencies) explicitly requires vite-node pinned to 3.2.4. Vitest has migrated to Vite's built-in environment runner, and 3.2.4 is the final supported version for the legacy vite-node architecture. The current override will cause version conflicts. Change "vite-node": "^6.0.0" to "vite-node": "3.2.4".

🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In `@package.json` around lines 9 - 13, In the pnpm overrides section of
package.json, locate the vite-node entry and change its value from the current
^6.0.0 to the pinned version 3.2.4 to ensure compatibility with the vitest
version specified in devDependencies.

@mhdcodes
mhdcodes merged commit 1f275d4 into main Jun 22, 2026
6 checks passed
@mhdcodes
mhdcodes deleted the upgrade-to-astro-v7 branch June 22, 2026 18:14
@github-actions github-actions Bot mentioned this pull request Jun 22, 2026
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.

1 participant