Checkout UPGRADE.md
to see what are the main breaking changes and how to migrate to this new version if coming from 0.x
.
Main changes:
- Publishing core and every single middleware as independent package under the
@middy
namespace (@lmammino) - HttpHeaderNormalizer middleware now uses lowercase names (@miki79, @lmammino)
- Various improvements and bug fixes in SSM (@theburningmonk, @dbartholomae, @hollg)
http-cors
middleware now supports multiple origins or possibility to configure response origin with a function (@thejuan)- Added
input-output-logger
middleware (@kevinrambaud) - Added
error-logger
middleware (@lmammino) - Added
http-security-headers
middleware (@willfarrell, @ChristianMurphy) - Added
secrets-manager
middleware (@theburningmonk, @sdomagala) - Added
http-response-serializer
middleware (@noetix, @lmammino) - Added
db-manager
middleware (@sdomagala, @lmammino) - Added
http-urlencode-path-parser
middleware (@willfarrell) - Added
http-multipart-body-parser
middleware (@TeddyHandleman, @willfarrell) handler.use()
can now receive multiple middlewares (@alexdebrie, @vladgolubev)- Added support for
reviver
parameter inhttp-json-body-parser
middleware (@roni-frantchi) - Improved compatibility between
warmup
anddo-not-wait-for-empty-event-loop
middlewares (@lbertenasco, @lmammino) - Added pre-commit lint hooks (@ChristianMurphy)
- Using v2.0 of S3 events (@lmammino, @kenleytomlin)
- Various bug fixes and improvements (@shroomist, @gsingh1, @niik, @lmammino, @noetix, @sheepsteak, @duro, @willfarrell, @philprime, @jarrodldavis)
- Various documentation improvements (@rafaelrenanpacheco, @vladgolubev, @lmammino, @dbartholomae, @ndeitch, @CathyC93, @baileytincher)
- Tests are now rewritten using Async/Await (@vladgolubev, @lmammino)
- Better compatibility with Wallaby for running tests in development mode (@vladgolubev)
- Improved (and documented!) release process (@lmammino)
- Removed support for Node.js 8 and earlier versions (@willfarrell, @lmammino)