This release includes multiple improvements to @middy/ssm
- #571 X-Ray support @chris-armstrong
- #572 Error edge case catch @bokjo
- #574 TypeScript Typo @bhamon-dot
- #566 Remove @types/aws-lambda as peerDep
- #562 Allow http-json-body-parser to accept
application/vnd.api+json
@rob0t7
- #561 Add in a fix for dynamic require with webpack @leog
- #522 Added in an option to remove ajv plugins from
validator
@willfarrell
- #552 Validator extend for better avj plugin support @leog
- #559 Scope requests individually to allow batch requests @thetrevdev
- #556 be able to replace the context from a middleware @russell-dot-js
- #557 deep close on input-output-logger @MiguelNazMor
- #546 Documented order with http-response-serializer by @k-nut
- #548 add ssm.onChange support back to 1.x by @theburningmonk
- #549 Added middy-env to 3rd party middleware list by @chrisandrews7
- #545 Add Support for API Gateway HTTP API (v2) by @fredericbarthelet
- #537 Handling base64 event bodies by @caiokf
- #528Add the boolean check for a truncated file upload by @tyvdh
- #521 Parse array from multipart form data by @benjifs
- #512 Respect canonical normalization parameter for multiValueHeaders by @getkey
- #544 The
httpResponseSerializer
needs to find a serializer for atype
by searching all thetypes
by @randytarampi - #543 fix(db-manager): improve type definition by @munierujp
- #542 Safely parse secretString by @chris-heathwood-uoy
- Small documentation updates
- dependency updates
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)