Repository navigation
chore(deps): dependencies を更新 - #338
Merged
Merged
Conversation
- @astrojs/check 0.9.10 -> 0.9.11 - astro 7.3.1 -> 7.4.1 - typescript 5.9.3 -> 6.0.3 typescript は 7.0.2 が最新だが @astrojs/check の peerDependencies が ^5.0.0 || ^6.0.0 のため 6 系に留める。 あわせて astro の optionalDependencies である sharp を 0.35.4 -> 0.35.5 に更新し、librsvg の脆弱性 (GHSA-wq5f-xc86-pv6w) を解消する。
2 of 3 tasks
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.
概要
dependencies を、公開から 14 日以上経過した最新版に更新しました(
.npmrcのmin-release-age=14に従う)。バージョン指定は既存どおり^レンジです。dayjs と github-markdown-css は最新版のため変更なしです。
min-release-ageのため見送った版:astro 7.4.2〜7.4.5、@astrojs/check 0.9.12この PR で
npm auditがfound 0 vulnerabilitiesになります(master では 9 件:high 6、moderate 3)。default branch の Dependabot アラートのうち、次のものは lockfile 上で修正版になりました。typescript 6.0: 次の変更があります。
strictがtrue、moduleがesnext、targetがes2025、typesが[]、rootDirが tsconfig のディレクトリ、noUncheckedSideEffectImportsがtruebaseUrl、moduleResolution: node、target: es5、outFileなどこのリポジトリの
tsconfig.jsonはastro/tsconfigs/strictを継承し、strictNullChecks/jsx/jsxImportSourceを上書きしているだけです。非推奨のオプションは使っていません。astro checkとtsc --noEmitはともに 0 errors / 0 warnings でした。@astrojs/checkの peerDependencies(^5.0.0 || ^6.0.0)の範囲外です。astro 7.3.4 の CHANGELOG にも「astro checkは TypeScript 7 をまだサポートしない」とあるため、6 系に留めています。astro 7.4.0: Node.js の最低バージョンが 22.22.0 になりました。
.node-versionは 24.22.1 なので影響はありません。astro 7.3.2: MDX 内の
<script>{value}</script>のような動的な値をエスケープするようになりました。このリポジトリには.mdxが無いので影響はありません。astro 7.3.8: 内部のバンドルが esbuild から Rolldown / Oxc に変わりました。lockfile から
esbuildと@esbuild/*が消えているのはこのためです。ビルド結果の差分:
distを master のビルド結果と比べ、差分は次の 2 つだけでした。<meta name="generator">(Astro v7.3.1→v7.4.1)<ClientRouter />のスクリプト:7.3.6 の<video muted>保持の修正と、ミニファイ結果の違い。ファイル名のハッシュも変わっています画像・CSS・HTML 本文に差分はありません。
変更内容(全版)
astro 7.3.1 → 7.4.1
出典はすべて packages/astro/CHANGELOG.md です。
<script>/<style>で、リテラル以外の値をエスケープ。i18n の fallback ルーティングと、Cloudflare の dev での session を修正svgoを 4.0.2 に更新(セキュリティアドバイザリ対応)。画像エンドポイントで不正なパスに 400 / 404 を返すよう修正。trailing slash リダイレクトの本文の修正。dev サーバ起動の高速化。ほか多数の修正astro checkを実行したときのエラー表示を改善(TS 7 は非対応と明示)。Markdown 画像のalt/titleの&が二重にエスケープされる問題を修正。incremental build の修正renderComponent()を追加<video muted>が保持されるよう修正。CSRF 対策の改善。Node アダプタでHostヘッダをsecurity.allowedDomainsで検証。ビルド出力の決定性の改善。ほか多数の修正glob({ deferRender: true })とlayoutfrontmatter の組み合わせで起きるビルドエラーを修正。security.checkOriginの修正glob()loader の修正astro build --timings、experimental.redirectPage、experimental.parallelPrerender、build 用と runtime 用で別の image service を指定する機能などを追加。glob()loader がレンダリングエラーを握りつぶす問題を修正TSCONFIG_ERRORを修正。dev のメモリリークを修正@astrojs/check 0.9.10 → 0.9.11
--preserveWatchOutputのヘルプ文言を修正。パスにnode_modulesや.gitを含むプロジェクトで--watchがすぐ終了する問題を修正 (CHANGELOG)typescript 5.9.3 → 6.0.3
thisを使わない関数を推論時に context-sensitive として扱わなくなった、関数式を渡すジェネリック呼び出しの型チェックが厳しくなった、dom.iterableがlib.dom.d.tsに統合された、など (release, announcement)sharp 0.35.4 → 0.35.5(lockfile のみ)
linear/ GIFdelay配列の長さ上限のチェック、WebAssembly fallback のエラー処理の改善など (release)^0.35.4)は満たしていたため、npm update sharpで lockfile だけ更新しています更新に伴うコード修正
なし
未確認
確認したこと
npm ci --ignore-scripts(CI と同じ)npm run build(astro check && tsc --noEmit && astro build):0 errors / 0 warnings / 0 hints、74 ページ(master と同数)distを master のビルド結果と比較(差分は上記の generator の meta と ClientRouter のスクリプトのみ)npm audit:found 0 vulnerabilitiesresolvedのホストの比率が master と同程度(npm.flatt.techが主)であることを確認