npm / form-data
form-data
What changed in form-data 3 to 4, from its official release notes, upgrade guides and advisories. Sources checked 2026-10-27.
1 security1 new APIs and options1 behavior and defaults4 fixes and other
See which of these apply to your code, ranked, in your agent:
npx @unstale/cli initform-data 42 changes
Security 1
CR, LF, and double quotes are now escaped in field names and filenames.
Fixes and other changes 1
Sets Symbol.toStringTag in the proper place.
form-data 35 changes
New APIs and options 1
The constructor type now includes readable stream options.
Behavior and default changes 1
The userHeaders parameter is optional in the TypeScript definitions.
Fixes and other changes 3
Options are passed to the constructor when it is called without new.
Fixed the getHeaders method signatures in the TypeScript definitions.
Fixed a memory leak.