Skip to content

Upgrade Astro from version 5 to 6 - #4075

Closed
dev-dist wants to merge 2 commits into
mainfrom
worktree-astro-upgrade-pr1
Closed

Upgrade Astro from version 5 to 6#4075
dev-dist wants to merge 2 commits into
mainfrom
worktree-astro-upgrade-pr1

Conversation

@dev-dist

Copy link
Copy Markdown
Collaborator

This pull request introduces several significant updates to the project, primarily focused on upgrading the Node.js and JavaScript framework versions, improving how React and Preact components are handled, and updating related tooling and dependencies. The most important changes are summarized below.

Node.js and Dependency Upgrades

  • Upgraded Node.js version requirements across the project to 22.12.0, updating .nvmrc, .tool-versions, package.json, and GitHub workflow files to ensure consistency. [1] [2] [3] [4] [5]
  • Updated several key dependencies to their latest major versions, including astro (v6), @astrojs/react, @astrojs/preact, @astrojs/mdx, @astrojs/prism, and @astrojs/vercel, as well as the vite build tool. [1] [2] [3]

React/Preact Component Handling Improvements

  • Added a new jsx-renderer-tag integration (src/integrations/jsx-renderer-tag) and updated astro.config.ts to ensure that each .tsx/.jsx file is explicitly tagged for either React or Preact rendering, regardless of how it is imported (including through barrel files). This avoids accidental miscompilation and ensures correct SSR renderer selection. [1] [2] [3]
  • Defined a list of all Preact component files in astro.config.ts and configured the React and Preact integrations to include or exclude files based on this list, preventing renderer conflicts. [1] [2]

Other Notable Changes

  • Updated ESLint configuration to set root: true for better project linting isolation. (.eslintrc.cjs)
  • Minor improvements and fixes in content schema typing and utility imports. [1] [2] [3]

These updates modernize the codebase, improve reliability when mixing React and Preact, and keep the project aligned with the latest ecosystem standards.

@dev-dist
dev-dist requested review from a team as code owners August 17, 2026 20:02
@vercel

vercel Bot commented Aug 17, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
documentation Ready Ready Preview Aug 17, 2026 9:03pm

Request Review

@github-actions

Copy link
Copy Markdown
Contributor

👋 dev-dist, thanks for creating this pull request!

To help reviewers, please consider creating future PRs as drafts first. This allows you to self-review and make any final changes before notifying the team.

Once you're ready, you can mark it as "Ready for review" to request feedback. Thanks!

@dev-dist
dev-dist force-pushed the worktree-astro-upgrade-pr1 branch from e07a078 to e61c8a2 Compare August 17, 2026 20:49
@dev-dist dev-dist closed this Aug 17, 2026
@dev-dist
dev-dist deleted the worktree-astro-upgrade-pr1 branch August 17, 2026 20:54
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