escover 5.0.0 → 6.0.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,21 @@
1
+ 2026.02.16, v6.0.0
2
+
3
+ feature:
4
+ - c6cc685 escover: try-catch v4.0.9
5
+ - f28ded5 escover: supertape v12.5.0
6
+ - e32d7f7 escover: putout v42.0.1
7
+ - 3be5766 escover: madrun v13.0.0
8
+ - 1945243 escover: eslint-plugin-putout v31.0.0
9
+ - ff9144f escover: eslint v10.0.0
10
+ - 5622df5 escover: @putout/test v15.1.1
11
+ - a4ac137 escover: @putout/eslint-flat v4.0.0
12
+ - 2a8c42a escover: drop support of node < 22
13
+
14
+ 2025.12.04, v5.0.1
15
+
16
+ feature:
17
+ - 837355c escover: mock-import v5.0.0
18
+
1
19
  2025.12.04, v5.0.0
2
20
 
3
21
  feature:
package/README.md CHANGED
@@ -54,7 +54,7 @@ escover npm test
54
54
  Check out the real example from [wisdom](https://github.com/coderaiser/wisdom). There is next uncovered code:
55
55
 
56
56
  ```js
57
- import jessy from 'jessy';
57
+ import {jessy} from 'jessy';
58
58
 
59
59
  export default (info) => typeof jessy('publishConfig.access', info) === 'undefined';
60
60
  ```
package/lib/c4.js CHANGED
@@ -1,8 +1,8 @@
1
1
  const noop = () => {};
2
2
 
3
- global.__fileEntries = global.__fileEntries || new Map();
3
+ globalThis.__fileEntries = globalThis.__fileEntries || new Map();
4
4
 
5
- export const {__fileEntries} = global;
5
+ export const {__fileEntries} = globalThis;
6
6
  export const createFileEntry = (url) => {
7
7
  url = url.replace(/\?.*$/, '');
8
8
  let lines = __fileEntries.get(url);
package/lib/cli/cli.js CHANGED
@@ -1,6 +1,6 @@
1
1
  import {execSync} from 'node:child_process';
2
2
  import process from 'node:process';
3
- import tryCatch from 'try-catch';
3
+ import {tryCatch} from 'try-catch';
4
4
  import yargsParser from 'yargs-parser';
5
5
  import {version} from './version.js';
6
6
  import reportLines from '../formatters/lines.js';
@@ -1,6 +1,6 @@
1
1
  import {writeFileSync, readFileSync} from 'node:fs';
2
2
  import {join} from 'node:path';
3
- import tryCatch from 'try-catch';
3
+ import {tryCatch} from 'try-catch';
4
4
  import {getFileEntries} from '../c4.js';
5
5
  import {transform} from '../transform.js';
6
6
  import {merge} from '../merge.js';
package/lib/escover.js CHANGED
@@ -5,7 +5,7 @@ import {createFileEntry} from './c4.js';
5
5
  import {readConfig, isExclude} from './config.js';
6
6
  import {writeCoverage} from './coverage-file/coverage-file.js';
7
7
 
8
- global.__createC4 = createFileEntry;
8
+ globalThis.__createC4 = createFileEntry;
9
9
 
10
10
  const CWD = process.cwd();
11
11
  const {exclude} = readConfig();
@@ -5,7 +5,7 @@ import * as mark from './plugin-mark/index.js';
5
5
  const cut = (a) => a.replace('#!/usr/bin/env node', '');
6
6
 
7
7
  export const instrument = (url, source) => {
8
- const c4 = global.__createC4(url);
8
+ const c4 = globalThis.__createC4(url);
9
9
 
10
10
  source = cut(source);
11
11
 
package/lib/register.js CHANGED
@@ -18,7 +18,7 @@ register('./escover.js', import.meta.url, {
18
18
  function initialize({port}) {
19
19
  const loader = 'escover';
20
20
 
21
- global.__createC4 = (url) => ({
21
+ globalThis.__createC4 = (url) => ({
22
22
  '🧨': (line, column) => {
23
23
  port.postMessage({
24
24
  type: 'set',
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "escover",
3
- "version": "5.0.0",
3
+ "version": "6.0.0",
4
4
  "author": "coderaiser <mnemonic.enemy@gmail.com> (https://github.com/coderaiser)",
5
5
  "description": "Coverage for EcmaScript Modules",
6
6
  "main": "lib/escover.js",
@@ -45,28 +45,28 @@
45
45
  "chalk": "^5.0.0",
46
46
  "find-cache-dir": "^5.0.0",
47
47
  "find-up": "^8.0.0",
48
- "mock-import": "^4.0.0",
48
+ "mock-import": "^5.0.0",
49
49
  "montag": "^1.2.1",
50
50
  "once": "^1.4.0",
51
51
  "picomatch": "^4.0.2",
52
- "putout": "^41.0.0",
52
+ "putout": "^42.0.1",
53
53
  "strip-ansi": "^7.0.1",
54
54
  "table": "^6.8.0",
55
- "try-catch": "^3.0.0",
55
+ "try-catch": "^4.0.9",
56
56
  "yargs-parser": "^22.0.0"
57
57
  },
58
58
  "engines": {
59
- "node": ">=20"
59
+ "node": ">=22"
60
60
  },
61
61
  "license": "MIT",
62
62
  "devDependencies": {
63
- "@putout/eslint-flat": "^3.0.3",
64
- "@putout/test": "^14.1.0",
63
+ "@putout/eslint-flat": "^4.0.0",
64
+ "@putout/test": "^15.1.1",
65
65
  "c8": "^10.1.2",
66
66
  "escover": "file:.",
67
- "eslint": "^9.4.0",
68
- "eslint-plugin-putout": "^29.0.2",
69
- "madrun": "^11.0.3",
70
- "supertape": "^11.3.1"
67
+ "eslint": "^10.0.0",
68
+ "eslint-plugin-putout": "^31.0.0",
69
+ "madrun": "^13.0.0",
70
+ "supertape": "^12.5.0"
71
71
  }
72
72
  }