npm consola 2.0.0
Koala wakes up! (v2.0.0)

latest releases: 3.2.3, 3.2.2, 3.2.1...
6 years ago

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.

Don't miss a new consola release

NewReleases is sending notifications on new releases.