Releases: unjs/consola
Releases · unjs/consola
v2.5.0
v2.4.0
v2.1.0
Improvements
- Support different aliases for methods. Two letter ones preferred for forward-compatibility and reducing the chance of conflicts with types. (cbea7bd)
New features
- consola.mockTypes for easy mocking and tests integration. (a332890) (Thanks to @manniL)
Koala wakes up! (v2.0.0)
This is a major rewrite of consola with 49 changed files, 5,250 additions and 1,558 deletions!
Hope you enjoy the new release and waiting for improvement suggestions. 💖
Semi-Braking
- Removed some extra types like
done
andready
and added a newsilent
level. See types.js. - The log methods signature is improved. Either a
logObj
or a series of arguments which will be directly passed toutil.format
like the normal console. (
(logObject) - Use badge style for the fancy reporter when log level is below 2 (error, fatal and warning)
add
,remove
andwithScope
methods renamed toaddReporter
,removeReporter
andwithTag
with aliases for backward compatibility (Thanks to @aldarund for early testing)
Improvements
- Significant improvements for both Fancy and Basic reporters
- Better stack trace highlights and formatting
- Tree-shakable ESM (When using
dist/*
files) (Thanks to @clarkdo) - Significant install size improvements by removing lodash dependency (Thanks to @timneutkens)
- Significant performance improvements by writing to the streams once for each log (Thanks to @pimlie)
New features
- Browser support
- Support pause/resume
- Support wrapping
consola
andstdin
/stdout
to make everything fancy. - Log level can be adjusted using
CONSOLA_LEVEL
environment variable.