Releases: jeremydaly/lambda-api
v0.8.0
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
- Add logging and sampling support #45 a65170c, 7fb74f9
- Add additional sampler support for #45 fe54a08
- Add logging tests and fix misc bugs dedd89e
- Complete sampler and logger tests for #45 7d5d3d, 3c00eb1, e80422f
- Add logging documentation 71322af, 837476e, c96c6c8
Multiple Middleware Handler Support
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
Async/Await Support for Main Handler
Miscellaneous Updates/Maintenance
- Version bump 95994c7
- Tag updates 77a9d62
- Update test reporter for local reports 3562047
- Improve test coverage 4be1cf0, 15ee539, 8cf127e, 404d731, 117e065
- Unit tests for route creation 9bba041
- Documentation update cea8866, abc03b6, 7988df7, 0d01f45
- Add clientType, clientCountry and requestCount to request object d5e4c36
- Add device and country to access log d9b6c5c
- Close #51 with added documentation 09abe13
- Miscellaneous fixes and tweaks 31df7c5, 2e8725e, ee130d1
v0.7.0
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
Test Coverage
ESLint
v0.6.0
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
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
v0.5.1
v0.5.0
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
HTTP Header Management Methods
- Close #23 with new
getHeader()
method 22793a5 - Add
hasHeader
andremoveHeader
, 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 forGET
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 S3getObject
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
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()
, andsendFile()
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
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
v0.3.0
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.
- Breaking Change: Update initialization method 0f79b0d, 1a05b8f
- Add
jsonp
convenience method (#12) d37fa54, 04e21de - Add
cookie
method for setting cookies and added built in cookie parsing (#3) 048ae1a, 9f25b3d, bdd4f4f - Add
clearCookie
method (#4) 9a9ebd3 - Documentation updates e714b53, ad349ab, e22ed79, 21ca353
v0.2.1
v0.2.0
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()
andredirect()
convenience methods 8b9a746 - Add namespaces 1a37cd7
- Add util functions
escapeHtml
andencodeUrl
72c6380
Documentation and Tests:
- Add tests for new
location()
andredirect()
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: