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.326 to 0.3.327

1 release in betweenevery note read

Reading releases, release notes and advisories…

Other targets from 0.3.326Newest 0.x, Latest0.3.330
  1. 0.3.326yours
  2. 0.3.327target
3
changes to make
0
advisories fixed
0
new
2
fixes

Before you upgrade

Tick each one off as you go
  • Breaking0.3.327
  • Breaking0.3.327
  • Deprecated0.3.327

Release by release

  1. 0.3.327

    Migration needed17 Nov 20262 fixes
    • Breaking

      Changed query(), startup() and prewarm() to refuse options that can't be sent to Claude Code, such as an agent with a circular or BigInt field. Fix the named option.

    • Breaking

      Changed hook options to require arrays: a hook event's value and a matcher's hooks. A Set, generator, plain object, true or number is now refused.

    • Deprecated

      Deprecated createSdkMcpServer() servers in an agent's mcpServers: ignored with a warning, and other options apply. Move them to top-level mcpServers, which gives the main session their tools.

    • Fixed

      Fixed task_started sending Claude Code's own text, such as a task notification, as prompt when a background subagent is woken; such an event now has no prompt

    • Fixed

      Fixed Claude reporting a background agent as still running when its permission request had waited on canUseTool for 30 seconds or more

4 other lines we could not sort, mostly version bumps
  • Reverted 0.3.326's fix for a tool result from an SDK MCP server being lost, or delivered to another call, after a reconnect

    0.3.327
  • Changed the JSON-RPC id of requests to an SDK MCP server back from a string to a number

    0.3.327
  • Changed background retries for most MCP servers on other machines, reached by hostname over https, to go on for about a day after a drop, up from at most about 27 minutes

    0.3.327
  • Updated to parity with Claude Code v2.1.327

    0.3.327

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.