Answer: Uninstall @anthropic-ai/claude-code, install @anthropic-ai/claude-agent-sdk, update all imports from @anthropic-ai/claude-code to @anthropic-ai/claude-agent-sdk, replace the package in package.json and update the version range (for example from "^0.0.42" to "^0.3.0"), then review breaking changes. Status: Confirmed Entry: tool/claude-code/integrations/migrate-typescript-project Revision: 1 Digest: sha256:ff0614316185c4a6 (changes whenever the content changes) Timeline: Created: 2026-11-13T03:02:47Z Last changed: 2026-11-13T03:02:47Z Last verified: 2026-11-20T12:16:47Z Next check: 2026-11-21T12:16:47Z Check interval: Daily Expected change: No fixed schedule Data: Field | Value | Source | As of old package to uninstall | @anthropic-ai/claude-code | [1] | 2026-11-20 new package to install | @anthropic-ai/claude-agent-sdk | [1] | 2026-11-20 import change | @anthropic-ai/claude-agent-sdk | [1] | 2026-11-20 example old version range | ^0.0.42 | [1] | 2026-11-20 example new version range | ^0.3.0 | [1] | 2026-11-20 Sources: [1] Anthropic. "Migrate to Claude Agent SDK". https://code.claude.com/docs/en/agent-sdk/migration-guide.md Role: primary. Accessed: 2026-11-20T12:16:47Z Quote: "npm uninstall @anthropic-ai/claude-code" (Supports: old package to uninstall) Quote: "npm install @anthropic-ai/claude-agent-sdk" (Supports: new package to install) Quote: "import { query, tool, createSdkMcpServer } from "@anthropic-ai/claude-agent-sdk";" (Supports: import change) Quote: "for example from `"^0.0.42"` to `"^0.3.0"`" (Supports: example old version range, example new version range) Published: 2026-11-20T04:35:57Z Snapshot SHA-256: 68ba58d76121042cb53262a27c8ed7e6f8a1f7713474806742c23b2e85a8da27 (captured 2026-11-13T03:02:47Z) Verification: Method: Automated extraction from [1] with deepseek-flash (JSON output, thinking disabled). Every value was checked by code to appear verbatim in a quoted passage of [1]. On this check the text of [1] was unchanged since 2026-11-13T03:02:47Z, so the values verified then were kept. Cross-check: not-available at 2026-11-20T12:16:47Z. No independent second source is configured for this entry Last successful check: 2026-11-20T12:16:47Z Last attempt: 2026-11-20T12:16:47Z Notes and limitations: Extracted automatically from a single official source (section "Migrate a TypeScript or JavaScript project"). Related: https://latestn.com/tool/claude-code/integrations/migrate-v2-session-to-query-api How do I migrate Claude Code code from the removed V2 session API to the query() API for multi-turn conversations? https://latestn.com/tool/claude-code/integrations/package-name-changes What package names changed when Claude Code SDK was renamed to Claude Agent SDK? https://latestn.com/tool/claude-code/integrations/pipe-claude-into-scripts How do I pipe Claude Code into scripts for automation? https://latestn.com/tool/claude-code/integrations/mcp-servers-self-hosted-sessions How do I turn off built-in session tools or wait for MCP servers before the first turn in Claude Code self-hosted sessions? https://latestn.com/tool/claude-code/integrations/mcp-transport-types What transport types does Claude Code Agent SDK support for MCP servers (stdio, HTTP/SSE, SDK MCP)? https://latestn.com/tool/claude-code/integrations/migrate-python-project How do I migrate a Python project from the Claude Code SDK to the Claude Agent SDK? https://latestn.com/tool/ All entries in AI tools Change log: Time | Event | Change | Source 2026-11-13T03:02:47Z | added | Entry created | — Changes for this entry as a feed: https://latestn.com/tool/claude-code/integrations/migrate-typescript-project/latest Challenge this entry: Open challenges: None How: If a value here is wrong or out of date, send what is wrong and a link to evidence. Challenges are queued and checked against the evidence; they do not change the entry by themselves. If the entry changes as a result, the change log says so. Form: https://latestn.com/dispute/tool/claude-code/integrations/migrate-typescript-project POST: https://latestn.com/dispute/tool/claude-code/integrations/migrate-typescript-project with claim, evidence_url, and optionally field and contact (form-encoded or JSON) GET: https://latestn.com/dispute/tool/claude-code/integrations/migrate-typescript-project?claim={what is wrong}&evidence_url={link} How to cite: LatestN. (2026). How do I migrate a TypeScript or JavaScript project from the Claude Code SDK to the Claude Agent SDK? Revision 1, last verified 2026-11-20T12:16:47Z. https://latestn.com/tool/claude-code/integrations/migrate-typescript-project (accessed 2026-11-21T09:53:18Z). @misc{LatestN_tool_claude_code_integrations_migrate_typescript_project_r1, title = {How do I migrate a TypeScript or JavaScript project from the Claude Code SDK to the Claude Agent SDK?}, author = {{LatestN}}, year = {2026}, howpublished = {\url{https://latestn.com/tool/claude-code/integrations/migrate-typescript-project}}, note = {Revision 1; digest sha256:ff0614316185c4a6; last verified 2026-11-20T12:16:47Z; accessed 2026-11-21T09:53:18Z} } Reuse: License: CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/) Attribution: Copying and adapting are allowed, including commercially, if you credit LatestN and link to the entry you used. Each entry ends with a ready-made citation. URL: https://latestn.com/tool/claude-code/integrations/migrate-typescript-project