Skip to content

Releases: unjs/consola

v2.10.1

10 Nov 11:29
@pi0 pi0
Compare
Choose a tag to compare
  • docs: mention importing from src
  • distribute src folder on npm (#51)

v2.10.0

05 Aug 11:08
@pi0 pi0
Compare
Choose a tag to compare

Bug Fixes

  • add missing typescript declaration for level, stdout and stderr (#58) (a149dbb)

Features

  • improve typescript type definitions (#57) (80eefd8)

v2.9.0

18 Jun 14:23
@pi0 pi0
Compare
Choose a tag to compare

Count repeated times before the next log (197a6b3)

image

v2.8.0

18 Jun 13:02
@pi0 pi0
Compare
Choose a tag to compare

DX

  • Prevent console spamming by throttling same log (7da806b)

This:

image

Will be rendered as:

image

v2.7.1

26 May 10:09
@pi0 pi0
Compare
Choose a tag to compare

Bug Fixes

  • browser: hide : with tag and normal log (8250d5a)

v2.7.0

26 May 09:38
@pi0 pi0
Compare
Choose a tag to compare

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)

v2.6.2

19 May 19:06
@pi0 pi0
Compare
Choose a tag to compare

Bug Fixes

v2.6.1

08 May 17:49
@pi0 pi0
Compare
Choose a tag to compare

Bug Fixes

  • browser: use console.warn when possible (#49) (e386ede)

v2.6.0

08 May 16:11
Compare
Choose a tag to compare

Features

  • expose constructor and reporters (3a8f662)

v2.5.8

29 Mar 18:25
@pi0 pi0
Compare
Choose a tag to compare

Bug Fixes

  • types: allow passing extra arguments (#46) (d29fc46)