Skip to content

Commit

Permalink
chore: upgrade deps
Browse files Browse the repository at this point in the history
BREAKING CHANGE: drop support of Nodejs < v18
  • Loading branch information
3cp committed May 11, 2024
1 parent ade507b commit fd1adef
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 18 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,13 +15,13 @@ jobs:
strategy:
fail-fast: false
matrix:
node_version: ['14', '16', '18']
node_version: ['18', '20']
os: [ubuntu-latest, windows-latest, macOS-latest]

steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
- name: Use Node.js ${{ matrix.node_version }}
uses: actions/setup-node@v1
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node_version }}
- run: npm i
Expand Down
6 changes: 3 additions & 3 deletions bin/browser-do.js
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
#!/usr/bin/env node
/* eslint-disable no-console */

const opts = require('commander');
const { program } = require('commander');
const fs = require('fs');
const path = require('path');
const browserDo = require('../index');

opts
program
.version(require('../package.json').version)
.option('-b, --browser <name>', 'Browser to use, see available browsers below', 'electron')
.option('-p, --port <port>', 'Starts listening on that port and waits for you to open a browser')
Expand Down Expand Up @@ -44,7 +44,7 @@ function onCoverage(result) {
'# then view coverage/lcov-report/index.html in a browser\n');
}

const options = opts.opts();
const options = program.opts();
options.onCoverage = onCoverage;

const run = browserDo(options);
Expand Down
25 changes: 13 additions & 12 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"description": "Run JavaScript in a browser, forward browser console log to stdout, great for running unit tests in browser.",
"main": "index.js",
"engines": {
"node": ">=14.17.0"
"node": ">=18.0.0"
},
"files": [
"index.js",
Expand Down Expand Up @@ -43,25 +43,26 @@
"cat": "^0.2.0",
"chai": "^4.3.7",
"concat-stream": "^2.0.0",
"eslint": "^8.34.0",
"jasmine-core": "^4.5.0",
"mocha": "^10.2.0",
"socket.io-client": "^4.6.1",
"eslint": "^8.57.0",
"jasmine-core": "^5.1.2",
"mocha": "^10.4.0",
"parcel": "^2.12.0",
"socket.io-client": "^4.7.5",
"source-map-support": "^0.5.21",
"standard-changelog": "^2.0.27",
"tape": "^5.6.3",
"standard-changelog": "^6.0.0",
"tape": "^5.7.5",
"zora": "^5.2.0"
},
"dependencies": {
"ansi-colors": "^4.1.3",
"commander": "^10.0.0",
"electron": "^23.1.1",
"commander": "^12.0.0",
"electron": "^30.0.3",
"finalhandler": "^1.2.0",
"lodash.kebabcase": "^4.1.1",
"serve-static": "^1.15.0",
"server-destroy": "^1.0.1",
"socket.io": "^4.6.1",
"tmp": "^0.2.1",
"which": "^3.0.0"
"socket.io": "^4.7.5",
"tmp": "^0.2.3",
"which": "^4.0.0"
}
}

0 comments on commit fd1adef

Please sign in to comment.