8000 Releases · unjs/consola · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Releases: unjs/consola

Koala wakes up! (v2.0.0)

02 Nov 19:06
@pi0 pi0
Compare
Choose a tag to compare

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 and ready and added a new silent level. See types.js.
  • The log methods signature is improved. Either a logObj or a series of arguments which will be directly passed to util.format like the normal console. ((logObject) (args...)`)
  • Use badge style for the fancy reporter when log level is below 2 (error, fatal and warning)
  • add, remove and withScope methods renamed to addReporter, removeReporter and withTag 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 and stdin/stdout to make everything fancy.
  • Log level can be adjusted using CONSOLA_LEVEL environment variable.
0