Releases: janaz/lambda-request-handler
Releases · janaz/lambda-request-handler
v0.6.0
v0.5.2
- Add the following hooks
beforeDispatch
executed before the request is dispatched to handler. It takes an APIGW event and returns a modified eventbeforeReturn
executed before the response is sent. It takes a LambdaResponse object and returns a modified responseonError
executed when an unexpected error occurred when processing the event. It takes the error object
- Removed dependency on
in-process-request
v0.5.1
0.5.1-alpha1
- Trying to fix an API gateway HTTP API v1.0 error with compressed responses from Lambda
v0.5.0
v0.4.4
v0.4.3
- Fixed a bug when the response was a UTF-8 encoded
text/html
body, but thecontent-type
header didn't explicitly specify it (text/html
instead oftext/html; charset=utf8
). In that case the Lambda response object hadisBase64Encoded
set tofalse
and the body was a base64 encoded string. Api Gateway REST API ignores theisBase64Encoded
flag when thecontent-type
istext-html
and doesn't decode the base-64 body but returns it back to the user.
v0.4.2
v0.4.1
- Use the latest
in-process-request
which fixes a small bug around the response object
v0.4.0
- Support for AWS API Gateway HTTP API payload 2.0