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.
🚀 Enhancements
- Default
logLevel
to 1 in test environments (#134) - Support literal for logLevels (#133)
- Expose
createConsola
and named exports (ef6e5e5)
🔥 Performance
💅 Refactors
⚠️ Rewrite consola with typescript (4479d2f)- Rename
global
toglobalThis
(bd03098) - utils: Rename
global
toglobalThis
(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
- Pooya Parsa (@pi0)
- Anthony Fu anthonyfu117@hotmail.com
- Xin Du (Clark) clark.duxin@gmail.com
- Sébastien Chopin seb@nuxtjs.com
- Thomas K (@ThomasKoscheck)