Skip to content

Releases: middyjs/middy

2.3.0

03 Jun 03:57
bfde6fe
Compare
Choose a tag to compare

2.2.0

02 May 03:59
b04cca2
Compare
Choose a tag to compare

2.1.1

26 Apr 13:20
5da3973
Compare
Choose a tag to compare
  • #665 Fix: Response Serializer does not replace entire object when falsey value is returned @roni-frantchi

2.1.0

25 Apr 00:32
966ce6c
Compare
Choose a tag to compare
  • #654 bug fix in http-response-serializer where it normalizes the response when there is a 502 error
  • #657 regression fix for http-response-serializer
  • #658 bug fix unexpected nested mutations in input-output-logger
  • bug fix in http-response-serializer where failed to exit when first match found
  • bug fix in s3-get-response in edge case 2 body params could be sent
  • performance improvements to core, http-urlencode-body-parser, http-response-serializer, http-partial-response, http-content-negotiation, util
  • #646 Add new middleware event-normalizer to parse and handle all aws events

2.0.1

10 Apr 06:34
b0eca01
Compare
Choose a tag to compare
  • #640 sms bug fix where infinite loop happens when pulling >10 values @garnertb
  • #643 improve performance of http-json-body-parser @nponeccop

2.0.0

01 Apr 06:33
5bad22e
Compare
Choose a tag to compare

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

Focus this version was on performance and security by default.

Additions

  • New middlewares (cloudwatch-metrics, rds-signer, s3-object-response, sts)
  • New plugin hook for core to allow easier bottleneck detection with middlewares and handler

Breaking Changes

  • All middlewares now use async/await and have deprecated next(err) and callback(err, response)
  • validator refactored to support draft-2020-12 using the latest version of ajv (v8). Errors now use instancePath over dataPath. Full i18n is now enabled by default
  • http-error-handler no longer exposes status code >= 500 by default.
  • Middlewares that reach out to 3rd party API have been completely refactored to have unifying options that resolve on demand from internal context. Applies to:
    • rds-signer
    • secrets-manager
    • ssm
    • sts
  • Deprecated middlewares:
    • cache: little usage, makes more sense to be pulled out of core
    • db-manager: little usage, makes more sense to be pulled out of core
    • function-shield: Only supported up to Node v10
    • warmup: AWS now supported reserved provisioned concurrency for Lambda

Maintenance

  • Documentation overhaul, with a dedicated section for TypeScript
  • Changed test runner to ava/sinon for esm support and keep deps clean
  • Added c8 for test coverage logging
  • Changed linting to use standard cli to keep deps clean

Thanks to

2.0.0-beta.1

27 Mar 05:41
961dcce
Compare
Choose a tag to compare
2.0.0-beta.1 Pre-release
Pre-release

2.0.0-beta.0

12 Mar 18:44
cf78e46
Compare
Choose a tag to compare
2.0.0-beta.0 Pre-release
Pre-release

Add in updated TypeScript support (@lmammino ) and added in a new middleware cloudwatch-metrics (@fredericbarthelet).

2.0.0-alpha.6

08 Feb 21:24
e6ab94a
Compare
Choose a tag to compare
2.0.0-alpha.6 Pre-release
Pre-release

Add in http response normalizations and improvement to developer debugging experience. #615 @nfantone

2.0.0-alpha.5

04 Feb 16:03
2e69ea2
Compare
Choose a tag to compare
2.0.0-alpha.5 Pre-release
Pre-release

Deprecated onChange option from rds-signer,secrets-manager,ssm,sts (See #611 and #612 for discussion) and modified util.processCache to return flag indicating if it was a cache hit.