Skip to content

Releases: unjs/consola

v2.5.4

24 Feb 17:57
@pi0 pi0
Compare
Choose a tag to compare
  • chore(build): Use the --no-map flag (#41) (@egoist)
  • refactor(browser): Improve export (0049c4b)
  • chore(browser): Ensure umd build is running in browser (4b22e7c)

v2.5.2

23 Feb 19:29
@pi0 pi0
Compare
Choose a tag to compare

Bug Fixes

  • bundle std-env and entrypoint (7b0f838)

v2.5.0

23 Feb 18:30
@pi0 pi0
Compare
Choose a tag to compare

Compare Source

Features
  • fancy: highlight keywords with grave accent char (b3e09fd)
  • fancy: move right to the left if length is <= 80 (34738c7)
Performance Improvements
  • pkg: reduce install size from "375 kB" to "79.4 kB" (f4a1861)

v2.4.0

05 Feb 12:54
@pi0 pi0
Compare
Choose a tag to compare

Bug Fixes

Features

v2.1.0

03 Nov 12:11
@pi0 pi0
Compare
Choose a tag to compare

Improvements

  • Support different aliases for methods. Two letter ones preferred for forward-compatibility and reducing the chance of conflicts with types. (cbea7bd)

New features

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.