Skip to content

Releases: pushplay/cassava

v1.4.1

04 Jan 21:29
Compare
Choose a tag to compare
  • Update dev dependencies. marked < 0.3.7 is affected by CVE-2017-1000427 and CVE-2017-17461. Though this package is only used in the course of publishing the documents, everyone should update just to be safe.

v1.4.0

15 Dec 00:38
Compare
Choose a tag to compare
  • Added configurable headers logging to LoggingRoute.

v1.3.0

04 Dec 22:49
Compare
Choose a tag to compare
  • Added FileSystemRoute for easy serving of files from the lambda. Also serves as a good example of an advanced route.

v1.2.0

01 Dec 23:15
Compare
Choose a tag to compare
  • Added configuration for LoggingRoute to
    • disable logging request bodies
    • disable logging response bodies
    • configure the logging function

v1.1.0

20 Nov 17:17
Compare
Choose a tag to compare
  • Added support for additionalParams on RestError. eg: throw new RestError(404, "not found", {messageCode: "NOT_FOUND", fatal: "false"});

v1.0.0

07 Nov 01:19
Compare
Choose a tag to compare
  • Complete error handling overhaul:
    • Added Router.errorHandler() as the recommended way to customize error logging and returned responses. This includes errors thrown by handle() and postProcess() functions.
    • Error responses pass through postProcess() the same as other responses.
    • Removed Router.defaultError.
  • Added Router.blacklistQueryStringParameters(), Router.whitelistStringQueryParameters() and Router.requireHeader().
  • Documentation is published at https://giftbit.github.io/cassava/

v0.4.3

27 Oct 22:23
Compare
Choose a tag to compare
  • Fix thrown RestErrors preventing post processors from running and being reported as run time errors.

v0.4.1

26 Oct 20:03
Compare
Choose a tag to compare
  • Rename RouterEvent.requireQueryParam() to RouterEvent.requireQueryStringParameter() for consistency with RouterEvent.queryStringParameters.

v0.4.0

26 Oct 19:57
Compare
Choose a tag to compare
  • Added RouterEvent.requireQueryParam().

v0.3.1

26 Oct 16:37
Compare
Choose a tag to compare
  • Fix _this.defaultError.toResponse is not a function.