Skip to content

Releases: unjs/consola

v3.0.0-5

11 Apr 00:56
@pi0 pi0
Compare
Choose a tag to compare
v3.0.0-5 Pre-release
Pre-release

compare changes

🩹 Fixes

πŸ’… Refactors

  • fancy: Better start color and icon (5a01d53)

❀️ Contributors

  • Pooya Parsa (@pi0)

v3.0.0-4

11 Apr 00:17
@pi0 pi0
Compare
Choose a tag to compare
v3.0.0-4 Pre-release
Pre-release

compare changes

πŸš€ Enhancements

  • consola.fail log level (#153)
  • Pass formatOptions and other options to reporters (d77286a)
  • Show stack trace with consola.trace (#151)

🩹 Fixes

  • Type consola instance with built-in type functions (1a4b893)
  • Default value for color format utils (ec9be78)
  • fancy: Show time and tag on right when width cannot be determined (#128)
  • Pass level from CONSOLA_LEVEL to the defaults (#129)
  • consola: Type defaults overrides generic defaults (d3d3c05)

πŸ’… Refactors

  • Drop json and winston reporters (5af0e99)
  • Move all options to consola.options without duplication (2d31ef4)
  • Move spam logic into _lastLog object (cabd04f)
  • Remove global async option (edd1bb9)
  • types: Merge LogTypeLiteral and logtype types to LogType (da1bc73)
  • ⚠️ Move log levels and types to constants (514f5b3)
  • Use index.node.ts for main build (b92d23b)
  • Improve types and exports (b380d21)
  • Improve fancy reporter (bc90db8)
  • Revert back to dist/index.* for bw compatibility (98e300f)

πŸ“– Documentation

  • Fix links to the source files (#172)

🏑 Chore

βœ… Tests

🎨 Styles

  • Prefer object spread instead of Object.assign (c03268a)

⚠️ Breaking Changes

  • ⚠️ Move log levels and types to constants (514f5b3)

❀️ Contributors

v3.0.0-3

31 Mar 15:07
@pi0 pi0
Compare
Choose a tag to compare
v3.0.0-3 Pre-release
Pre-release

compare changes

πŸ’… Refactors

  • Remove globalThis caching (4e7b909)

πŸ“¦ Build

  • Use backward compatible cjs wrapper for default export (e2e6aa6)

🏑 Chore

❀️ Contributors

  • Pooya Parsa (@pi0)

v3.0.0-2

31 Mar 14:54
@pi0 pi0
Compare
Choose a tag to compare
v3.0.0-2 Pre-release
Pre-release

compare changes

πŸš€ Enhancements

  • consola.prompt util (#170)

v3.0.0-1

28 Mar 17:32
@pi0 pi0
Compare
Choose a tag to compare
v3.0.0-1 Pre-release
Pre-release

Today consola is being downloaded more than 19M times per month and used by over 1,700 dependencies and 850K projects!! Thank you everyone for trusting and using Consola 🐨 ❀️

This is the first prerelease version for consola v3, with a new codebase, typescript rewrite, fewer dependencies (no more chalk and dayjs bundled), and first-class ESM support.

You can try this version by installing consola@3x and changing to named imports:

// ESM
import { consola } from "consola";

// CommonJS
const { consola } = require("consola");

Stay tuned for more features and enhancements and please report any issues you could find in this release.


compare changes

πŸš€ Enhancements

  • Default logLevel to 1 in test environments (#134)
  • Support literal for logLevels (#133)
  • Expose createConsola and named exports (ef6e5e5)

πŸ”₯ Performance

  • Switch from chalk to colorette (271b4db)
  • Remove dayjs dependency (d6a3776)

πŸ’… Refactors

  • ⚠️ Rewrite consola with typescript (4479d2f)
  • Rename global to globalThis (bd03098)
  • utils: Rename global to globalThis (8c3ef77)
  • Strict typechecks (63bbd56)

🏑 Chore

  • Make example/index.js working (#110)
  • Add LICENSE (#121)
  • npm: Update repository to unjs orgnization (#125)
  • Add prerelease script (cfaba5e)
  • Hide rollup warn (5c3b7f1)
  • Ignore coverage (da557ac)
  • Update examples (e07e3ab)

⚠️ Breaking Changes

  • ⚠️ Rewrite consola with typescript (4479d2f)

❀️ Contributors

v2.15.2

03 Feb 12:09
@pi0 pi0
Compare
Choose a tag to compare

Bug Fixes

v2.15.1

02 Feb 11:21
@pi0 pi0
Compare
Choose a tag to compare

Bug Fixes

  • skip logObj check for wrapped calls (fixes #109) (091a244)

v2.15.0

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

Features

  • types: use union type for ConsolaLogObject.type (#100) (a6eba53)
  • support formatOptions.date to optionally hide date (#101) (6bf733f)

v2.14.0

26 Jun 15:03
@pi0 pi0
Compare
Choose a tag to compare

Features

v2.13.0

26 Jun 15:03
@pi0 pi0
Compare
Choose a tag to compare

Features

  • remove level boundary check (8972d47)