Update:
- Remove note about Node version check in documentation. Thanks @munierujp
Breaking:
-
Strict checking for how the results/errors are captured have been relaxed. this can be re-enabled using the
strict()
method after creating theLambdaTester
instance. -
Node.js versions are no longer checked before running the tests.
New:
- Event mocks (via
lambda-event-mock
)
Updated:
expectResult()
andexpectError()
are now the preferred methods to verify the handler's execution. If strict mode is enabled, then it will enforce that the callback is called.- Better support for stack traces. Thanks @edbo @d-w4lsh
- Supports nodejs 12. Thanks @jkehres
Internal:
- Updated dependencies
- Refactored unit tests
Updated:
- Version checking supports node 10. Thanks @joskark @bvalosek @stewartjarod
Internal:
- Updated dependencies
New:
- Support for async handlers that return promises. Thanks @jkehres @jamesdixon @dtothefp @HajoAhoMantila
Updated:
- Version checking is a little less strict and supports node versions in the 8.x range. Thanks @ArgamTorozyan
Internal:
- Updated dependencies
Fixed:
package.json
engines statement. Thanks @kaxelson
Updated:
- Improved version checking using
semver
. Thanks @AlexHankins @wheresrhys
Fixed:
package.json
engines to include node 8.x. Thanks @zanzamar
Updated:
- Version checking now includes
8.10.0
. Thanks @Limess
New:
- JSON formatted env files. Thanks @debugwand
Internal:
- Updated dependencies
Fixed:
- Error being generated when x-ray server mock gets closed. Thanks @anyong
Internal:
- Migrated from istanbul to nyc for test/coverage
New:
LAMBDA_TESTER_NODE_VERSION_CHECK
environment variable support to prevent node version checking from running.- Verification for AWS X-Ray (Experimental)
Updated:
- Updated verifiers to support async callback
Internal:
- Updated test dependencies
Updated:
- Throw original error if thrown during callback( null, result ) case to preserve original stack trace to address how console.log() formats errors
Fixed:
- Timeout enforced for default case. Thanks @AntonBazhal
Updated:
- Dependencies
New:
- Configuration settings file (
.lambda-tester.json
)
Updated:
- Better support for Node 6.10.x
Internal:
- Refactored to improve testability
- Reworked Promise implementation
Updated:
- Improved check for node version to allow versions below 7. Thanks @Kiniamaro
New
- Added check for node version. Thanks @toaster
Updated:
- Automatically detects
done.fail()
to support Jasmine users. Thanks @toaster - Updated documentation
Internal:
- Code clean-up and refactor
Updated:
event
can an array (#9)
Internal:
- Switched
node-uuid
version1.4.7
touuid
version3.0.0
.
Updated:
context.fail()
andcallback()
now support strings, which will get converted intoError
instances. This behavior matches that of Lambda.
Updated:
event()
changed to make a copy of the object that was passed
New:
- Added auto generated context values to better simulate Lambda environment
New:
- Added support for custom
context
values to support cognito identities and mobile apps. Thanks @xsurfing
New:
- Automatically loads
.env
files whenlambda-tester
is loaded duringrequire()
. - Handlers can be loaded and cleaned up after execution
Improved:
- Added cause to error messages
Updated:
- Leak detector moved to
lambda-leak
and included as a dependency. Still experimental status
Fixed:
- npm publish issue
Experimental:
- Detects resources that might still be open and cause the Lambda handler to run longer than anticipated
New:
- Support for using
GetRemainingTimeInMillis()
from the context object - Timeout can be set for the tester so that it detects when the Lambda handler has run for too long
- Environment variable
LAMBDA_TASK_ROOT
is now set to the application root folder
Fixed:
- Updated documentation
New:
- Can now use Promises within verifiers
- Supports Lambda Callbacks
Improved:
- No longer requires the 'done' callback from mocha. Expect handlers now return promises that can be resolved/rejected by mocha.
Compatibility:
- Node.js 4.3.2 or higher
Fixed:
- Documentation examples contained some errors
- NPM package now smaller
Initial Release