Skip to content

Releases: jeremydaly/lambda-api

v0.8.0

20 Aug 17:21
cd09fbc
Compare
Choose a tag to compare

Feature Release

v0.8 adds several new features including a robust, highly-customizable logging engine that utilizes native JSON support for AWS CloudWatch Logs. The logging engine also supports "access" logs and provides a sampling utility to perform periodic request tracing. New middleware functionality has been added that allows you to specify multiple handlers and several convenience methods have been added for cache controls and signing S3 file URLs. Async/Await support has also been added to the main handler.

Logging and Sampling Support

Multiple Middleware Handler Support

  • Close #50 by adding support for multiple middlewares a2259a2

Cache Control Convenience Methods

  • Add cacheControl convenience method described in #49 ca795bc
  • Add no-cache option to #49 d0590a7
  • Add modified convenience method for adding last-modified headers #49 66230ad
  • Add documentation for cache and modified methods 6f87aaa, bbb86ee

Signed S3 File URLs

  • Close #56 with built in getSignedUrl f7f841e
  • Add s3 url signing to redirects 38b3477

Async/Await Support for Main Handler

  • Close #52 by adding main handler async support 5086386

Miscellaneous Updates/Maintenance

v0.7.0

16 Jun 03:22
8d2bf79
Compare
Choose a tag to compare

Feature Release

v0.7 adds new features to middleware allowing an optional path that supports multiple paths, wildcards, and parameter matching to better control middleware execution plus additional parsing of the AWS Lambda context object for use in your applications. In an effort to ensure code quality and adequate test coverage, ESLint was added as well as coverage reports using Istanbul and Coveralls.

Middleware Execution Paths

  • Close #41 by adding path checks to middleware c8c7d06
  • Add middleware path restriction documentation b25f1b7

Context Parsing

  • Close #47 by adding id and context parsing 2d045cf
  • Add request context documentation 9ee79db

Test Coverage

  • Add support for test coverage 69ffb92
  • Re-config coverage tests and add ignores cd576a7

ESLint

v0.6.0

18 May 21:31
7c76f28
Compare
Choose a tag to compare

Feature Release

v0.6 adds a number of enhancements to route processing including support for both callback-style and async-await responses. Plus added Etag support, advanced method control with any(), head() and multi-method assignments, authorization parsing, and new route debugging features.

Etag Support

  • Close #22 by adding preliminary etag support bab5ba8
  • Add documentation for etag() c2fa313

Method Control Enhancements

  • Close #35 by adding head convenience method and updating HEAD aliasing befc95c
  • Documentation for head() convenience method b674c15
  • Close #31 by adding support for ANY method; reprioritize HEAD aliasing 86b529e
  • Documentation for any() method a4323d7
  • Close #32 by looping methods 20f3164
  • Update documentation with multi-method info bc3df07

Authorization Header Parsing

  • Close #40 by adding automatic authorization header parsing a35e3d8
  • Add documentation for new auth value 6527a9d

Route Debugging

  • Close #33 by adding a routes() method for displaying routes b5a48ce
  • Add documentation for routes() method c40d26c

Async/Await Response Support

  • Add async/await callback styles 2f674d6
  • Add documentation for callback-style and async-await support d130690
  • Documentation updates to middleware and error handling 7b01883

General Updates/Maintenance

  • Consolidate util calls c8a8c2e
  • Add patch tests 26a4d1f
  • Decouple API, request, and response to remove potential variable cross-contamination ed1f1b8
  • Add Table of Contents to readme 7c1dc43, 8ac2c86

v0.5.1

01 May 20:57
5e13c01
Compare
Choose a tag to compare

Bug Fix

  • Fix #38 with callback and error tracking edac317

v0.5.0

25 Apr 20:18
386fbe1
Compare
Choose a tag to compare

Feature Release

v0.5 removes Bluebird dependency and adds built-in CORS support, additional wildcard features, new HTTP header management methods and more.

Remove Bluebird Dependency

  • Close #26 by removing Bluebird promises and replacing processing with async/await a524445
  • Remove node 6/7 tests in favor of native async/await support 6b9396b
  • Close #29 by upgrading all tests to async/await 8496285, 0d39e0b

Built-In CORS Support

Additional Wildcard Features

  • Close #20 with additional wildcard support 28fead2
  • Update wildcard documentation 5cfe0b3

HTTP Header Management Methods

  • Close #23 with new getHeader() method 22793a5
  • Add hasHeader and removeHeader, modify headers to lowercase b4caff9
  • Update tests with lowercase headers 1d8ec09
  • Add getHeader documentation 41ff595
  • Add header convenience methods documentation c4b768b

HEAD Method Aliasing

  • Close #19 by adding HEAD alias for GET requests 5fdcd32
  • Add HEAD tests and convert tests to async/await d12e2e9
  • Add documentation for HEAD method 045c052

General Updates

  • Change file structure to include lib directory 95a6cde
  • Update requires for lib dir structure b49f51a
  • Update test requires for new dir structure b96320b
  • Added default error on sendFile catch if not explicit dd147a3
  • Add .promise() to S3 getObject call 8eebc99
  • Update S3 tests with promise mock 728f892
  • Fix missing request object issue on request error f6e9577
  • Version bump and new package-lock.json file 4391d9e
  • Update license file with new date 3e7713f
  • Update aws-sdk version b16c1a6
  • Add tests for catching request errors c5872c3

Additional Documentation

v0.4.0

02 Apr 02:10
c3fa0c1
Compare
Choose a tag to compare

Feature Release

v0.4 adds Binary Support, Path Prefixing and more.

Binary Support

  • Add base64 body parsing if isBase64Encoded header is available 75284c5
  • Add mimeLookup and mimemap 6b0d2d8, 928c7e3
  • Add attachment(), download(), and sendFile() methods 9a73b68, 6c745d6, a0f8a78
  • Add custom mimeTypes config option e8f6686
  • Add auto reset of isBase64 and add strip headers on error 86c0a17, 91eea99
  • Add s3 getObject support w/ tests 28b9c33
  • Add aws-sdk as dev dependency 591da6d

Path Prefixing

  • Add register function to close #11, rework base property bc2a00b
  • Update tests with new base config and add register tests bfa26be
  • Add support for root paths 49476ab

Additional Updates

  • Close #18 by adding patch() convenience method 9012dc6

Tests

  • Add mimeLookup tests 7926f21
  • Add attachment() method tests 96a64d7
  • Update tests to support default isBase64Encoded flag f62eb12
  • Add tests for sendFile() and test.txt file e27c672
  • Add tests for download() method 3643713
  • Add additional attachment() tests f86af2d

Documentation

  • Update lambda api image inclusion method for npm fix 4e0063e
  • Add notes for root paths and binary support 074ee79
  • Additional notes about binary support 0a6de47
  • Initial documentation for sendFile and new config options 229b93f
  • Add patch() documentation 71316e9
  • Additional documentation for download/sendfile and other updates aed99f6
  • Add register() documentation 8530199
  • Add attachment() documentation aa9bcaa
  • Add binary support documentation e42739f
  • Additional documentation and cleanup 0127fb8, 7e5ee40

v0.3.1

23 Mar 22:07
514d73a
Compare
Choose a tag to compare

Bug Fix

  • Fix #15 by converting header properties to lowercase a751dfa
  • Update documentation with new header conversion a6cfb3a

v0.3.0

21 Mar 19:11
5e23d38
Compare
Choose a tag to compare

Feature Update

v0.3 of Lambda API adds additional features to handle more serverless application use case including JSONP support and cookie management.

There is also a breaking change in this release that requires a minor update to the way Lambda API is instantiated. This is to ensure future flexibility with the framework.

v0.2.1

16 Mar 13:48
Compare
Choose a tag to compare

Maintenance Patch

Small patch that fixes some typos in the documentation and adds a new Why Another Web Framework? manifesto.

v0.2.0

15 Mar 17:21
2f58e3d
Compare
Choose a tag to compare

Feature Release

v0.2.0 of Lambda API adds a few new convenience methods and introduces NAMESPACES, a new feature that lets you pass module references through the REQUEST object. See the documentation for examples.

Features:

  • Add location() and redirect() convenience methods 8b9a746
  • Add namespaces 1a37cd7
  • Add util functions escapeHtml and encodeUrl 72c6380

Documentation and Tests:

  • Add tests for new location() and redirect() methods e5cafd4
  • Add namespace documentation and other minor adjustments 3352c29
  • Update documentation with new methods 2dfdb10, 7e1f6bf
  • Add slow() setting for promise tests 8f1cc3a

Fixes: