middy

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

MIT License

Downloads
7.7M
Stars
3.7K
Committers
196
middy - 2.3.0

Published by willfarrell over 3 years ago

  • #653 prevent error.message from being parsed unnecessarily @CodeVision
  • #669 Export TS middy interfaces directly @MelvinVermeer
  • #672 Add support to have multiple instances of validator @qualipsolutions
  • #675 Add in the ability to log AWS Lambda context in input-output-logger @s1mrankaur
middy - 2.2.0

Published by willfarrell over 3 years ago

  • #667 fix cacheExpiry bug @fdiasr
  • #660 Improvement to remove cache when fetch throws error @theburningmonk
  • @types/node major version update
middy - 2.1.1

Published by willfarrell over 3 years ago

  • #665 Fix: Response Serializer does not replace entire object when falsey value is returned @roni-frantchi
middy - 2.1.0

Published by willfarrell over 3 years ago

  • #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
middy - 2.0.1

Published by willfarrell over 3 years ago

  • #640 sms bug fix where infinite loop happens when pulling >10 values @garnertb
  • #643 improve performance of http-json-body-parser @nponeccop
middy - 2.0.0

Published by willfarrell over 3 years ago

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

  • @lmammino: For discussions to bounce and talk through ideas. Code audit/review & TypeScript definitions.
  • @markcarroll: TypeScript bug fix #630
  • @huyennbl: Muti-file parsing support #634
  • @ffxsam: For reporting #609.
  • @raae & @AyoAlfonso: For expose support in http-error-handler #610.
  • @nfantone: For improved response default handling #615
  • @fredericbarthelet: For new cloudwater-metrics middleware
middy - 2.0.0-beta.1

Published by willfarrell over 3 years ago

  • mutli-file parsing #634 @huyennbl
  • TypeScript fix #630 @markcarroll
middy - 2.0.0-beta.0

Published by willfarrell over 3 years ago

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

middy - 2.0.0-alpha.6

Published by willfarrell over 3 years ago

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

middy - 2.0.0-alpha.5

Published by willfarrell over 3 years ago

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.

middy - 2.0.0-alpha.4

Published by willfarrell over 3 years ago

Added expose support in http-error-handler #610 @raae & @AyoAlfonso

middy - 2.0.0-alpha.3

Published by willfarrell over 3 years ago

Fix node engine setting in package.json, Thanks @ffxsam for reporting.

middy - 2.0.0-alpha.2

Published by willfarrell almost 4 years ago

  • Update img path for logo.
  • included TypeScript definitions in package.
middy - 2.0.0-alpha.1

Published by willfarrell almost 4 years ago

Alpha is ready! We welcome all feedback on it. Our goal is to release a beta in March, with a stable release in Apr (after AWS support Node.js v14). Latest documentation can be found on the release/v2.x.

TypeScript Support needed. To support the TS community, we need your help. See https://github.com/middyjs/middy/issues/589 on how you can.

middy - 2.0.0-alpha.0

Published by willfarrell almost 4 years ago

Testing npm publishing

middy - 1.5.2

Published by willfarrell almost 4 years ago

#603 base64decode on http urlencode body parser @fredericbarthelet

middy - 1.5.1

Published by willfarrell almost 4 years ago

1.5.1

  • #600 ESBuild fix for validator @doktor500
middy - 1.5.0

Published by willfarrell almost 4 years ago

This release includes multiple improvements to @middy/ssm

  • #571 X-Ray support @chris-armstrong
  • #572 Error edge case catch @bokjo

Bug Fixes

  • #574 TypeScript Typo @bhamon-dot

Misc

  • #566 Remove @types/aws-lambda as peerDep
middy - 1.4.0

Published by willfarrell about 4 years ago

Features

  • #562 Allow http-json-body-parser to accept application/vnd.api+json @rob0t7
middy - 1.3.2

Published by willfarrell about 4 years ago

Features

  • #561 Add in a fix for dynamic require with webpack @leog