Skip to content

Latest commit

 

History

History
137 lines (105 loc) · 7.37 KB

CHANGELOG.md

File metadata and controls

137 lines (105 loc) · 7.37 KB

2.0.1

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

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 (rds-signer, sts, s3-object-response)
  • 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-2019-09 using the latest version of ajv. 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

1.5.0

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

1.4.0

Features

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

1.3.2

Features

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

1.3.1

Features

  • #522 Added in an option to remove ajv plugins from validator @willfarrell

1.3.0

Features

  • #552 Validator extend for better avj plugin support @leog
  • #559 Scope requests individually to allow batch requests @thetrevdev

Bug Fixes

  • #556 be able to replace the context from a middleware @russell-dot-js
  • #557 deep close on input-output-logger @MiguelNazMor

1.2.0

Features

  • #546 Documented order with http-response-serializer by @k-nut
  • #548 add ssm.onChange support back to 1.x by @theburningmonk
  • #549 Added middy-env to 3rd party middleware list by @chrisandrews7

1.1.0

Features

  • #545 Add Support for API Gateway HTTP API (v2) by @fredericbarthelet
  • #537 Handling base64 event bodies by @caiokf
  • #528Add the boolean check for a truncated file upload by @tyvdh

Bug Fixes

  • #521 Parse array from multipart form data by @benjifs
  • #512 Respect canonical normalization parameter for multiValueHeaders by @getkey
  • #544 The httpResponseSerializer needs to find a serializer for a type by searching all the types by @randytarampi
  • #543 fix(db-manager): improve type definition by @munierujp
  • #542 Safely parse secretString by @chris-heathwood-uoy

Chores

  • Small documentation updates
  • dependency updates

1.0.0

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

Main changes: