npm upgrade
Homeai 4 → 5
4.3.19 → 5.0.252. What the package's exports lost, renamed or changed between the two releases, from lurq's extraction of both published tarballs.
ai 5.0.252 removes or renames exports your code may import.
- Removed
- 23
- Renamed
- 0
- Signature changes
- 1
- Types removed
- 0
- Newly deprecated
- 0
- Added
- 53
Does this break your code?
Run this in your project. It compares both releases against the names your code actually imports, locally, with no account and nothing sent to lurq:
npx lurqrun check-upgrade --upgrade ai@4.3.19..5.0.252
To have your coding agent check upgrades like this before it writes them, connect lurq to Claude Code, Cursor, VS Code or Codex:
npx lurqrun
Removed
Gone at runtime, with no replacement found under another name. Imports of these fail.
- AssistantResponsefunction
- InvalidToolArgumentsErrorclass
- LangChainAdapterobject
- LlamaIndexAdapterobject
- MCPClientErrorclass
- StreamDataclass
- ToolExecutionErrorclass
- appendClientMessagefunction
- appendResponseMessagesfunction
- createDataStreamfunction
- createDataStreamResponsefunction
- experimental_createMCPClientfunction
- experimental_wrapLanguageModelobject
- formatAssistantStreamPartobject
- formatDataStreamPartobject
- mergeIntoDataStreamfunction
- parseAssistantStreamPartobject
- parseDataStreamPartobject
- pipeDataStreamToResponsefunction
- processDataStreamobject
- processTextStreamobject
- toDataStreamfunction
- toDataStreamResponsefunction
Signature changes
Still exported, but the number of arguments it reads changed.
- cosineSimilarity3 → 2 arguments
An export diff shows what a release removed or re-signatured, not behaviour changes: read the changelog for those. Extracted Sep 22, 2026. ai on lurq.