5.0.0
The 5.0.0 release is finally stable 🎉
I'd like to announce that I am finally happy with what I did for the 5th major release of this package, so there's no more upcoming breaking changes and I can release it's first stable version!
The most changes are internal compared to the last beta release, you should not be affected if you use 5.x since its beta.
The following patch notes are for those who still using 4.x
Update
- Braking! Drop Node.js 10 support. Minimal required version is 12.4.x.
- Breaking! The project has beed rewritten on TypeScript from the ground up. The package still ships with CJS version, but it will eventually fade away and be replaced with ESM (which is also supported natively from this version);
- Breaking! File class has been improved to become spec-compatible with the file objects from the browsers. Now it has the same properties and methods as browser implementations. Also, this class has been renamed into
BodyFile
and no more available for being constructed manually. If you need to add files to Body manually, you have to use regular File class from browsers (you can get it fromformdata-node
orfetch-blob
); - Breaking! The
Body#paths()
method has been renamed toBody#keys()
; - Breaking! The
options.restoreTypes
parameter has been renamed tooptions.castTypes
.
Remove
- Breaking! The
map
,forEach
,names
, andfilter
methods has been removed from Body class; - Breaking! Removed
BodyFile#originalFilename
property, the original file name can be read fromBodyFile#name
property. - Breaking! Every non-File spec compatible method and property has been removed, except for
BodyFile#enc
andBodyFile#path
since they might be necessary for debugging or further usage outside ofthen-busboy
All changes: v4.3.1...v5.0.0