Skip to content
This repository has been archived by the owner on Mar 6, 2024. It is now read-only.

Latest commit

 

History

History
68 lines (49 loc) · 4.27 KB

CHANGELOG.md

File metadata and controls

68 lines (49 loc) · 4.27 KB

Change Log

All notable changes will be documented in this file. Swagger Express Middleware adheres to Semantic Versioning.

v4.0.0 (2020-03-24)

  • Moved from a high security risk version of multer to a more up-to-date version to remove a high-security risk dependency
  • This library change resulted in some API breaking changes to the library:
    • CHANGE: Files downloaded to disk are not saved with the extension in the name so Content-Type may need to be set manually or based on the File object since it can not be inferred from the downloaded filename
    • The File object created from multer is a little different:
      • For compatibility extension is backfilled.
      • the name property on File is now filename and doesn't include a file extension
      • the buffer property on File is only present if inMemory or storage: memoryStorage is used.
      • the truncated property on File is no longer present. Instead, an error is sent through the next function of middleware
    • multipart opts have changed significantly
    • As with previous versions extra files provided to swagger routes will 413 and any files coming in outside of the swagger routes will be passed through multer. The 413 functionality was recreated like so.
    • Indexed params are placed in exactly the index specified so foo[0]=A&foo[2]=B results in a param like foo: ["A", undefined, "B"] whereas previously it would have been ["A", "B"], example here

Full Changelog

v3.0.0 (2020-03-15)

  • Moved Swagger Express Middleware to the @APIDevTools scope on NPM

  • The "swagger-express-middleware" NPM package is now just a wrapper around the scoped "@apidevtools/swagger-express-middleware" package

Full Changelog

v2.0.0 (2018-12-13)

Breaking Changes

  • Dropped support for Node 0.10 through 8.0.0

Full Changelog

v1.0.0 (2018-10-06)

Initial release 🎉