Skip to content

Commit

Permalink
Drop Node.js 10, bump to 9.0.0 (#283)
Browse files Browse the repository at this point in the history
  • Loading branch information
jasnell authored May 13, 2021
1 parent fc06899 commit 53a58b5
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 11 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ jobs:
fail-fast: false
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
node-version: [10.12.0, 10.x, 12.x, 13.x, 14.x, 15.x]
node-version: [12.13.0, 12.x, 14.x, 15.x]

runs-on: ${{matrix.os}}
steps:
Expand Down
4 changes: 2 additions & 2 deletions bin.js
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,7 @@ const result = commist()
}
}))
.register('heapprofiler', catchify(async function (argv) {
const version = require('@nearform/heap-profiler/package.json').version
const version = require('node-clinic-heap-profiler/package.json').version

const args = subarg(argv, {
alias: {
Expand Down Expand Up @@ -213,7 +213,7 @@ const result = commist()
} else if (args['visualize-only'] || args['--'].length > 1) {
checkArgs('heap-profiler', args, 'clinic-heap-profiler', version)
await trackTool('heap-profiler', args, version)
await runTool('heap-profiler', require('@nearform/heap-profiler'), version, args, { color: 'yellow' })
await runTool('heap-profiler', require('node-clinic-heap-profiler'), version, args, { color: 'yellow' })
} else {
printHelp('clinic-heap-profiler', version)
process.exit(1)
Expand Down
12 changes: 6 additions & 6 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@
"name": "clinic",
"description": "Clinic.js diagnoses your performance issues",
"repository": "nearform/node-clinic",
"version": "8.1.0",
"version": "9.0.0",
"engines": {
"node": "^16.0.0 || ^15.0.0 || ^14.0.0 || ^13.0.0 || ^12.0.0 || ^11.0.0 || ^10.12.0"
"node": ">= 12.13.0"
},
"bin": {
"clinic": "bin.js"
Expand All @@ -18,10 +18,9 @@
"lint": "standard --fix | snazzy"
},
"dependencies": {
"@nearform/bubbleprof": "^6.0.1",
"@nearform/doctor": "^7.0.1",
"@nearform/flame": "^8.0.1",
"@nearform/heap-profiler": "^1.0.0",
"@nearform/bubbleprof": "^7.0.0",
"@nearform/doctor": "^8.0.0",
"@nearform/flame": "^9.0.0",
"any-shell-escape": "^0.1.1",
"async": "^3.0.1",
"autocannon": "^6.5.0",
Expand All @@ -32,6 +31,7 @@
"execspawn": "^1.0.1",
"insight": "^0.10.1",
"minimist": "^1.2.0",
"node-clinic-heap-profiler": "^1.0.0",
"open": "^7.3.0",
"ora": "^5.1.0",
"rimraf": "^3.0.0",
Expand Down
4 changes: 2 additions & 2 deletions test/cli-heapprofiler-version.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,15 +6,15 @@ const cli = require('./cli.js')
test('clinic heapprofiler --version', function (t) {
cli({}, ['clinic', 'heapprofiler', '--version'], function (err, stdout) {
t.ifError(err)
t.strictEqual(stdout, `v${require('@nearform/heap-profiler/package.json').version}\n`)
t.strictEqual(stdout, `v${require('node-clinic-heap-profiler/package.json').version}\n`)
t.end()
})
})

test('clinic heapprofiler -v', function (t) {
cli({}, ['clinic', 'heapprofiler', '-v'], function (err, stdout) {
t.ifError(err)
t.strictEqual(stdout, `v${require('@nearform/heap-profiler/package.json').version}\n`)
t.strictEqual(stdout, `v${require('node-clinic-heap-profiler/package.json').version}\n`)
t.end()
})
})

0 comments on commit 53a58b5

Please sign in to comment.