diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 4a4e1ff..b05e335 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -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: diff --git a/bin.js b/bin.js index 238a861..4463e25 100755 --- a/bin.js +++ b/bin.js @@ -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: { @@ -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) diff --git a/package.json b/package.json index c523b72..62ee229 100644 --- a/package.json +++ b/package.json @@ -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" @@ -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", @@ -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", diff --git a/test/cli-heapprofiler-version.test.js b/test/cli-heapprofiler-version.test.js index a16a9db..0d95d4b 100644 --- a/test/cli-heapprofiler-version.test.js +++ b/test/cli-heapprofiler-version.test.js @@ -6,7 +6,7 @@ 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() }) }) @@ -14,7 +14,7 @@ test('clinic heapprofiler --version', function (t) { 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() }) })