Packages

@anthropic-ai/claude-agent-sdk

0.3.330 · 20 Nov 2026SEE LICENSE IN README.md20.7M / weekRepositorynpmAtom feed

Upgrading @anthropic-ai/claude-agent-sdk From 0.3.316 to 0.3.317

1 release in betweenevery note read

Reading releases, release notes and advisories…

Other targets from 0.3.316Newest 0.x, Latest0.3.330
  1. 0.3.316yours
  2. 0.3.317target
0
changes to make
0
advisories fixed
6
new
1
fix

Release by release

  1. 0.3.317

    3 Nov 20266 new · 1 fix
    • New

      Added onFailure to hook matchers: with "block", a hook that throws or returns invalid output blocks the action

    • New

      Added a warning message in the stream when a hook callback fails

    • New

      Added a session_writes_lost system message, sent after the last result when a full disk or disk quota kept the CLI from saving the session transcript or ~/.claude.json

    • New

      Added initialize_not_first to startup_failure_reason, for a --await-initialize launch whose first stdin line is not the initialize request

    • New

      Added task.description to the TaskCreate tool's tool_use_result: the description the task was created with

    • New

      Added lossy to readFile() utf-8 answers: true when decoding replaced bytes that are not valid UTF-8

    • Fixed

      Fixed setMcpServers closing a folder's .mcp.json and local-scope MCP servers in sessions started with prewarm() and bound with SpareProcess.claim()

2 other lines we could not sort, mostly version bumps
  • Removed the file_unchanged variant of FileReadOutput in sdk-tools.d.ts; a repeated Read now returns the file content

    0.3.317
  • Updated to parity with Claude Code v2.1.317

    0.3.317

A whole project to check? Paste its package.json in the dependency check: every deprecated, outdated or vulnerable dependency, with what to upgrade to. Free, no account.