@ai-sdk/provider-utils
5.0.83 · 20 Nov 2026Apache-2.076.4M / weekRepositoryHomepagenpmAtom feed
3.0.46 is the newest release of 3.x.
In short
8 breaking8 new16 fixed3 internal
- Breaking
Remove deprecated
CoreToolCallandCoreToolResulttypes - Breaking
AI SDK 5
- Breaking
Refactoring (ai): restructure provider-defined tools
- Breaking
Feat (ui): introduce ChatStore and ChatTransport
- Breaking
Chore (provider-utils): rename TestServerCall.requestBody to requestBodyJson
- Breaking
Feat (ui): UI message metadata
- Breaking
Chore (provider-utils): return IdGenerator interface
- Breaking
Feat (ai): add output schema for tools
Security
1 advisory affects 3.0.0; 3.0.28 fixes them
- Low@ai-sdk/provider-utils has an Uncontrolled Resource Consumption issueGHSA-866g-f22w-33x8 · 18 May 2026Fixed in 3.0.28
Release note
Major Changes
- Breaking
Remove deprecated
CoreToolCallandCoreToolResulttypes - Breaking
AI SDK 5
- Breaking
Refactoring (ai): restructure provider-defined tools
- Breaking
Feat (ui): introduce ChatStore and ChatTransport
- Breaking
Chore (provider-utils): rename TestServerCall.requestBody to requestBodyJson
- Breaking
Feat (ui): UI message metadata
- Breaking
Chore (provider-utils): return IdGenerator interface
- Breaking
Feat (ai): add output schema for tools
Patch Changes
Feat (ai): introduce dynamic tools
refactoring: Introduce FlexibleSchema
provider-utils: Add TestServerCall#requestCredentials
Chore (provider-utils): update eventsource-parser to 3.0.3
Support for zod v4 for schema validation
All these methods now accept both a zod v4 and zod v3 schemas for validation:
generateObject()streamObject()generateText()experimental_useObject()from@ai-sdk/reactstreamUI()from@ai-sdk/rsc
Refactor (provider-utils): move
customAlphabet()method fromnanoidinto codebaseChore (provider-utils): use eventsource-parser library
Add transcription with experimental_transcribe
Refactor (provider-utils): copy relevant code from
secure-json-parseinto codebasepackages: Export node10 compatible types
Allow zod 4.x as peer dependency
Add clear object function to StructuredObject
Chore (utils): remove unused test helpers
provider-utils: Fix SSE parser bug (CRLF)
Feat (ai): add InferToolInput and InferToolOutput helpers
Fix (provider-utils): detect failed fetch in browser environments
Adds support for async zod validators
Chore (provider-utils): switch to standard-schema
Using Zod 4 for internal stuff
Fix (ai): support abort during retry waits
Improve Zod compatibility
refactoring: Move tools helper into provider-utils
Feat (ai): support dynamic tools in Chat onToolCall
Feat (ai): add isAborted to onFinish callback for ui message streams
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.