Releases: comicrelief/lambda-wrapper
Releases · comicrelief/lambda-wrapper
v2.1.2
v2.1.1
v2.1.0
v2.0.3
v2.0.2
v2.0.1
v2.0.0
2.0.0 (2024-04-02)
Bug Fixes
- Add missing space in DI error message (#1137) (82a5aa8)
- Allow synchronous handlers (#1159) (15742f4)
- Dependency updates (#1138) (d6a3479), closes #1097
- Improve
SQSMessageModel
types (#1189) (baa4966) - Make
@types/aws-lambda
a dependency (#1029) (3845b0f) - More dependency updates (2047e2d)
Features
SQSMessageModel
validates required fields of message (#1188) (6a14aca)- Export
RESPONSE_HEADERS
and fix its type (#1039) (d8857d0) - Migrate to TypeScript (#882) (cf4e089)
- Propagate config type to dependencies (#1112) (b73313b)
- Replace
StatusModel
with types (#1172) (481d430) - Replace Epsagon with Lumigo (#1168) (fcdff3e)
- Return lowercase header keys from
getAllHeaders
(#1187) (141898e) - Runtime config validation (#1199) (0d55ff1)
- Throw by default from failed SQS publish (#1194) (dca7620)
- Throw if there are conflicting dependency names (#1155) (beea2ea), closes /github.com/comicrelief/serverless-payments/pull/614#discussion_r1332757352
BREAKING CHANGES
SQSService#publish
throws by default instead of
handling errors. To maintain old behaviour, you can pass"catch"
in
thefailureMode
parameter.SQSMessageModel
will throw if required fields
(MessageID
,ReceiptHandle
,Body
) are missing from the SQS message.- Header keys returned by
getAllHeaders
are converted
to lowercase. Accessing headers through non-lowercase keys will yield
undefined
, even if the header in the request is in the same case. Use
lowercase keys, or usegetHeader
. StatusModel
andSTATUS_TYPES
are replaced with the
ServiceStatus
andStatus
types- We no longer use Epsagon for monitoring. Lambda Wrapper
now supports Lumigo instead. - the
Access-Control-Allow-Credentials
header value is
now the string'true'
instead of Booleantrue
. This could affect
tests that rely on unstringified values. - See the v2 migration guide for full details.
v2.0.0-beta.16
v2.0.0-beta.15
2.0.0-beta.15 (2024-02-29)
Bug Fixes
v2.0.0-beta.14
2.0.0-beta.14 (2024-01-19)
Features
BREAKING CHANGES
SQSService#publish
throws by default instead of
handling errors. To maintain old behaviour, you can pass"catch"
in
thefailureMode
parameter.