非公式・AI自動要約ニュースサイト(Anthropic公式とは無関係)
Claude News JP / www.claude-news.online
📰 ニュース Anthropic 🔵 標準 LLMコーディング · 出典: SDK (anthropic-sdk-typescript)

レート制限 API の display_name 化、ツール圧縮タイミング制御が可能に。パッチ系の地味だが実装者にはしゃく

TypeScript SDK v0.127.0 リリース:レート制限改良とツール機能強化

原題: anthropics/anthropic-sdk-typescript: sdk: v0.127.0

重要度の根拠: SDK のマイナーバージョンアップで、アクティブユーザーに小規模な新機能追加とバグ修正をもたらすが、破壊的変更なし

要約

Anthropic の TypeScript SDK v0.127.0 がリリースされました。主な改善は、レート制限 API にディスプレイ名(display_name)を追加して group_type を廃止、ツールランナーに compactBeforeNextTurn() メソッドを追加して会話圧縮の前に次のターンを準備できるようにしたことです。加えて、null 圧縮デルタ(compaction_delta)のエンコーディングエラーや複数のベータヘッダ連結の不具合など6件のバグ修正、およびパフォーマンス改善(デバッグログオフ時のリクエスト詳細フォーマットスキップ)が含まれています。TypeScript 6.0.3 への更新と jest から vitest への移行も同時進行しています。

要点

  • rate limits API に display_name 追加、group_type は廃止予定化
  • ツールランナーに compactBeforeNextTurn() メソッド追加
  • null compaction_delta のシリアライゼーションバグ修正
  • anthropic-beta ヘッダ複数値の連結ロジック修正
  • TypeScript 6.0.3 への更新と jest→vitest 移行
開発者向け技術解説(API・実装詳細・破壊的変更)を見る

v0.127.0 では API 層で rate limits に display_name を追加し group_type は廃止予定化(breaking change の前段)。tools モジュールの ToolRunner に compactBeforeNextTurn() メソッド追加により、メッセージ圧縮前に次ターン処理をスケジュール可能に。BetaMessageStream で compaction_delta が null の場合の「null" 文字列化バグ修正、複数の anthropic-beta ヘッダを正しく','区切りで連結(スペース除去)、client namespace からの pagination エクスポートを type-only 化。transformJSONSchema() が $ref ルートの場合に $defs を保持するよう修正。デバッグログ無効時にリクエスト詳細のフォーマット処理を skip してメモリ削減。tsconfig.json から jest 型参照削除、ビルド体系を TypeScript 6.0.3・typescript-eslint 8.58.0・vitest に統一。

本文の日本語訳(全文)を見る

## 0.127.0 (2026-09-18)

完全な変更ログ: [sdk-v0.126.0...sdk-v0.127.0](https://github.com/anthropics/anthropic-sdk-typescript/compare/sdk-v0.126.0...sdk-v0.127.0)

### 新機能

* **api:** レート制限に display_name でグループを追加、group_type を廃止予定化 ([2575d97](https://github.com/anthropics/anthropic-sdk-typescript/commit/2575d977be0508d0bd3e3c429b758efeb1e240a2))

* **tools:** ツールランナーに compactBeforeNextTurn() を追加 ([#682](https://github.com/anthropics/anthropic-sdk-typescript/issues/682)) ([9f75ca6](https://github.com/anthropics/anthropic-sdk-typescript/commit/9f75ca69905ba808709c95f31c4159e74fbf6e19))

### バグ修正

* **BetaMessageStream:** null compaction_delta コンテンツを "null" 文字列に強制変換しないよう修正 ([#655](https://github.com/anthropics/anthropic-sdk-typescript/issues/655)) ([dbd6845](https://github.com/anthropics/anthropic-sdk-typescript/commit/dbd684543914f57d8d974d28ad97769d123e56a1))

* **client:** ボディがストリームまたはイテレータであるリクエストを再試行しないよう修正 ([eebc1b9](https://github.com/anthropics/anthropic-sdk-typescript/commit/eebc1b995b031c7e288a03c1621a3834cc71f3e3))

* **client:** 複数の anthropic-beta 値をカンマで連結(スペースなし)するよう修正 ([#638](https://github.com/anthropics/anthropic-sdk-typescript/issues/638)) ([e0cb1ff](https://github.com/anthropics/anthropic-sdk-typescript/commit/e0cb1ff479dcd26e58e47dc1ba8c9d68d191e6b5))

* **client:** クライアント名前空間上の pagination エクスポートを type-only にする ([5adea1f](https://github.com/anthropics/anthropic-sdk-typescript/commit/5adea1f6fa5063b06fe3384f23d46fb0418da3c4))

* **internal:** tsconfig types から jest を削除 ([60588af](https://github.com/anthropics/anthropic-sdk-typescript/commit/60588af343e0c19cc507e5eaef62fb86f28c4c38))

* **middleware:** フォールバック継続時にストリーム圧縮サマリを反映するよう修正 ([#657](https://github.com/anthropics/anthropic-sdk-typescript/issues/657)) ([2e0f004](https://github.com/anthropics/anthropic-sdk-typescript/commit/2e0f0042e8d39d0dccfac8bdcaa42e3d10de626e))

* **tools:** transformJSONSchema ルートが $ref の場合 $defs を保持するよう修正 ([#687](https://github.com/anthropics/anthropic-sdk-typescript/issues/687)) ([57a9f30](https://github.com/anthropics/anthropic-sdk-typescript/commit/57a9f30bf3cb166666dc8fa3006384977cca8bf6))

### パフォーマンス改善

* **client:** デバッグログが無効な場合、リクエスト詳細のフォーマットをスキップ ([2b29ed2](https://github.com/anthropics/anthropic-sdk-typescript/commit/2b29ed2f71ea72beed40fea45f532f5aec64af2d))

### その他

* **ci:** Node 24 とそのバンドル npm からリリース公開 ([6b3c6f5](https://github.com/anthropics/anthropic-sdk-typescript/commit/6b3c6f544a17d268ca24e56458b391bb3ad13b26))

* **docs:** enum 値とパスパラメータの説明を追加 ([cb254c4](https://github.com/anthropics/anthropic-sdk-typescript/commit/cb254c48f3d15edb66b77ff36a3835123ef31fc6))

* **docs:** 圧縮 tool_changes と tool change の説明を明確化 ([5a695eb](https://github.com/anthropics/anthropic-sdk-typescript/commit/5a695eb84e48b7e639465aecd09442ac168f78a5))

* **internal:** TypeScript 6.0.3 でサブパッケージをビルド ([8a69ff5](https://github.com/anthropics/anthropic-sdk-typescript/commit/8a69ff594ffeec3f6bd964030086b01ae5354aaf))

* **internal:** TypeScript 6.0.3 と typescript-eslint 8.58.0 でビルド ([01f3ee6](https://github.com/anthropics/anthropic-sdk-typescript/commit/01f3ee693619bd099ce2a85c76a565a46885be19))

* **internal:** lib/internal を公開エクスポートマップから除外 ([763fb43](https://github.com/anthropics/anthropic-sdk-typescript/commit/763fb43ee3a8d55fda55d99fe84a3af4d894366c))

* **internal:** pagination クラスをプレーンエクスポートリストで再エクスポート ([c77bdc3](https://github.com/anthropics/anthropic-sdk-typescript/commit/c77bdc3ce95e56cfce425fb1fb1edf21caa74de5))

* **internal:** 単一の Simplify 型ユーティリティを共有 ([31d5e75](https://github.com/anthropics/anthropic-sdk-typescript/commit/31d5e7574613a6be77e9be5b88b2e73eef50dca2))

* **internal:** ユニットテストを jest から vitest に切り替え ([110542d])

API/SDKパフォーマンス対象: 開発者

出典: https://github.com/anthropics/anthropic-sdk-typescript/releases/tag/sdk-v0.127.0

媒体: SDK (anthropic-sdk-typescript)

※本記事は Anthropic / Claude 関連の公開情報を基に AI (OpenAI GPT-4o-mini) が日本語で要約・分類した二次的著作物です。著作権法第32条の引用要件に基づき出典 URL を必ず併記しています。要約は AI 生成のため誤訳・誤解釈を含む可能性があります。詳細・正確な情報は必ず出典元の原文をご確認ください。