Socket
Socket
Sign inDemoInstall

consola

Package Overview
Dependencies
Maintainers
3
Versions
86
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

consola - npm Package Versions

23
9

3.2.3

Diff

Changelog

Source

v3.2.3

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

pi0
published 3.2.2 •

Changelog

Source

v3.2.2

compare changes

🩹 Fixes

  • fancy: Add node 14 compatibility (#204)

📦 Build

  • pkg: Add supported engines field (#179)

❤️ Contributors

pi0
published 3.2.1 •

Changelog

Source

v3.2.1

compare changes

🩹 Fixes

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

❤️ Contributors

pi0
published 3.2.0 •

Changelog

Source

v3.2.0

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)

🏡 Chore

❤️ Contributors

pi0
published 3.1.0 •

Changelog

Source

v3.1.0

compare changes

🚀 Enhancements

  • Support fancy option for createConsola and improve docs (#177)
  • /basic, /core and /browser subpath exports (#178)

🏡 Chore

❤️ Contributors

pi0
published 3.0.2 •

Changelog

Source

v3.0.2

compare changes

🩹 Fixes

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

💅 Refactors

  • Use individual named exports of reporters (57bb579)

🏡 Chore

❤️ Contributors

pi0
published 3.0.1 •

Changelog

Source

v3.0.1

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

pi0
published 3.0.0 •

Changelog

Source

v3.0.0

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)
  • promp: Options is optional (817626f)

💅 Refactors

  • ⚠️ Rewrite consola with typescript (4479d2f)
  • Rename global to globalThis (bd03098)
  • utils: Rename global to globalThis (8c3ef77)
  • Strict typechecks (63bbd56)
  • Remove globalThis caching (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)
  • 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)
  • 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

✅ Tests

🎨 Styles

  • Prefer object spread instead of Object.assign (c03268a)
⚠️ Breaking Changes
  • ⚠️ Rewrite consola with typescript (4479d2f)
  • ⚠️ Move log levels and types to constants (514f5b3)

❤️ Contributors

pi0
published 3.0.0-5 •

Changelog

Source

v3.0.0-5

compare changes

🩹 Fixes

💅 Refactors

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

❤️ Contributors

pi0
published 3.0.0-4 •

Changelog

Source

v3.0.0-4

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

23
9
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc