Packages

@anthropic-ai/claude-agent-sdk

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

Your version

0.3.300

14 Oct 2026Where it was published

0.3.330 is the newest release of 0.3.x.

In short

3 fixed5 changed

Release note

What's changed

  • Fixed importSessionToStore skipping transcript rows that contain a Unicode line or paragraph separator (U+2028, U+2029) on Node 24 and Bun

  • Fixed a background subagent's final report in auto mode being joined into one turn with another message from the same subagent; the report now always runs as its own turn

  • Fixed rewind_conversation with interrupt_if_running stopping the running turn before refusing with "unseen later turn"

  • Reverted canUseTool options carrying suppressAlwaysAllowRule: true for connector tools that an organization set to require approval (added in 0.3.292)

  • Improved the browser SDK bundle (@anthropic-ai/claude-agent-sdk/browser): 40% smaller to download, by no longer bundling a Node crypto polyfill

  • Changed thinking: { type: 'disabled' } and maxThinkingTokens: 0 to run as adaptive thinking on models that can't turn thinking off

  • Changed updatedInput from PreToolUse and PermissionRequest hook callbacks: it is now validated like Claude's own input and unknown keys are dropped; canUseTool is unchanged

  • Updated to parity with Claude Code v2.1.300

Update

npm install @anthropic-ai/claude-agent-sdk@0.3.300
# or
yarn add @anthropic-ai/claude-agent-sdk@0.3.300
# or
pnpm add @anthropic-ai/claude-agent-sdk@0.3.300
# or
bun add @anthropic-ai/claude-agent-sdk@0.3.300

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.