@ai-sdk/provider-utils
5.0.83 · 20 Nov 2026Apache-2.076.4M / weekRepositoryHomepagenpmAtom feed
Upgrading @ai-sdk/provider-utils From 4.0.51 to 4.0.67
16 releases in betweenevery note read
Security
- 4.0.57
mcp: Prevent SSRF in OAuth metadata discovery
Release by release
- Fixed
Fix validation of non-Zod Standard Schema results: a result that contains
issuesis now always treated as a failure, even when it also carries avalue. Previously a failing schema such as Valibot's throughtoStandardJsonSchema()could be reported as valid, so rejected input, including tool input, was accepted.
- Fixed
- 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.
- Fixed
- Fixed
Reject HTTPS-to-HTTP redirects in validated downloads before requesting the insecure target, including when it matches a configured trusted origin.
- Fixed
- New
Add
stringifyWithBigIntAndCyclesfor provider tool serialization that converts BigInt values to decimal strings and replaces ancestor cycles while preserving shared references andtoJSONbehavior. - Fixed
provider-utils: Support cross-realm Uint8Array and ArrayBuffer in binary type guards and base64 conversion
- Fixed
provider-utils: Decode base64 into a preallocated Uint8Array to avoid ~25x transient memory and long event-loop blocking on large files
- New
- Fixed
Use native Buffer base64 encoding when available. encoding a
Uint8Arraybacked by a detachedArrayBuffernow throws aTypeErrorin runtimes withBufferinstead of returning an empty string
- Fixed
- Fixed
Block
.internalhostnames in download URL validation. - Fixed
Encode provider-returned identifiers in follow-up request paths with a shared encodePathSegment helper.
- Fixed
- New
openai-compatible: Support URL-based image responses
- New
4.0.60nothing new or fixed in the note
5 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.