Releases: KyleRoss/node-lambda-log
Releases · KyleRoss/node-lambda-log
v4.0.0-beta.5
4.0.0-beta.5 (2021-12-10)
Bug Fixes
- add generic support to LogMessage class for specifying the message type (6e6775a)
- add generic to LogObject type to specify type of Message (cd1c746)
- explicitly set type to
string[]
for compiled tags returned from LogMessage (fd873e3) - remove generic from Message type (cc10311)
- remove toJSON() method from LogMessage since it's been moved to a formatter (36fbdaa)
- rename the
log
method to_log
(7317bf5) - still generate the log message just don't log it when verbosity is set (6e13564)
- ts generics and typings on shortcut methods (7e48904)
Features
v4.0.0-beta.4
4.0.0-beta.4 (2021-11-25)
Bug Fixes
- destructure import of EventEmitter to support TS projects (9fc1857)
v4.0.0-beta.3
4.0.0-beta.3 (2021-11-19)
Bug Fixes
- add entrypoint file for advanced usage (d7861de)
- add package.json to esm and cjs directories after build (6c77c79)
- change legacy cjs file to require
lambda-log.js
instead (89db707) - rename index to
lambda-log
to ensure the types are generated properly (467c9e4)
Features
- add support for direct entrypoint (50dd03d)
v4.0.0-beta.2
4.0.0-beta.2 (2021-11-18)
Bug Fixes
- add
.js
file extensions on imports to support node ESM (2fcf770) - add
module
field to point to esm (1323bf4) - add
src
as a module directory to jest (d268e91) - add
ts-node
as a dev dependency for jest (433cb70) - add build:declaration script and run it during build (c43deef)
- add root index file to alleviate the need to call
.default
in cjs (62da1ec) - ignore jest.config.ts when publishing to npm (1c6376c)
- point
types
to separate declaration file (c65fd52) - update
main
to point to root index.js file for cjs usage (39a9f43)
v4.0.0-beta.1
4.0.0-beta.1 (2021-11-17)
Features
- 4.0.0-beta (fe34fe6)
BREAKING CHANGES
- This is the beta version for the next major release of LambdaLog. Do not use in production yet! Please report any issues you may find!
v3.1.0
v3.0.2
v3.0.1
v3.0.0
3.0.0 (2021-04-12)
Bug Fixes
- add
.npmignore
file to help reduce the size of the package (c21bd7f) - do not use husky when on a CI environment (a17ac76)
- reverse the check for LAMBDALOG_SILENT env variable (95828b1)
Code Refactoring
- move message.tags to a getter and setter (201a6fe)
Features
- add ability for tags to be functions (459380f)
- add ability to change the key names of the message output (4a71909)
- add new method
addLevel()
to LambdaLog (9fde2e3) - add new options
levelKey
,messageKey
, andtagsKey
(bb5ba70) - add new website! (44a15dc)
- add symbols to reference certain private properties on LogMessage class (952b62d)
- convert Errors in metadata to plain objects #31 (576052a)
- remove default tags and add tag variable support #29 (ae686ef)
- set node engine to >= 10.0.0 (2d022ec)
- switch from travis to github actions (f2d418e)
- use jest for testing and coverage (fafed5d)
- internal: add function to stub errors with a toJSON method (d0707bd)
BREAKING CHANGES
- There are no longer any built-in tags added to the tags array for each log message.
message.tags
is no longer a property of the LogMessage class that can be directly changed.- Whenever an Error object is passed into the metadata for a log message, it will automatically be converted to a plain object as stringifying the an Error object will always yield
{}
. - Previously you could directly access the private properties of LogMessage. In order to add some integrity, they are no longer using standard property names starting with an underscore and are instead referenced using symbols instead. For advanced usage, these symbols are exported as a static property on the LogMessage class under
LogMessage.symbols
. - Previously you could directly access the private properties of LambdaLog. In order to add some integrity, they are no longer using standard property names starting with an underscore and are instead referenced using symbols instead. For advanced usage, these symbols are exported as a static property on the LambdaLog class under
LambdaLog.symbols
.