Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: unjs/consola
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: v3.2.0
Choose a base ref
...
head repository: unjs/consola
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: v3.2.1
Choose a head ref
  • 3 commits
  • 5 files changed
  • 2 contributors

Commits on Jun 27, 2023

  1. Copy the full SHA
    f09c758 View commit details
  2. Copy the full SHA
    bbed122 View commit details
  3. chore(release): v3.2.1

    pi0 committed Jun 27, 2023
    Copy the full SHA
    3b361e0 View commit details
Showing with 21 additions and 4 deletions.
  1. +15 βˆ’0 CHANGELOG.md
  2. +3 βˆ’1 examples/special.ts
  3. +1 βˆ’1 package.json
  4. +1 βˆ’1 src/reporters/fancy.ts
  5. +1 βˆ’1 src/utils/box.ts
15 changes: 15 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -2,6 +2,21 @@

All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.

## v3.2.1

[compare changes](https://github.com/unjs/consola/compare/v3.2.0...v3.2.1)


### 🩹 Fixes

- **box:** Fix preset naming for `singleThick` ([#201](https://github.com/unjs/consola/pull/201))
- **fancy:** Style underscore with surrounding spaces ([#203](https://github.com/unjs/consola/pull/203))

### ❀️ Contributors

- Pooya Parsa ([@pi0](http://github.com/pi0))
- Christian Preston ([@cpreston321](http://github.com/cpreston321))

## v3.2.0

[compare changes](https://github.com/unjs/consola/compare/v3.1.0...v3.2.0)
4 changes: 3 additions & 1 deletion examples/special.ts
Original file line number Diff line number Diff line change
@@ -18,7 +18,9 @@ consola.error(undefined, null, false, true, Number.NaN);

consola.log("We can `monospace` keyword using grave accent charachter!");

consola.log("We can also _underline_ words!");
consola.log(
"We can also _underline_ words but not_this or this should_not_be_underlined!"
);

// Nonstandard error
const { message, stack } = new Error("Custom Error!");
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "consola",
"version": "3.2.0",
"version": "3.2.1",
"description": "Elegant Console Wrapper",
"keywords": [
"console",
2 changes: 1 addition & 1 deletion src/reporters/fancy.ts
Original file line number Diff line number Diff line change
@@ -129,7 +129,7 @@ function characterFormat(str: string) {
// highlight backticks
.replace(/`([^`]+)`/gm, (_, m) => colors.cyan(m))
// underline underscores
.replace(/_([^_]+)_/gm, (_, m) => colors.underline(m))
.replace(/\s+_([^_]+)_\s+/gm, (_, m) => ` ${colors.underline(m)} `)
);
}

2 changes: 1 addition & 1 deletion src/utils/box.ts
Original file line number Diff line number Diff line change
@@ -79,7 +79,7 @@ const boxStylePresets: Record<string, BoxBorderStyle> = {
h: "─",
v: "β•‘",
},
SingleThick: {
singleThick: {
tl: "┏",
tr: "β”“",
bl: "β”—",