Releases: unjs/consola
Releases Β· unjs/consola
v3.2.3
π©Ή Fixes
π‘ Chore
β€οΈ Contributors
- Pooya Parsa (@pi0)
- Alexander Topalo [email protected]
- EstΓ©ban (@Barbapapazes)
v3.2.2
v3.2.1
π©Ή Fixes
- box: Fix preset naming for
singleThick
(#201) - fancy: Style underscore with surrounding spaces (#203)
β€οΈ Contributors
- Pooya Parsa (@pi0)
- Christian Preston (@cpreston321)
v3.2.0
π 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
- Pooya Parsa (@pi0)
- Christian Preston (@cpreston321)
- Leex (@jsonleex)
- Inesh Bose
- Damian GΕowala
- @jorgebucaran
- @antfu
v3.1.0
v3.0.2
v3.0.1
v3.0.0
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!
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");
π Enhancements
- Default
logLevel
to1
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
π©Ή 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 thedefaults
(#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
toglobalThis
(bd03098) - Strict typechecks (63bbd56)
- Remove
globalThis
usage (4e7b909) - Drop
json
andwinston
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
andlogtype
types toLogType
(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
π¨ Styles
- Prefer object spread instead of
Object.assign
(c03268a)
β€οΈ Contributors
- Pooya Parsa (@pi0)
- With-heart (@with-heart)
- Anthony Fu [email protected]
- Xin Du (Clark) [email protected]
- SΓ©bastien Chopin [email protected]
- Thomas K (@ThomasKoscheck)
v3.0.0-5
v3.0.0-4
π 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 thedefaults
(#129) - consola: Type defaults overrides generic defaults (d3d3c05)
π Refactors
- Drop
json
andwinston
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
andlogtype
types toLogType
(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
- Fix import in examples (c4fff18)
β Tests
- Update test (64fa81d)
π¨ Styles
- Prefer object spread instead of
Object.assign
(c03268a)
β οΈ Breaking Changes
β οΈ Move log levels and types to constants (514f5b3)
β€οΈ Contributors
- Pooya Parsa (@pi0)
- With-heart (@with-heart)