Skip to content

Releases: unjs/consola

v3.3.1

23 Dec 11:13
@pi0 pi0
Compare
Choose a tag to compare

compare changes

🩹 Fixes

  • fancy: Fallback whenIntl is unavailable (#326)

❀️ Contributors

v3.3.0

19 Dec 23:54
@pi0 pi0
Compare
Choose a tag to compare

compare changes

πŸš€ Enhancements

  • utils: formatTree utility (#223)
  • formatTree: Support max depth (#267)
image
  • Print error cause (#308)
image
  • Export prompt option types (#301)
  • prompt: Configurable cancel strategy (#325)

🩹 Fixes

  • Use initial in select and multiselect prompts (#232)
  • Make box title color same as border (#236)

πŸ“– Documentation

  • Update screenshot (205d9c8)
  • Add vitest mocking note (#182)
  • Add note about raw method (#271)
  • Add jsdocs for utils functions (#286)
  • Add jsdocs for top-level functions (#288)

πŸ“¦ Build

  • Updated bundled dependencies (compare changes)
  • Fix subpath types (#265)
  • Add require condition for browser builds (#243)

🌊 Types

  • Fix prompt with select type return value type (#238)

❀️ Contributors

v3.2.3

05 Jul 23:12
@pi0 pi0
Compare
Choose a tag to compare

compare changes

🩹 Fixes

  • types: Partial style options for box (#210)
  • types: Add backward compatible declarations (e46733b)

🏑 Chore

  • Remove extra await in spinner example (#211)
  • Add autofix ci (b3aa049)
  • Update prettier (9a4b67e)

❀️ Contributors

v3.2.2

28 Jun 09:22
@pi0 pi0
Compare
Choose a tag to compare

compare changes

🩹 Fixes

  • fancy: Add node 14 compatibility (#204)

πŸ“¦ Build

  • pkg: Add supported engines field (#179)

❀️ Contributors

  • Pooya Parsa (@pi0)

v3.2.1

27 Jun 16:20
@pi0 pi0
Compare
Choose a tag to compare

compare changes

🩹 Fixes

  • box: Fix preset naming for singleThick (#201)
  • fancy: Style underscore with surrounding spaces (#203)

❀️ Contributors

v3.2.0

27 Jun 11:47
@pi0 pi0
Compare
Choose a tag to compare

compare changes

πŸš€ Enhancements

  • fancy: Support underlining (#191)
  • consola.box (#193)
  • consola/utils subpath export (#199)
  • Color utils (#200)

🩹 Fixes

  • Inherit mocks (#183)
  • Correct and improve return types for single and multi select prompts (#197)
  • Preserve tag casing (#190)

❀️ Contributors

v3.1.0

18 Apr 13:01
@pi0 pi0
Compare
Choose a tag to compare

compare changes

πŸš€ Enhancements

  • Support fancy option for createConsola and improve docs (#177)
  • consola/basic, consola/core and consola/browser subpath exports saving up to 80% of bundle size (#178)

Docs

v3.0.2

13 Apr 11:30
@pi0 pi0
Compare
Choose a tag to compare

compare changes

🩹 Fixes

  • mockTypes: Mock on options.typs (f9d86b6)
  • Type .raw for types (dfb976f)

πŸ’… Refactors

  • Use individual named exports of reporters (57bb579)

🏑 Chore

❀️ Contributors

  • Pooya Parsa (@pi0)

v3.0.1

11 Apr 09:58
@pi0 pi0
Compare
Choose a tag to compare

compare changes

🩹 Fixes

  • utils: Use default stream.write for workers support (#173)
  • Wrap options.stdout and options.stderr for wrapStd (ab59db6)

πŸ’… Refactors

  • fancy: More minimal badges when width cannot be determined (ad24029)

❀️ Contributors

  • Pooya Parsa (@pi0)

v3.0.0

11 Apr 01:16
@pi0 pi0
Compare
Choose a tag to compare

Thank you everyone for trusting and using Consola 🐨 ❀️

This is the first stable version for consola v3, with a new codebase, typescript rewrite, fewer dependencies (no more chalk and dayjs bundled), first-class ESM support, new consola.prompt() and lots of other improvements!

image

Migration from v2

Consola v3 tries to be backward compatible as much as possible for the main interface. For a proper upgrade, switch to named exports.

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

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

compare changes

πŸš€ Enhancements

  • Default logLevel to 1 in test environments (#134)
  • Support literal for logLevels (#133)
  • Expose createConsola and named exports (ef6e5e5)
  • consola.prompt util (#170)
  • consola.fail log level (#153)
  • Pass formatOptions and other options to reporters (d77286a)
  • Show stack trace with consola.trace (#151)

πŸ”₯ Performance

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

🩹 Fixes

  • Add .raw to mocked functions (987dadc)
  • 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)
  • fancy: Improve colors (99c2a4f)
  • prompt: Options is optional (817626f)

πŸ’… Refactors

  • Rewrite consola with typescript (4479d2f)
  • Rename global to globalThis (bd03098)
  • Strict typechecks (63bbd56)
  • Remove globalThis usage (4e7b909)
  • 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)
  • Improve types and exports (b380d21)
  • Improve fancy reporter (bc90db8)
  • fancy: Better start() color and icon (5a01d53)

πŸ“– Documentation

  • Fix links to the source files (#172)

πŸ“¦ Build

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

🏑 Chore

  • Make example/index.js working (#110)
  • Add LICENSE (#121)

🎨 Styles

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

❀️ Contributors