Skip to content

Commit f06c506

Browse files
authored
Update dependencies; supported Node.js versions
* Remove Node.js 13 support * Denote Node.js 12.17 as the future minimal Node.js 12 version * Update dev dependencies * Upgrade XO * Update dependencies * Rebuild lockfile
1 parent 27d2c6a commit f06c506

File tree

13 files changed

+407
-528
lines changed

13 files changed

+407
-528
lines changed

.github/workflows/ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ jobs:
1515
strategy:
1616
fail-fast: false
1717
matrix:
18-
node-version: [^10.18.0, ^12.14.0, ^13.5.0, ^14.0.0]
18+
node-version: [^10.18.0, ^12.14.0, ^14.0.0]
1919
os: [ubuntu-latest, windows-latest]
2020
steps:
2121
- uses: actions/checkout@v1

index.d.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@ export interface DeepEqualAssertion {
130130

131131
export interface LikeAssertion {
132132
/** Assert that `value` is like `selector`. */
133-
(value: any, selector: object, message?: string): void;
133+
(value: any, selector: Record<string, unknown>, message?: string): void;
134134

135135
/** Skip this assertion. */
136136
skip(value: any, selector: any, message?: string): void;
@@ -433,7 +433,7 @@ export interface CbExecutionContext<Context = unknown> extends ExecutionContext<
433433
end(error?: any): void;
434434
}
435435

436-
export type ImplementationResult = PromiseLike<void> | Subscribable | void;
436+
export type ImplementationResult = PromiseLike<void> | Subscribable | void; // eslint-disable-line @typescript-eslint/no-invalid-void-type
437437
export type Implementation<Context = unknown> = (t: ExecutionContext<Context>) => ImplementationResult;
438438
export type CbImplementation<Context = unknown> = (t: CbExecutionContext<Context>) => ImplementationResult;
439439

lib/code-excerpt.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ module.exports = (source, options = {}) => {
1919
let contents;
2020
try {
2121
contents = fs.readFileSync(file, 'utf8');
22-
} catch (_) {
22+
} catch {
2323
return null;
2424
}
2525

lib/reporters/tap.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ function dumpError(error) {
3030
}
3131

3232
if (error.values.length > 0) {
33-
object.values = error.values.reduce((acc, value) => {
33+
object.values = error.values.reduce((acc, value) => { // eslint-disable-line unicorn/no-reduce
3434
acc[value.label] = stripAnsi(value.formatted);
3535
return acc;
3636
}, {});

lib/runner.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -241,7 +241,7 @@ class Runner extends Emittery {
241241
};
242242

243243
let waitForSerial = Promise.resolve();
244-
await runnables.reduce((previous, runnable) => {
244+
await runnables.reduce((previous, runnable) => { // eslint-disable-line unicorn/no-reduce
245245
if (runnable.metadata.serial || this.serial) {
246246
waitForSerial = previous.then(() => {
247247
// Serial runnables run as long as there was no previous failure, unless
@@ -451,7 +451,7 @@ class Runner extends Emittery {
451451
return false;
452452
}
453453

454-
return serialTests.reduce(async (previous, task) => {
454+
return serialTests.reduce(async (previous, task) => { // eslint-disable-line unicorn/no-reduce
455455
const previousOk = await previous;
456456
// Don't start tests after an interrupt.
457457
if (this.interrupted) {

lib/worker/subprocess.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -196,7 +196,7 @@ ipc.options.then(async options => {
196196
if (Reflect.has(mod, Symbol.for('esm:package'))) {
197197
requireFn = mod(module);
198198
}
199-
} catch (_) {}
199+
} catch {}
200200
}
201201

202202
// Install dependency tracker after the require configuration has been evaluated

package-lock.json

Lines changed: 382 additions & 504 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
"homepage": "https://avajs.dev",
88
"bin": "cli.js",
99
"engines": {
10-
"node": ">=10.18.0 <11 || >=12.14.0 <12.16.0 || >=12.16.0 <13 || >=13.5.0 <14 || >=14.0.0"
10+
"node": ">=10.18.0 <11 || >=12.14.0 <12.17.0 || >=12.17.0 <13 || >=14.0.0"
1111
},
1212
"scripts": {
1313
"test": "xo && tsd && c8 --report=none tap && c8 --report=none --no-clean test-ava && c8 report"
@@ -56,13 +56,13 @@
5656
],
5757
"dependencies": {
5858
"@concordance/react": "^2.0.0",
59-
"acorn": "^7.2.0",
59+
"acorn": "^7.3.1",
6060
"acorn-walk": "^7.1.1",
6161
"ansi-styles": "^4.2.1",
6262
"arrgv": "^1.0.2",
6363
"arrify": "^2.0.1",
6464
"callsites": "^3.1.0",
65-
"chalk": "^4.0.0",
65+
"chalk": "^4.1.0",
6666
"chokidar": "^3.4.0",
6767
"chunkd": "^2.0.1",
6868
"ci-info": "^2.0.0",
@@ -80,8 +80,8 @@
8080
"emittery": "^0.7.0",
8181
"equal-length": "^1.0.0",
8282
"figures": "^3.2.0",
83-
"globby": "^11.0.0",
84-
"ignore-by-default": "^1.0.0",
83+
"globby": "^11.0.1",
84+
"ignore-by-default": "^2.0.0",
8585
"import-local": "^3.0.2",
8686
"indent-string": "^4.0.0",
8787
"is-error": "^2.2.2",
@@ -114,15 +114,15 @@
114114
"devDependencies": {
115115
"@ava/babel": "^1.0.1",
116116
"@ava/test": "github:avajs/test",
117-
"@babel/plugin-proposal-do-expressions": "^7.8.3",
117+
"@babel/plugin-proposal-do-expressions": "^7.10.1",
118118
"@sinonjs/fake-timers": "^6.0.1",
119119
"ansi-escapes": "^4.3.1",
120-
"c8": "^7.1.2",
120+
"c8": "^7.2.0",
121121
"delay": "^4.3.0",
122122
"esm": "^3.2.25",
123123
"execa": "^4.0.2",
124124
"get-stream": "^5.1.0",
125-
"p-event": "^4.1.0",
125+
"p-event": "^4.2.0",
126126
"proxyquire": "^2.1.3",
127127
"react": "^16.13.1",
128128
"react-test-renderer": "^16.13.1",
@@ -134,8 +134,8 @@
134134
"tempy": "^0.5.0",
135135
"touch": "^3.1.0",
136136
"tsd": "^0.11.0",
137-
"typescript": "^3.9.3",
138-
"xo": "^0.30.0",
137+
"typescript": "^3.9.5",
138+
"xo": "^0.32.0",
139139
"zen-observable": "^0.8.15"
140140
}
141141
}

test-tap/fixture/improper-t-throws/caught.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ const test = require('../../..');
33
test('test', t => {
44
try {
55
t.throws(throwSync());
6-
} catch (_) {}
6+
} catch {}
77
});
88

99
function throwSync() {

test-tap/helper/report.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ exports.assert = (t, logFile, buffer) => {
3737
let existing = null;
3838
try {
3939
existing = fs.readFileSync(logFile);
40-
} catch (_) {}
40+
} catch {}
4141

4242
if (existing === null || process.env.UPDATE_REPORTER_LOG) {
4343
fs.writeFileSync(logFile, buffer);

0 commit comments

Comments
 (0)