Skip to content

feat: upgrade to Astro 7#16

Merged
OzTamir merged 4 commits into
mainfrom
feat/astro-7
Jun 24, 2026
Merged

feat: upgrade to Astro 7#16
OzTamir merged 4 commits into
mainfrom
feat/astro-7

Conversation

@OzTamir

@OzTamir OzTamir commented Jun 24, 2026

Copy link
Copy Markdown
Owner

Summary

Upgrades the blog from Astro 6 to Astro 7.0.2.

The headline Astro 7 breaking change is the Markdown pipeline moving to the Rust-based Sätteri processor. This blog already used markdown.processor: unified() (since 6.4) and its two custom remark plugins (video embeds, image captions) are unified plugins, so the migration was mostly mechanical: make the unified-pipeline deps explicit, since astro no longer bundles them.

Changes

  • build(deps)astro ^6^7, @astrojs/react ^5^6 (required for v7), @tailwindcss/vite + tailwindcss^4.3.1 (Vite 8 compat), @astrojs/check^0.9.9. Added @astrojs/markdown-remark, unist-util-visit, unified, remark-parse, remark-rehype, rehype-stringify as explicit deps.
  • chore(config) — pinned compressHTML: true. Astro 7's new default is 'jsx' (collapses inter-element whitespace via JSX rules); pinning true preserves byte-identical v6 rendering, in line with the "don't redesign" mandate.
  • docs — updated AGENTS.md for the Astro 7 markdown pipeline, and added commit & PR conventions to the agent rules (Conventional Commits, small focused commits, verify-before-commit, branch-off-main + PR).

Not applicable (confirmed)

No src/fetch.ts, no astro:transitions/@astrojs/db, no experimental flags, no MDX — none of the other v7 breaking changes touch this repo.

Verification

  • astro check: 0 errors (56 files)
  • npm run build: 130 pages; captions, video embeds, and Shiki output verified correct in dist
  • remark-plugin unit tests: 5/5 pass
  • npm run check:links: no broken links (2822 refs)
  • astro preview (v7.0.2): /, a post, /rss.xml, /sitemap-index.xml, /llms.txt, a tag page all return 200

Reference: followed the same approach as the astro-modular Astro 7 migration.

🤖 Generated with Claude Code

OzTamir and others added 4 commits June 24, 2026 12:16
Bump astro ^6 → ^7, @astrojs/react ^5 → ^6 (required for v7), and
@tailwindcss/vite + tailwindcss → ^4.3.1 for the Vite 8 that Astro 7
pulls in. Bump @astrojs/check → ^0.9.9.

Astro 7's default Markdown processor is Sätteri (Rust); we keep the
unified (remark/rehype) pipeline our remark plugins depend on, so make
its deps explicit since astro no longer bundles them: add
@astrojs/markdown-remark + unist-util-visit (build) and
unified/remark-parse/remark-rehype/rehype-stringify (tests).

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Astro 7 changes the compressHTML default from `true` to `'jsx'`, which
collapses whitespace between inline elements using JSX rules. Pin it to
`true` to preserve the exact v6 HTML/whitespace output — this blog keeps
its established look. Also refresh the markdown comment to reflect the
Sätteri-vs-unified opt-in.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Astro 6 → 7, and rewrite the remark-plugin note: Sätteri is the new
default, we opt back into the unified pipeline via the now-explicit
@astrojs/markdown-remark, and compressHTML: true is pinned.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Document the workflow conventions in AGENTS.md so future agents follow
them: Conventional Commits, small/focused commits, verify before
committing, and branch-off-main + PR (Cloudflare deploys from main).

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@cloudflare-workers-and-pages

Copy link
Copy Markdown

Deploying with  Cloudflare Workers  Cloudflare Workers

The latest updates on your project. Learn more about integrating Git with Workers.

Status Name Latest Commit Preview URL Updated (UTC)
✅ Deployment successful!
View logs
posts 465538a Commit Preview URL

Branch Preview URL
Jun 24 2026, 09:19 AM

@OzTamir OzTamir merged commit f722b00 into main Jun 24, 2026
3 checks passed
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