Skip to content

5.0.0-beta.4

Pre-release
Pre-release
Compare
Choose a tag to compare
@octet-stream octet-stream released this 09 Jun 14:34

Update

  • Braking! Drop Node.js 10 support. Minimal required version is 12.
  • 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 from formdata-node or fetch-blob);
  • Breaking! The Body#paths() method has been renamed to Body#keys();
  • Breaking! The options.restoreTypes parameter has been renamed to options.castTypes.

Remove

  • Breaking! The map, forEach, names, and filter methods has been removed from Body class;
  • Breaking! Removed BodyFile#originalFilename property, the original file name can be read from BodyFile#name property.
  • Breaking! Every non-File spec compatible method and property has been removed, except for BodyFile#enc and BodyFile#path since they might be necessary for debugging or further usage outside of then-busboy

All changes: v5.0.0-beta.3...v5.0.0-beta.4