Major Changes
-
ef992f8: Remove CommonJS exports from all packages. All packages are now ESM-only (
"type": "module"). Consumers usingrequire()must switch to ESMimportsyntax. -
c29a26f: feat(provider): add support for provider references and uploading files as supported per provider
-
8359612: Start v7 pre-release
-
04e9009: chore: make provider implementations code patterns more consistent, including renaming certain exported symbols
For all externally exported symbols that were renamed, the old names continue to work via deprecated aliases.
Patch Changes
-
38fc777: Add AI Gateway hint to provider READMEs
-
77600ba: chore(provider/prodia): update provider to use v4 types
-
9f0e36c: trigger release for all packages after provenance setup
-
5259a95: chore: add warning for providers that do not support new reasoning parameter
-
6e8917f: fix(prodia): validate user-supplied image URLs before fetching (SSRF)
The Prodia video model's
resolveVideoFileDatafetched a user-suppliedimageURL directly withfetch(), bypassing the SDK's SSRF guard. An attacker who could supply the image URL could make the server request internal endpoints (e.g. cloud metadata) and have the response uploaded to Prodia's API. The URL is now downloaded viadownloadBlob, which routes throughvalidateDownloadUrland rejects private/internal addresses, matching the pattern used by other providers. -
7fc6bd6: Raise minimum supported Node.js version to 22. Supported versions: 22, 24, and 26.
-
0c4c275: trigger initial canary release
-
9bd6512: feat(provider): change file part data property to be tagged with a type and remove the image part type
-
258c093: chore: ensure consistent import handling and avoid import duplicates or cycles
-
b8396f0: trigger initial beta release
-
e2bdcd6: feat(provider/prodia): Add LanguageModel and VideoModel support to the Prodia provider.
- LanguageModel: Supports Nano Banana (
inference.nano-banana.img2img.v2) for img2img generation with text+image output via multipart form-data requests. Implements bothdoGenerateanddoStream. - VideoModel: Supports Wan 2.2 Lightning for text-to-video (
inference.wan2-2.lightning.txt2vid.v0) and image-to-video (inference.wan2-2.lightning.img2vid.v0) generation. - Extract shared multipart parsing and error handling infrastructure into
prodia-api.ts.
- LanguageModel: Supports Nano Banana (
-
b3976a2: Add workflow serialization support to all provider models.
@ai-sdk/provider-utils: NewserializeModel()helper that extracts only serializable properties from a model instance, filtering out functions and objects containing functions. Third-party provider authors can use this to add workflow support to their own models.All providers:
headersis now optional in provider config types. This is non-breaking — existing code that passesheaderscontinues to work. Custom provider implementations that construct model configs manually can now omitheaders, which is useful when models are deserialized from a workflow step boundary where auth is provided separately.All provider model classes now include
WORKFLOW_SERIALIZEandWORKFLOW_DESERIALIZEstatic methods, enabling them to cross workflow step boundaries without serialization errors.