Releases: haltcase/logger-neue
Release list
v3.1.1
v3.1.0
v3.0.0
With this release, logger-neue will now be an even lighter package. Its two largest dependencies (chalk & fs-extra) have been replaced and removed, respectively. Install size will decrease from around 371kB to about 107kB.
BREAKING CHANGES
- invalid style names in level descriptors will now cause errors to be thrown.
- chalk has many features not used in logger-neue and has been removed in favor of
the much smaller colorette. breakage is possible but should be minimal. - support for node < 8 has been dropped.
FEATURES
- throw on invalid style names (
3b8072c) - replace chalk with colorette (
c14c280) - require node >= 8 (
9e030b9)
PERFORMANCE
- drop
fs-extradependency (bcc2866)
v2.2.0
v2.1.0
v2.0.1
v2.0.0
v2.0.0 is a significant release — logger-neue has been entirely rewritten in strict TypeScript. On top of an improved API and providing a stronger developer experience with its included type definitions, several minor potential bugs were fixed during the rewrite.
Since this is a major release, there are several breaking changes:
-
Minimum supported Node version of 6
-
importusageThe default export is now a function rather than the
LoggerNeueclass — which is now a separate named export if you need it.import loggerNeue, { LoggerNeue } from 'logger-neue' const log = loggerNeue() const log2 = new LoggerNeue()
However be aware that these are not exactly equivalent for TypeScript users. The function is a wrapper around the class that serves to provide more accurate type definitions based on the level descriptors you provide at construction time.
const log = loggerNeue({ levels: { greet: [0, 'red'] } }) // you'll get type hints on this! log.greet('hi!')
-
ES5 / commonjs
requireES5 / commonjs users will need to use the
.defaultproperty when
requireing:const loggerNeue = require('logger-neue').default
-
level descriptors
When defining new levels using object syntax, the property formerly known as
colorsis now calledstyleto better reflect thatchalkstyles other than colors such asunderlineandboldare also accepted.
FEATURES
- rewrite in TypeScript (80dacc8)
BREAKING CHANGES
colorsin level descriptor objects is now known asstyle.- the default export is no longer a class, but instead is a function. The class is now a named export.
- non-ES module / TS users must use
require('logger-neue').default. - support for Node < 6 has been dropped.