Skip to content

build(deps-dev): bump katex from 0.17.0 to 0.18.1#1120

Merged
kodiakhq[bot] merged 1 commit into
developfrom
dependabot/npm_and_yarn/develop/katex-0.18.1
Jul 24, 2026
Merged

build(deps-dev): bump katex from 0.17.0 to 0.18.1#1120
kodiakhq[bot] merged 1 commit into
developfrom
dependabot/npm_and_yarn/develop/katex-0.18.1

Conversation

@dependabot

@dependabot dependabot Bot commented on behalf of github Jul 20, 2026

Copy link
Copy Markdown
Contributor

Dependabot compatibility score

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


Dependabot commands and options

You can trigger Dependabot actions by commenting on this PR:

  • @dependabot rebase will rebase this PR
  • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
  • @dependabot show <dependency name> ignore conditions will show all of the ignore conditions of the specified dependency
  • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)

---
updated-dependencies:
- dependency-name: katex
  dependency-version: 0.18.1
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
@github-actions

github-actions Bot commented Jul 20, 2026

Copy link
Copy Markdown
Contributor

Claude finished @dependabot[bot]'s task in 1m 0s —— View job


KaTeX 0.18.1 アップデートレビュー

📋 レビュー概要

Dependabotによる KaTeX のマイナーバージョンアップデート(0.17.0 → 0.18.1)のレビューを実施しました。以下が分析結果です。


✅ 良好な点

  1. Dependabot自動管理

    • 依存パッケージの自動更新により、セキュリティパッチの適用が容易
  2. 適切なバージョン指定

    • package.json のバージョン指定が正確に更新されている
    • package-lock.json も適切に同期されている
  3. 後方互換性

    • マイナーバージョンアップ(0.17.0 → 0.18.1)のため、通常は後方互換性が保たれている

⚠️ 指摘事項

  1. テストカバレッジの不足

    • tools/katex.ts で KaTeX を使用しているが、専用のテストが存在しない
    • 以下の関数/オプションについて動作検証がない:
      • katex.renderToString()
      • KatexOptions(displayMode, trust, colorIsTextColor)
  2. セキュリティオプションの確認

    • trust: true オプションが使用されている(XSS 対策が無効)
    • ビルド時のみの使用のため実運用上の危険性は低いが、レビューと動作確認は必須
  3. 互換性検証が未実施

    • KaTeX 0.18.1 の主な変更点(API 変更、新機能など)の確認記録がない
    • tools/katex.ts で使用されている全オプションが 0.18.1 で継続サポートされているか明示的な確認が必要

🔍 技術的な確認項目

現在の KaTeX 使用状況:

// tools/katex.ts より
const mathjaxOpt: katex.KatexOptions = {
    displayMode,
    trust: true,
    colorIsTextColor: true
};
process.stdout.write(katex.renderToString(input, mathjaxOpt));
  • displayMode: インライン/ディスプレイモードの切り替え
  • trust: HTML/LaTeX マクロの信頼設定
  • colorIsTextColor: カラーレンダリング方式

推奨アクション:

  1. 本 PR マージ前に、実際に npm test を実行して動作確認
  2. 可能であれば KaTeX 0.18.1 のリリースノートを確認
  3. tools/katex.ts の統合テストを追加検討

結論

このアップデートは標準的な Dependabot による依存パッケージ更新であり、大きなリスクは認められません。ただし、KaTeX の使用箇所に対するテストカバレッジの強化を推奨します。

@github-actions

Copy link
Copy Markdown
Contributor

Coverage Report

Status Category Percentage Covered / Total
🔵 Lines 29.06% 603 / 2075
🔵 Statements 29.09% 622 / 2138
🔵 Functions 31.08% 115 / 370
🔵 Branches 20.94% 217 / 1036
File CoverageNo changed files found.
Generated in workflow #1111 for commit 8912cc4 by the Vitest Coverage Report Action

@github-actions

Copy link
Copy Markdown
Contributor

Haskell Test Coverage Report

Generating combined coverage report.
Summary combined coverage report:
 78% expressions used (1005/1287)
 55% boolean coverage (5/9)
      50% guards (3/6), 3 always True
      66% 'if' conditions (2/3), 1 always True
     100% qualifiers (0/0)
 77% alternatives used (34/44)
 67% local declarations used (38/56)
 50% top-level declarations used (126/251)
The combined coverage report is available at
/Users/runner/work/roki-web/roki-web/.stack-work/install/aarch64-osx/c8bd8cc889b4268cdf5e7d0b073c5450e5447f77efaf84c8174147ae1a288879/9.6.6/hpc/combined/custom/hpc_index.html.

Generated by stack hpc report

@falgon falgon left a comment

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

CI全チェックpass、devDependencies/依存関係のpatch/minorバンプのみで、ソースコードの変更なし。差分・影響範囲を確認し承認します。

@kodiakhq
kodiakhq Bot merged commit a81a03e into develop Jul 24, 2026
17 checks passed
@dependabot
dependabot Bot deleted the dependabot/npm_and_yarn/develop/katex-0.18.1 branch July 24, 2026 08:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant