2.0.0
Checkout UPGRADE.md
to see what are the main breaking changes and how to migrate to this new version if coming from 1.x
.
Focus this version was on performance and security by default.
Additions
- New middlewares (
cloudwatch-metrics
,rds-signer
,s3-object-response
,sts
) - New plugin hook for
core
to allow easier bottleneck detection with middlewares and handler
Breaking Changes
- All middlewares now use
async/await
and have deprecatednext(err)
andcallback(err, response)
validator
refactored to supportdraft-2020-12
using the latest version ofajv
(v8). Errors now useinstancePath
overdataPath
. Fulli18n
is now enabled by defaulthttp-error-handler
no longer exposes status code >= 500 by default.- Middlewares that reach out to 3rd party API have been completely refactored to have unifying options that resolve on demand from internal context. Applies to:
rds-signer
secrets-manager
ssm
sts
- Deprecated middlewares:
cache
: little usage, makes more sense to be pulled out of coredb-manager
: little usage, makes more sense to be pulled out of corefunction-shield
: Only supported up to Node v10warmup
: AWS now supported reserved provisioned concurrency for Lambda
Maintenance
- Documentation overhaul, with a dedicated section for TypeScript
- Changed test runner to
ava
/sinon
for esm support and keep deps clean - Added
c8
for test coverage logging - Changed linting to use
standard
cli to keep deps clean
Thanks to
- @lmammino: For discussions to bounce and talk through ideas. Code audit/review & TypeScript definitions.
- @markcarroll: TypeScript bug fix #630
- @huyennbl: Muti-file parsing support #634
- @ffxsam: For reporting #609.
- @raae & @AyoAlfonso: For
expose
support inhttp-error-handler
#610. - @nfantone: For improved response default handling #615
- @fredericbarthelet: For new
cloudwater-metrics
middleware