middy icon indicating copy to clipboard operation
middy copied to clipboard

Version 6

Open willfarrell opened this issue 2 years ago • 6 comments

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 engines to "node": ">=20"
    • [x] Update github workflows node-version
  • [ ] docs
    • [x] migration
    • [ ] release cycle
  • [x] --experimental-require-module support #1233
  • core
    • [x] support early response undefined values #1236
  • http-response-serializer
    • [x] deprecate use of event.requiredContentType
  • s3-object-response
    • [x] Update docs to show use of new aws-xray-sdk-fetch, deprecate awsClientCapture option for captureFetchGlobal()
  • [x] http-cors Change default origin:null
  • [x] http-urlencode-body-parser deprecate use of qs for native solution
  • [x] validator upgrade ajv-formats to v3 (https://github.com/ajv-validator/ajv-formats/releases/tag/v3.0.0-rc.0)
  • [x] replace use of:
    • [x] sinon with node:test

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-logger update to print otel by default
    • [ ] input-output-logger update 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

willfarrell avatar Nov 08 '23 05:11 willfarrell