Download Latest Version 7.7.2 source code.zip (2.3 MB)
Email in envelope

Get an email when there's a new version of Middy

Home / 7.7.1
Name Modified Size InfoDownloads / Week
Parent folder
7.7.1 source code.tar.gz 2026-07-22 1.9 MB
7.7.1 source code.zip 2026-07-22 2.3 MB
README.md 2026-07-22 1.3 kB
Totals: 3 Items   4.1 MB 1

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. (544cd89e1)
  • core: handle empty readable streams in streamify response mode. Zero-length bodies now flush the response prelude correctly instead of hanging/omitting it. (3c4e9706c)
  • core: micro-optimizations across util, http-content-negotiation, and http-x402; dropped the unused undici dev dependency and some dead util exports/fuzz scaffolding. (05ef0721f)

Full Changelog: https://github.com/middyjs/middy/compare/7.7.0...7.7.1

Source: README.md, updated 2026-07-22