middy
middy copied to clipboard
Version 6
aka The OTel Update (Hopefully)
Release: Nov (after nodejs active LTS starts)
Timeline based on AWS nodejs22.x release cycle
Release Notes: https://github.com/middyjs/middy/blob/release/6.0.0/website/docs/upgrade/5-6.md
Planned
- [x] Drop Node v18, Add support fro Node v22
- [x] Update
enginesto"node": ">=20" - [x] Update github workflows
node-version
- [x] Update
- [ ] docs
- [x] migration
- [ ] release cycle
- [x]
--experimental-require-modulesupport #1233 -
core- [x] support early response undefined values #1236
-
http-response-serializer- [x] deprecate use of
event.requiredContentType
- [x] deprecate use of
-
s3-object-response- [x] Update docs to show use of new
aws-xray-sdk-fetch, deprecateawsClientCaptureoption forcaptureFetchGlobal()
- [x] Update docs to show use of new
- [x]
http-corsChange defaultorigin:null - [x]
http-urlencode-body-parserdeprecate use ofqsfor native solution - [x]
validatorupgradeajv-formatsto v3 (https://github.com/ajv-validator/ajv-formats/releases/tag/v3.0.0-rc.0) - [x] replace use of:
- [x] sinon with
node:test
- [x] sinon with
Moved to v17
- [ ] LLRT Support
- [ ] Move to Otel for Logs, Metrics, Traces? (if possible) https://github.com/aws/aws-xray-sdk-node/issues/515
- Update Logs, Metrics, Traces to use OTel if ready (https://github.com/willfarrell/aws-wishlist#lambda)
- Use Otel: https://aws-otel.github.io/docs/getting-started/javascript-sdk
- Use powertools: https://awslabs.github.io/aws-lambda-powertools-typescript/latest/core/tracer/#patching-aws-sdk-clients
- discussion: https://github.com/awslabs/aws-lambda-powertools-typescript/discussions/665
- [ ]
error-loggerupdate to print otel by default - [ ]
input-output-loggerupdate to print in otel format
Maybe
- [ ] improve response streaming support (new middlewares?)
- [ ] plugins as packages?
- [ ] Routers updated to support URLPattern? Still experimental?
- [ ] Move to JSDoc notation? https://www.youtube.com/watch?v=zPOHY-cZ1wE
- [ ] Update abort signals if Lambda adds support