github unjs/consola v2.7.0

latest releases: v3.2.3, v3.2.1, v3.2.0...
4 years ago

DX Improvements

Browser reporter

The initial version of browser reporter was not fancier enough. Now it is! We also hide the time so the output is less verbose:

image

image

Basic reporter

The basic reporter is often used in CI environments when they append log time themselves. Thus we now omit time. Also ordering is changed for more readability:

image

Fancy reporter

When there is no space or terminal width is smaller than 80 characters, type and time will be hidden:

image

Bug Fixes

  • fancy: correctly calculate line width when using grave accent (bad52bd)

Features

  • fancy: always hide right side on width < 80 (07d8246)
  • fancy: smart hide time and tag when there is no space (00a375f)
  • basic: improve basic logs (ea6ce59)
  • basic: hide time from basic logger as it is commonly used in CI environments (68c3bae)
  • browser: fancier logs (b64f337)

Don't miss a new consola release

NewReleases is sending notifications on new releases.