Skip to content

Commit

Permalink
chore(deps)!: upgrade consola to v3 and minimum node version (#128)
Browse files Browse the repository at this point in the history
  • Loading branch information
rchl authored Nov 17, 2023
1 parent 84d5a01 commit 7834861
Show file tree
Hide file tree
Showing 8 changed files with 14 additions and 9 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,9 @@ jobs:
- uses: actions/checkout@v3
- uses: actions/setup-node@v2
with:
node-version: '14'
node-version: '16'
cache: yarn
- run: yarn install
- run: yarn prepack
- run: yarn lint
- run: npx node@12 ./node_modules/.bin/mocha ./test/*.test.*
- run: npx node ./node_modules/.bin/mocha ./test/*.test.*
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
},
"dependencies": {
"chalk": "^4.1.2",
"consola": "^2.15.3",
"consola": "^3.2.3",
"pretty-time": "^1.1.0",
"std-env": "^3.3.3"
},
Expand All @@ -50,6 +50,6 @@
"webpack": "3 || 4 || 5"
},
"engines": {
"node": ">=v12.22.12"
"node": ">=14.18.0"
}
}
2 changes: 1 addition & 1 deletion src/reporters/basic.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { consola } from '../utils/cli'
import { Reporter } from 'src/types'
import { Reporter } from '../types'

export default class SimpleReporter implements Reporter {
start (context) {
Expand Down
2 changes: 1 addition & 1 deletion src/reporters/fancy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import { renderBar, colorize, ellipsisLeft } from '../utils/cli'
import { formatRequest } from '../utils/webpack'
import { BULLET, TICK, CROSS, CIRCLE_OPEN } from '../utils/consts'
import LogUpdate from '../utils/log-update'
import { Reporter } from 'src/types'
import { Reporter } from '../types'

const logUpdate = new LogUpdate()

Expand Down
2 changes: 1 addition & 1 deletion src/reporters/profile.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import chalk from 'chalk'

import { colorize } from '../utils/cli'
import Profiler from '../profiler'
import { Reporter } from 'src/types'
import { Reporter } from '../types'

export default class ProfileReporter implements Reporter {
progress (context) {
Expand Down
2 changes: 1 addition & 1 deletion src/reporters/stats.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { Reporter } from 'src/types'
import { Reporter } from '../types'

export default class StatsReporter implements Reporter {
private options: any
Expand Down
2 changes: 1 addition & 1 deletion src/utils/cli.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import chalk from 'chalk'
import _consola from 'consola'
import { consola as _consola } from 'consola'
import { markdownTable } from 'markdown-table'

import { BLOCK_CHAR, BLOCK_CHAR2, BAR_LENGTH } from './consts'
Expand Down
5 changes: 5 additions & 0 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -1043,6 +1043,11 @@ consola@^2.15.3:
resolved "https://registry.yarnpkg.com/consola/-/consola-2.15.3.tgz#2e11f98d6a4be71ff72e0bdf07bd23e12cb61550"
integrity sha512-9vAdYbHj6x2fLKC4+oPH0kFzY/orMZyG2Aj+kNylHxKGJ/Ed4dpNyAQYwJOdqO4zdM7XpVHmyejQDcQHrnuXbw==

consola@^3.2.3:
version "3.2.3"
resolved "https://registry.yarnpkg.com/consola/-/consola-3.2.3.tgz#0741857aa88cfa0d6fd53f1cff0375136e98502f"
integrity sha512-I5qxpzLv+sJhTVEoLYNcTW+bThDCPsit0vLNKShZx6rLtpilNpmmeTPaeqJb9ZE9dV3DGaeby6Vuhrw38WjeyQ==

conventional-changelog-angular@^5.0.12:
version "5.0.13"
resolved "https://registry.yarnpkg.com/conventional-changelog-angular/-/conventional-changelog-angular-5.0.13.tgz#896885d63b914a70d4934b59d2fe7bde1832b28c"
Expand Down

0 comments on commit 7834861

Please sign in to comment.