Skip to content

Commit

Permalink
chore: downgrade xo to v0.52 for ci tests on node v12
Browse files Browse the repository at this point in the history
  • Loading branch information
titanism committed Nov 21, 2023
1 parent c835871 commit c9dd52f
Show file tree
Hide file tree
Showing 28 changed files with 46 additions and 46 deletions.
2 changes: 1 addition & 1 deletion package.json
Expand Up @@ -46,7 +46,7 @@
"nyc": "^15.1.0",
"remark-cli": "11",
"remark-preset-github": "^4.0.4",
"xo": "0.53.1"
"xo": "0.52"
},
"engines": {
"node": ">=12.17.0 <13.0.0-0||>=13.2.0"
Expand Down
12 changes: 6 additions & 6 deletions src/index.js
Expand Up @@ -2,12 +2,12 @@
// NOTE: we could use `node:` prefix but it is only supported in ESM v14.13.1+ and v12.20+
// and since this is a CJS module then it is only supported in v14.18+ and v16+
//
const fs = require('fs');
const EventEmitter = require('events');
const { pathToFileURL } = require('url');
const { Worker } = require('worker_threads');
const { join, resolve } = require('path');
const { debuglog } = require('util');
const fs = require('node:fs');
const EventEmitter = require('node:events');
const { pathToFileURL } = require('node:url');
const { Worker } = require('node:worker_threads');
const { join, resolve } = require('node:path');
const { debuglog } = require('node:util');

const combineErrors = require('combine-errors');
const isSANB = require('is-string-and-not-blank');
Expand Down
2 changes: 1 addition & 1 deletion src/job-builder.js
@@ -1,4 +1,4 @@
const { join } = require('path');
const { join } = require('node:path');
const isSANB = require('is-string-and-not-blank');
const isValidPath = require('is-valid-path');
const later = require('@breejs/later');
Expand Down
4 changes: 2 additions & 2 deletions src/job-validator.js
@@ -1,5 +1,5 @@
const fs = require('fs');
const { join } = require('path');
const fs = require('node:fs');
const { join } = require('node:path');
const combineErrors = require('combine-errors');
const cron = require('cron-validate');
const isSANB = require('is-string-and-not-blank');
Expand Down
2 changes: 1 addition & 1 deletion test/add.js
@@ -1,4 +1,4 @@
const path = require('path');
const path = require('node:path');
const FakeTimers = require('@sinonjs/fake-timers');

const test = require('ava');
Expand Down
2 changes: 1 addition & 1 deletion test/get-worker-metadata.js
@@ -1,4 +1,4 @@
const path = require('path');
const path = require('node:path');

const test = require('ava');

Expand Down
4 changes: 2 additions & 2 deletions test/index.js
@@ -1,5 +1,5 @@
const path = require('path');
const { once } = require('events');
const path = require('node:path');
const { once } = require('node:events');

const test = require('ava');

Expand Down
4 changes: 2 additions & 2 deletions test/issues/issue-152.js
@@ -1,5 +1,5 @@
const path = require('path');
const { once } = require('events');
const path = require('node:path');
const { once } = require('node:events');

const test = require('ava');

Expand Down
4 changes: 2 additions & 2 deletions test/issues/issue-171.js
@@ -1,5 +1,5 @@
const path = require('path');
const { SHARE_ENV } = require('worker_threads');
const path = require('node:path');
const { SHARE_ENV } = require('node:worker_threads');

const test = require('ava');

Expand Down
4 changes: 2 additions & 2 deletions test/issues/issue-180/test.js
@@ -1,5 +1,5 @@
const path = require('path');
const { once } = require('events');
const path = require('node:path');
const { once } = require('node:events');

const test = require('ava');

Expand Down
2 changes: 1 addition & 1 deletion test/job-builder.js
@@ -1,4 +1,4 @@
const path = require('path');
const path = require('node:path');
const test = require('ava');
const later = require('@breejs/later');

Expand Down
2 changes: 1 addition & 1 deletion test/job-validator.js
@@ -1,4 +1,4 @@
const path = require('path');
const path = require('node:path');
const test = require('ava');
const later = require('@breejs/later');

Expand Down
2 changes: 1 addition & 1 deletion test/jobs/done.js
@@ -1,4 +1,4 @@
const { parentPort } = require('worker_threads');
const { parentPort } = require('node:worker_threads');
const delay = require('delay');

(async () => {
Expand Down
2 changes: 1 addition & 1 deletion test/jobs/infinite.js
@@ -1,3 +1,3 @@
const process = require('process');
const process = require('node:process');

setInterval(() => process.exit(0), 100);
2 changes: 1 addition & 1 deletion test/jobs/long.js
@@ -1,4 +1,4 @@
const process = require('process');
const process = require('node:process');

setTimeout(() => {
process.exit(2);
Expand Down
4 changes: 2 additions & 2 deletions test/jobs/loop.js
@@ -1,5 +1,5 @@
const process = require('process');
const { parentPort } = require('worker_threads');
const process = require('node:process');
const { parentPort } = require('node:worker_threads');

setInterval(() => {}, 1000);

Expand Down
4 changes: 2 additions & 2 deletions test/jobs/message-process-exit.js
@@ -1,5 +1,5 @@
const process = require('process');
const { parentPort } = require('worker_threads');
const process = require('node:process');
const { parentPort } = require('node:worker_threads');

setInterval(() => {}, 10);

Expand Down
4 changes: 2 additions & 2 deletions test/jobs/message-ungraceful.js
@@ -1,5 +1,5 @@
const process = require('process');
const { parentPort } = require('worker_threads');
const process = require('node:process');
const { parentPort } = require('node:worker_threads');

setInterval(() => {}, 10);

Expand Down
4 changes: 2 additions & 2 deletions test/jobs/message.js
@@ -1,5 +1,5 @@
const process = require('process');
const { parentPort } = require('worker_threads');
const process = require('node:process');
const { parentPort } = require('node:worker_threads');

const delay = require('delay');

Expand Down
2 changes: 1 addition & 1 deletion test/jobs/short.js
@@ -1,4 +1,4 @@
const process = require('process');
const process = require('node:process');

setInterval(() => {
process.exit(2);
Expand Down
2 changes: 1 addition & 1 deletion test/jobs/worker-data.js
@@ -1,3 +1,3 @@
const { parentPort, workerData } = require('worker_threads');
const { parentPort, workerData } = require('node:worker_threads');

if (parentPort) parentPort.postMessage(workerData);
4 changes: 2 additions & 2 deletions test/jobs/worker-options.js
@@ -1,4 +1,4 @@
const process = require('process');
const { parentPort } = require('worker_threads');
const process = require('node:process');
const { parentPort } = require('node:worker_threads');

if (parentPort) parentPort.postMessage(process.argv[2]);
2 changes: 1 addition & 1 deletion test/plugins/index.js
@@ -1,4 +1,4 @@
const path = require('path');
const path = require('node:path');
const test = require('ava');

const Bree = require('../../src');
Expand Down
2 changes: 1 addition & 1 deletion test/plugins/init.js
@@ -1,4 +1,4 @@
const path = require('path');
const path = require('node:path');
const test = require('ava');

const Bree = require('../../src');
Expand Down
2 changes: 1 addition & 1 deletion test/remove.js
@@ -1,4 +1,4 @@
const path = require('path');
const path = require('node:path');
const delay = require('delay');
const test = require('ava');

Expand Down
4 changes: 2 additions & 2 deletions test/run.js
@@ -1,5 +1,5 @@
const path = require('path');
const { once } = require('events');
const path = require('node:path');
const { once } = require('node:events');

const test = require('ava');

Expand Down
4 changes: 2 additions & 2 deletions test/start.js
@@ -1,5 +1,5 @@
const path = require('path');
const { once } = require('events');
const path = require('node:path');
const { once } = require('node:events');
const FakeTimers = require('@sinonjs/fake-timers');

const test = require('ava');
Expand Down
4 changes: 2 additions & 2 deletions test/stop.js
@@ -1,5 +1,5 @@
const path = require('path');
const { once } = require('events');
const path = require('node:path');
const { once } = require('node:events');

const test = require('ava');

Expand Down

0 comments on commit c9dd52f

Please sign in to comment.