Packages

@ai-sdk/provider-utils

5.0.83 · 20 Nov 2026Apache-2.076.4M / weekRepositoryHomepagenpmAtom feed

Your version

3.0.0

major31 Jul 2025Where it was published

3.0.46 is the newest release of 3.x.

In short

8 breaking8 new16 fixed3 internal

  • Breaking

    Remove deprecated CoreToolCall and CoreToolResult types

  • 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

Release note

Major Changes

  • Breaking

    Remove deprecated CoreToolCall and CoreToolResult types

  • 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:

  • Refactor (provider-utils): move customAlphabet() method from nanoid into codebase

  • Chore (provider-utils): use eventsource-parser library

  • Add transcription with experimental_transcribe

  • Refactor (provider-utils): copy relevant code from secure-json-parse into codebase

  • packages: 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.