Packages

@ai-sdk/provider-utils

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

Upgrading @ai-sdk/provider-utils From 3.0.46 to 5.0.79

144 releases in betweennotes for 143

Other targets from 3.0.46Latest5.0.83
  1. 3.0.46yours
  2. 4.0.0major
  3. 18 releases
  4. 4.0.19security
  5. 48 releases
  6. 5.0.0security
  7. 3 releases
  8. 5.0.4security
  9. 29 releases
  10. 5.0.36security
  11. 3 releases
  12. 5.0.40security
  13. 32 releases
  14. 5.0.74breaking
  15. 3 releases
  16. 5.0.79target
  17. 60 pre
13+
changes to make
0
advisories fixed
74+
new
97+
fixes

Counted from 143 of 144 release notes. Advisories are counted from the advisory database, in full.

Before you upgrade

Tick each one off as you go
  • Breaking5.0.74
  • Breaking5.0.0
  • Breaking5.0.0
  • Breaking5.0.0
  • Breaking5.0.0
  • Breaking5.0.0
  • Breaking5.0.0
  • Breaking5.0.0
  • Breaking5.0.0
  • Breaking5.0.0

Security

  • mcp: Prevent SSRF in OAuth metadata discovery

    5.0.40
  • Update Undici to a version patched for CVE-2026-13697.

    5.0.36
  • Prevent prototype pollution when synchronously parsing provider JSON inputs and expose secureJsonParse from provider-utils.

    5.0.4
  • security: Validate redirect targets in download functions to prevent SSRF bypass

    5.0.0
  • Harden download URL SSRF guard against hostname and redirect bypasses

    5.0.0
  • Add URL validation to downloadBlob and download to prevent blind SSRF attacks. Private/internal IP addresses, localhost, and non-HTTP protocols are now rejected before fetching.

    4.0.19

Release by release

  1. 5.0.79

    10 Nov 20262 fixes
    • Fixed

      Infer Zod 3 schemas through Standard Schema to prevent recursive type comparisons between installed Zod versions, preserving tool input and streamed output inference.

    • Fixed

      Use Zod Mini for internal validation schemas to reduce bundle size while preserving the public message schemas' classic Zod methods, error messages, and compatibility with supported Zod 3 and Zod 4 versions.

  2. 5.0.78

    10 Nov 20261 fix
    • Fixed

      Require a DNS-pinned fetch for untrusted MCP OAuth discovery and metadata-derived token/registration URLs on server runtimes without a protected default transport. Preserve developer-configured endpoints and allow explicitly supplied fetch implementations that provide equivalent connect-time validation. Browser workers without a DOM follow the same explicit custom-fetch requirement.

  3. 5.0.76

    7 Nov 20261 new · 2 fixes
    • New

      Add resolveProviderOptions to parse provider options that a model accepts under several providerOptions keys, either as aliases (first) or merged in order (merge), and use it for the existing multi-key lookups in the OpenAI, OpenAI-compatible, Anthropic, Google, and Amazon Bedrock models. Resolution behavior for these models is unchanged.

    • Fixed

      Reject HTTPS-to-HTTP redirects in validated downloads before requesting the insecure target, including when it matches a configured trusted origin.

    • Fixed

      Return undefined instead of throwing when detectMediaType receives an unsupported topLevelType that matches an inherited object property.

  4. 5.0.75

    5 Nov 20261 new
    • New

      provider-utils: Add an experimental_binaryFields option to createJsonResponseHandler

  5. 5.0.74

    Migration needed3 Nov 2026
    • Breaking

      Raise the minimum Undici version to 7.29.1 to include the fix for CVE-2026-84961.

  6. 5.0.73

    2 Nov 20261 new · 2 fixes
    • New

      Add stringifyWithBigIntAndCycles for provider tool serialization that converts BigInt values to decimal strings and replaces ancestor cycles while preserving shared references and toJSON behavior.

    • Fixed

      provider-utils: Support cross-realm Uint8Array and ArrayBuffer in uint8-utils and inline file data conversion

    • Fixed

      provider-utils: Decode base64 into a preallocated Uint8Array to avoid ~25x transient memory and long event-loop blocking on large files

  7. 5.0.72

    30 Oct 20262 new
    • New

      Support promises and synchronous or asynchronous callbacks in provider API key and token settings. Resolve credentials per authenticated request while preserving existing authentication behavior and synchronous credential serialization.

    • New

      sandbox: Add stat, listDirectory, and deleteFile to Experimental_SandboxSession, and specify that relative paths in every method resolve against the directory run and spawn start in

  8. 5.0.71

    29 Oct 20261 fix
    • Fixed

      Map the top-level reasoning option consistently across providers

1 other line we could not sort, mostly version bumps
  • Start v7 pre-release

    5.0.0

91 internal lines (docs, tests, tooling) left out.

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.