chore(deps): upgrade astro to v7 and align @astrojs/* integrations#1866
Open
lacolaco wants to merge 2 commits into
Open
chore(deps): upgrade astro to v7 and align @astrojs/* integrations#1866lacolaco wants to merge 2 commits into
lacolaco wants to merge 2 commits into
Conversation
Astro v7 で Sätteri がデフォルトの Markdown プロセッサに変わったため、 既存 の remark/rehype プラグイン (remarkEmbed/remarkMath/rehypeImageCdn 他) を 維持するために @astrojs/markdown-remark の unified() を markdown.processor に明示指定する。 併せて peer dependency の @astrojs/node を v11、 @astrojs/react を v6 (Vite v8 対応) に追従する。 - astro 6.4.8 → 7.0.4 - @astrojs/node 10.0.4 → 11.0.0 - @astrojs/react 5.0.7 → 6.0.0 - @astrojs/markdown-remark ^7.2.0 を追加 Supersedes #1853 (Renovate の自動 PR は手作業対応のため close)。 Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Contributor
|
🚀 Preview deployment ready! ✅ Preview URL: https://pr-1866---web-njpdbbjcea-an.a.run.app This comment was automatically generated by the deploy-preview workflow. |
retrospective-critic で Stack の version 表記が一世代前 (Astro 5.x) のまま放置されていた ことが指摘された。 本 PR で Astro 7.x へアップグレードしたタイミングに合わせて Stack section を最新化する。 pnpm も lockfile の `packageManager: pnpm@10.34.4` に揃える。 Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Contributor
There was a problem hiding this comment.
Astro v6→v7アップグレードPR。コードへの変更は astro.config.ts への processor: unified() 追加のみで最小限。Astro v7でデフォルトの Markdown プロセッサが Sätteri に変わったことへの対応として、既存の remark/rehype プラグインパイプラインを維持するための正しいアプローチ。コメントに変更理由・参照URLが記載されており、PR本文にはビルド・lint・テスト全通過の確認結果も記録されている。潜在的なバグ・セキュリティ問題・パフォーマンス上の懸念なし。
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Astro v6 → v7 アップグレード。 Renovate PR #1853 を手作業で再構成して置き換える。
astro6.4.8 → 7.0.4@astrojs/node10.0.4 → 11.0.0@astrojs/react5.0.7 → 6.0.0 (Vite v8 対応)@astrojs/markdown-remark^7.2.0 を新規追加なぜ
Astro v7 で Sätteri がデフォルトの Markdown プロセッサに変わり、 既存の remark/rehype パイプライン (
remarkBreaks/remarkMath/remarkEmbed/rehypeExtractVideoHtml/rehypeGithubEmoji/rehypeGithubAlert/rehypeKatex/rehypeMermaid/rehypeImageCdn) を維持するには@astrojs/markdown-remarkのunified()をmarkdown.processorに明示する必要がある (CHANGELOG v7.0.0 で明示)。カスタムプラグインはすべて unified/remark/rehype エコシステム上で書かれており、 Sätteri ネイティブ化は別途大きな書き換えが必要なため、 本 PR では unified への opt-back を選択。
前提検証
getContainerRenderer(@astrojs/react v6 で import path 変更) はプロジェクト内で未使用compressHTML/experimental.*/src/fetch.ts/astro:transitions内部 API は未使用@astrojs/nodev11 standalone モードの entry point はdist/server/entry.mjs変更なし → Dockerfile L32 と整合astro:dbは使用しておらず削除影響なしローカル検証
pnpm build✅ (14.6s)pnpm lint✅pnpm format:check✅pnpm test:tools✅ (247 tests pass)pnpm test:libs✅ (15 files / 176 tests pass)関連
Test plan
compressHTMLデフォルトが'jsx'化、 インライン要素間スペースの挙動変化)🤖 Generated with Claude Code