5.0.0
For full details and upgrade guide see https://middy.js.org/docs/upgrade/4-5
Notable changes
- Middy no longer support Common JS modules.
- Deprecate Node.js v16.x.
- Add support for Node.js v20.x.
- Update to use TypeScript v5 along with a refactor to most packages
- Update all errors to be consistent
new Error('message', { cause: { package:'@middy/***', data:*** } })
- If using multiple
http-*-body-parsers
on the same endpoint you'll need to set{ disableContentTypeError: true }
What's Changed
- fix(appconfig): #1009 rewrite to not use deprecated appconfig getConfiguration command by @mju-spyrosoft in #1029
- Green CI for 5.0 by @lmammino in #1090
- feat(json-body-parser): allow specifying versioned APIGW events by @naorpeled in #1100
- feat(typescript): getInternal type safety + other type improvements by @m-radzikowski in #1093
- Fix typo by @michael-k in #1110
- docs: add Powertools idempotency + fix typo by @dreamorosi in #1115
- fix(http-error-handler): non http errors will always be handled by @qoomon in #1117
- feat: add
@iress/middy-http-path-router
to third-party middleware docs by @RodneyMarsh in #1124 - fix(website): extra padding on mobile by @lmammino in #1126
- Feat: improve TS docs, mention Middeware-first, Handler-last pattern by @lmammino in #1130
- Update website to docusaurus3 by @lmammino in #1129
- fix(middlewares/http-json-body-parser): narrow body type to string by @naorpeled in #1131
- fix: don't throw error for non http event by @robertbeal in #1133
New Contributors
- @mju-spyrosoft made their first contribution in #1029
- @michael-k made their first contribution in #1110
- @qoomon made their first contribution in #1117
- @RodneyMarsh made their first contribution in #1124
- @robertbeal made their first contribution in #1133
Big tanks to everyone who made this release possible!
Full Changelog: 4.7.0...5.0.0