npm / @netlify/functions
@netlify/functions
What changed in @netlify/functions 2 to 6, from its official release notes, upgrade guides and advisories. Sources checked 2026-10-23.
5 breaking3 new APIs and options1 performance2 fixes and other
See which of these apply to your code, ranked, in your agent:
npx @unstale/cli init@netlify/functions 61 changes
Breaking changes 1
Node.js 22.12 or newer is required.
@netlify/functions 58 changes
Breaking changes 2
The
/devexport was removed; applications relying on its local development functionality must use@netlify/functions-devinstead.Local development functionality is available in this new package; install it and update imports from
@netlify/functions/dev.
New APIs and options 3
Adds function config properties that developers can use to configure functions.
Event handler types are now exported for developers to use.
Function timeout defaults and overrides are now implemented in dev.
Performance 1
The package's install size decreased from 82 MB to 84 KB, with direct dependencies reduced from 13 to 1 and total transitive dependencies from 311 to 1.
Fixes and other changes 2
The package avoids emitting the global awslambda namespace.
Types now allow declaration merging for global.Netlify.
@netlify/functions 41 changes
Breaking changes 1
The Node.js engine requirement reverts to >=18.0.0, potentially affecting which Node.js versions can use the package.
@netlify/functions 21 changes
Breaking changes 1
Exports the v2 API, a breaking change for developers using the package.