middy

🛵 The stylish Node.js middleware engine for AWS Lambda 🛵

MIT License

Downloads
7.7M
Stars
3.7K
Committers
196
middy - 3.2.0

Published by willfarrell about 2 years ago

What's Changed

TypeScript

New Contributors

Full Changelog: https://github.com/middyjs/middy/compare/3.1.1...3.2.0

middy - 3.1.1

Published by willfarrell about 2 years ago

What's Changed

  • Add in module to package.json files @willfarrell
  • performance improvements @willfarrell

TypeScript

Docs

New Contributors

Full Changelog: https://github.com/middyjs/middy/compare/3.1.0...3.1.1

middy - 3.1.0

Published by willfarrell over 2 years ago

What's Changed

New Contributors

Full Changelog: https://github.com/middyjs/middy/compare/3.0.4...3.1.0

middy - 3.0.4

Published by willfarrell over 2 years ago

What's Changed

New Contributors

Full Changelog: https://github.com/middyjs/middy/compare/3.0.3...3.0.4

middy - 3.0.3

Published by willfarrell over 2 years ago

What's Changed

New Contributors

Full Changelog: https://github.com/middyjs/middy/compare/3.0.2...3.0.3

middy - 3.0.2

Published by willfarrell over 2 years ago

What's Changed

New Contributors

Full Changelog: https://github.com/middyjs/middy/compare/3.0.1...3.0.2

middy - 3.0.1

Published by willfarrell over 2 years ago

What's Changed

  • Updated dependencies

Full Changelog: https://github.com/middyjs/middy/compare/3.0.0...3.0.1

middy - 3.0.0

Published by willfarrell over 2 years ago

Checkout UPGRADE.md to see what are the main breaking changes and how to migrate to this new version if coming from 2.x.

Version 3.x of Middy no longer supports Node.js versions 12.x. You are highly encouraged to move to Node.js 16.x.
With the Node.js version change all packages are now ECMAScript Modules along side CommonJS Modules.

Notable changes

  • New WebSocket middlewares
  • HTTP & WebSocket Routers!
  • Better error handling
  • Timeout error handling
  • Errors now use { cause } for better context

Additions

  • New middleware (http-content-encoding, http-router, service-discovery, ws-json-body-parser, ws-response, ws-router)
  • core
    • Added .handler() method to allow easier understanding of the execution cycle
    • lambdaHandler can now be passed an AbortController signal
    • internal events can now be monitored using Proxy
  • util
    • getInternal error now includes cause set to an array of Errors
    • Catch when X-Ray is applied outside of handler invocation scope

Breaking Changes

  • core
    • The order onError being called is now reversed to match after
      • If you only use @middy/* middlewares no change should be required
      • If you have custom error handling middleware or other custom middleware that return response, additional testing is high recommended
    • Deprecate applyMiddleware() and __middlewares
  • util
    • normalizeHttpResponse now takes request and mutates response
    • getCache will return {} instead of undefined when not found
  • Deprecated setToEnv option from all middleware
  • Will now throw error if not an http event in http-event-normalizer
  • Change default charset from binary/latin1 to utf-8 within http-multipart-body-parser
  • Renamed default option to defaultContentType to improve maintainability in http-response-serializer
  • Deprecate expectCt in http-security-headers
  • sqs-partial-batch-failure completely rewritten
  • Renamed default option to defaultContentType http-response-serializer
  • normalizeHttpResponse now takes request and mutates response
  • Change where errors are stored, from request.error.details to request.error.cause in validator

Removed

  • s3-key-normalizer in favour of event-normalizer
  • sqs-json-body-parser in favour of event-normalizer

Maintenance

  • Better error reporting when dealing with Promise arrays

Full Changelog: https://github.com/middyjs/middy/compare/2.5.7...3.0.0

middy - 2.5.7

Published by willfarrell almost 3 years ago

Fix publishing transpiling error in 2.5.6. Thanks to @maximepichou and @rreubenreyes for reporting.

middy - 2.5.6

Published by willfarrell almost 3 years ago

What's Changed

fix: add types for non-callback use case #788 @markcarroll

Full Changelog: https://github.com/middyjs/middy/compare/2.5.5...2.5.6

middy - 2.5.5

Published by willfarrell almost 3 years ago

What's Changed

Full Changelog: https://github.com/middyjs/middy/compare/2.5.4...2.5.5

middy - 2.5.4

Published by willfarrell almost 3 years ago

What's Changed

New Contributors

Full Changelog: https://github.com/middyjs/middy/compare/2.5.3...2.5.4

middy - 2.5.3

Published by willfarrell almost 3 years ago

What's Changed

New Contributors

Full Changelog: https://github.com/middyjs/middy/compare/2.5.2...2.5.3

middy - 2.5.2

Published by willfarrell about 3 years ago

Bug Fixes

  • #725 Chunk deleteMessageBatch requests @garnertb
  • #723 http-cors not supporting API Gateway v2 @ellucianBret
  • #733 Add missing parameter for requestEnd as it is called with request object @omer-to
middy - 2.5.1

Published by willfarrell about 3 years ago

  • #704TypeScript: Align types with aws-lambda @denovodavid
middy - 2.5.0

Published by willfarrell about 3 years ago

  • #696 #666 TypeScript typed context improvements @mbarton @JimiPedros
  • #701 added type for createError function @webdeveric
  • Return of warmup middleware. There are some use cases not covered by lambda provisional concurrency, thus, we're bring it back. Thanks to everyone that reached out and shared their use case with us.
middy - 2.4.3

Published by willfarrell over 3 years ago

  • #692 Add in missing ts options in input-output-logger @yamatatsu
  • #689 #690 Docs improvements @k-nut @TPME
  • #686 update logger ts type for http-error-handler @nponeccop
middy - 2.4.2

Published by willfarrell over 3 years ago

  • #687 Bug fix - if onError doesn't handle the error it would be returned nested when it shouldn't have been. If you have tests in place that expect this, it may break them. @thejuan
  • remove XRay captureAWSClient from rds-signer as it doesn't reach out to a 3rd party service. @willfarrell
middy - 2.4.1

Published by willfarrell over 3 years ago

  • Add in missing file in npm package from util @willfarrell
middy - 2.4.0

Published by willfarrell over 3 years ago

  • Add in additional catch when rds-signer fails silently and small refactor @willfarrell
  • Ensure condition middleware return undefined instead of null to be consistent @willfarrell
  • Update APIGatewayEventIdentity typed definition. @willfarrell
  • Replace http-errors internally for a slimmed down version @willfarrell