github middyjs/middy 7.7.1

latest release: 7.7.2
one day ago

What's Changed

Fixes

  • core: fix async context loss across middleware (closes #1661). The await runMiddlewares() helper pinned the handler continuation before the AsyncLocalStorage store was set via enterWith, so values written to
    request.context weren't visible downstream. The before/after/onError loops are now inlined directly into runRequest, keeping the store on the running continuation. No API change. (544cd89)
  • core: handle empty readable streams in streamify response mode. Zero-length bodies now flush the response prelude correctly instead of hanging/omitting it. (3c4e970)
  • core: micro-optimizations across util, http-content-negotiation, and http-x402; dropped the unused undici dev dependency and some dead util exports/fuzz scaffolding. (05ef072)

Full Changelog: 7.7.0...7.7.1

Don't miss a new middy release

NewReleases is sending notifications on new releases.