Releases: barchart/common-node-js
Releases · barchart/common-node-js
v3.20.0
New Features
- Added the
LambdaMessageValidator
to validate individual messages passed to a Lambda Function. - Added the
LambdaEventValidator
which delegate its work to one or moreLambdaMessageValidator
instances. - The
LambdaResponder
was refactored, allowing it to delegate the formulation of a final response toLambdaResponseGenerator
strategies. - Added
LambdaResponseGeneratorGzip
which compresses response data between 1 MB and 50 MB in size. - Added
LambdaResponseGeneratorS3
which writes very large responses to S3, then sends an HTTP 303 (See Other) response pointed at the newly written S3 object.
Other
- The
LambdaValidator
class is deprecated and will be removed in the next major release. Use theLambdaEventValidator
class instead. - The
LambdaEventValidator
class inherits theLambdaValidator
class for backwards compatibility. In the next major release,LambdaEventValidator
will not have a super class.
v3.16.0
New Features
- Added support of
transactWriteItems
forDynamoProvider
andTableContainer
instances. Usage is limited to work only withUpdate
operations.
Bug Fixes
- Fixed bug when
ReturnValueType.NONE
causedDynamoProvider
to throw an error.
v3.14.0
- When a
FailureReason
is returned to theLambdaHelper
theFailureReason
is searched for an HTTP error code (instead of always using 500).