supertape 10.5.0 → 10.6.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/ChangeLog CHANGED
@@ -1,3 +1,11 @@
1
+ 2024.05.09, v10.6.0
2
+
3
+ feature:
4
+ - 81503f1 supertape: eslint-plugin-n: drop
5
+ - 2a378d1 supertape: pullout v5.0.1
6
+ - 68a1fa9 supertape: formatter: harness: readableObjectMode: rm
7
+ - 41af461 supertape: eslint v9.1.1
8
+
1
9
  2024.03.22, v10.5.0
2
10
 
3
11
  feature:
package/lib/cli.js CHANGED
@@ -1,16 +1,15 @@
1
1
  'use strict';
2
2
 
3
- const process = require('process');
4
- const {resolve: resolvePath} = require('path');
5
- const {once} = require('events');
6
- const {pathToFileURL} = require('url');
3
+ const process = require('node:process');
4
+ const {resolve: resolvePath} = require('node:path');
5
+ const {once} = require('node:events');
6
+ const {pathToFileURL} = require('node:url');
7
7
 
8
8
  const glob = require('glob');
9
9
  const fullstore = require('fullstore');
10
10
  const tryToCatch = require('try-to-catch');
11
11
  const keypress = require('@putout/cli-keypress');
12
12
 
13
- const {simpleImport} = require('./simple-import');
14
13
  const {parseArgs, yargsOptions} = require('./cli/parse-args');
15
14
 
16
15
  const supertape = require('..');
@@ -145,7 +144,7 @@ async function cli({argv, cwd, stdout, isStop, workerFormatter}) {
145
144
  }
146
145
 
147
146
  for (const resolved of resolvedNames) {
148
- promises.push(simpleImport(resolved));
147
+ promises.push(import(resolved));
149
148
  }
150
149
 
151
150
  filesCount(files.length);
@@ -157,7 +156,7 @@ async function cli({argv, cwd, stdout, isStop, workerFormatter}) {
157
156
 
158
157
  if (importError)
159
158
  for (const resolved of resolvedNames)
160
- await simpleImport(resolved);
159
+ await import(resolved);
161
160
 
162
161
  const [result] = await once(supertape.run(), 'end');
163
162
 
@@ -1,12 +1,11 @@
1
1
  'use strict';
2
2
 
3
- const {Transform} = require('stream');
3
+ const {Transform: _Transform} = require('node:stream');
4
4
  const {assign} = Object;
5
5
 
6
- module.exports.createHarness = (reporter) => {
6
+ module.exports.createHarness = (reporter, {Transform = _Transform} = {}) => {
7
7
  const prepared = prepare(reporter);
8
8
  const stream = new Transform({
9
- readableObjectMode: true,
10
9
  writableObjectMode: true,
11
10
 
12
11
  transform(chunk, encoding, callback) {
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
 
3
- const {EventEmitter} = require('events');
3
+ const {EventEmitter} = require('node:events');
4
4
  const {createHarness} = require('./harness');
5
5
 
6
6
  const resolveFormatter = async (name) => await import(`@supertape/formatter-${name}`);
package/lib/is-debug.js CHANGED
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
 
3
- const process = require('process');
3
+ const process = require('node:process');
4
4
  const argv = process.execArgv.join();
5
5
 
6
6
  module.exports = argv.includes('inspect') || argv.includes('debug');
package/lib/supertape.js CHANGED
@@ -1,8 +1,8 @@
1
1
  'use strict';
2
2
 
3
- const process = require('process');
4
- const {EventEmitter} = require('events');
5
- const {PassThrough} = require('stream');
3
+ const process = require('node:process');
4
+ const {EventEmitter} = require('node:events');
5
+ const {PassThrough} = require('node:stream');
6
6
 
7
7
  const stub = require('@cloudcmd/stub');
8
8
  const once = require('once');
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "supertape",
3
- "version": "10.5.0",
3
+ "version": "10.6.0",
4
4
  "author": "coderaiser <mnemonic.enemy@gmail.com> (https://github.com/coderaiser)",
5
5
  "description": "📼 Supertape simplest high speed test runner with superpowers",
6
6
  "homepage": "http://github.com/coderaiser/supertape",
@@ -75,18 +75,18 @@
75
75
  "devDependencies": {
76
76
  "@babel/core": "^8.0.0-alpha.5",
77
77
  "@iocmd/wait": "^2.1.0",
78
+ "@putout/eslint-flat": "^1.0.4",
78
79
  "c8": "^9.0.0",
79
80
  "check-dts": "^0.7.0",
80
81
  "currify": "^4.0.0",
81
- "eslint": "^8.0.0",
82
- "eslint-plugin-n": "^16.0.1",
82
+ "eslint": "^9.1.1",
83
83
  "eslint-plugin-putout": "^22.0.0",
84
84
  "find-up": "^7.0.0",
85
85
  "madrun": "^10.0.0",
86
86
  "mock-require": "^3.0.2",
87
87
  "montag": "^1.0.0",
88
88
  "nodemon": "^3.0.1",
89
- "pullout": "^4.0.0",
89
+ "pullout": "^5.0.1",
90
90
  "putout": "^35.0.0",
91
91
  "runsome": "^1.0.0",
92
92
  "try-catch": "^3.0.0",
@@ -1,3 +0,0 @@
1
- 'use strict';
2
-
3
- module.exports.simpleImport = (a) => import(a);