npm / @vercel/functions
@vercel/functions
What changed in @vercel/functions 3, from its official release notes, upgrade guides and advisories. Sources checked 2026-10-21.
1 breaking5 new APIs and options2 behavior and defaults4 fixes and other
See which of these apply to your code, ranked, in your agent:
npx @unstale/cli init@vercel/functions 312 changes
Breaking changes 1
InMemoryCache now JSON-serializes values on set and deserializes them on get, matching RuntimeCache and making behavior consistent when switching cache implementations.
New APIs and options 5
Adds a maxPayload option, defaulting to 256 KiB, to configure the maximum WebSocket payload.
Adds the experimental_upgradeWebSocket() API.
Introduces the Vercel AddCacheTag API, addCacheTag.
Adds an API to dangerously delete by source image.
Adds an API to invalidate by source image.
Behavior and default changes 2
ws is now an optional peer dependency.
getCache().set() defaults options.name to the provided key when omitted, giving cache entries a human-readable label in o11y; pass name: '' to suppress this and use the hashed key.
Fixes and other changes 4
URL encoding of cache tags is reverted, restoring the previous behavior.
Cache tags are URL encoded before being sent to the cache API, so tags containing special characters are handled correctly when setting cache entries or expiring tags.
Fixes TimeoutNegativeWarning in Node.js v24 when a process runs longer than 15 minutes by ensuring a minimum wait time of 100ms.
Fixes addCacheTag(), which was previously a no-op.