escover 4.3.2 → 5.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,16 @@
1
+ 2025.12.04, v5.0.0
2
+
3
+ feature:
4
+ - a493ebb escover: drop support of node < 20
5
+ - 48b9147 escover: yargs-parser v22.0.0
6
+ - 10b8f2c escover: supertape v11.3.1
7
+ - 61f5263 escover: putout v41.0.0
8
+ - ddd97e3 escover: madrun v11.0.3
9
+ - 9d14d43 escover: find-up v8.0.0
10
+ - 13baf76 escover: eslint-plugin-putout v29.0.2
11
+ - a5928a5 escover: @putout/test v14.1.0
12
+ - 6de55b8 escover: @putout/eslint-flat v3.0.3
13
+
1
14
  2025.01.29, v4.3.2
2
15
 
3
16
  feature:
@@ -1,6 +1,6 @@
1
1
  import {types} from 'putout';
2
2
 
3
- const {SequenceExpression} = types;
3
+ const {sequenceExpression} = types;
4
4
 
5
5
  export const addMarkToArgument = (path, lineNode) => {
6
6
  const {node} = path;
@@ -10,7 +10,7 @@ export const addMarkToArgument = (path, lineNode) => {
10
10
  return;
11
11
  }
12
12
 
13
- node.argument = SequenceExpression([
13
+ node.argument = sequenceExpression([
14
14
  lineNode,
15
15
  node.argument,
16
16
  ]);
@@ -1,11 +1,11 @@
1
1
  import {types} from 'putout';
2
2
 
3
- const {SequenceExpression} = types;
3
+ const {sequenceExpression} = types;
4
4
 
5
5
  export const addMarkToArrowFunction = (path, lineNode) => {
6
6
  const {node} = path;
7
7
 
8
- node.body = SequenceExpression([
8
+ node.body = sequenceExpression([
9
9
  lineNode,
10
10
  node.body,
11
11
  ]);
@@ -9,9 +9,9 @@ import {addMarkToArrowFunction} from './arrow.js';
9
9
  const noop = () => {};
10
10
 
11
11
  const {
12
- NumericLiteral,
13
- SequenceExpression,
14
- BlockStatement,
12
+ numericLiteral,
13
+ sequenceExpression,
14
+ blockStatement,
15
15
  } = types;
16
16
 
17
17
  const {
@@ -31,8 +31,8 @@ function getLineNode(c4, {line, column}) {
31
31
  c4.init(line, column);
32
32
 
33
33
  return buildLineNode({
34
- __l: NumericLiteral(line),
35
- __c: NumericLiteral(column),
34
+ __l: numericLiteral(line),
35
+ __c: numericLiteral(column),
36
36
  });
37
37
  }
38
38
 
@@ -77,19 +77,19 @@ export const fix = (path, {options}) => {
77
77
  if (path.isCallExpression() || path.isNewExpression()) {
78
78
  const {node} = path;
79
79
 
80
- replaceWith(path, SequenceExpression([lineNode, node]));
80
+ replaceWith(path, sequenceExpression([lineNode, node]));
81
81
 
82
82
  return;
83
83
  }
84
84
 
85
85
  if (path.parentPath.isLogicalExpression())
86
- return replaceWith(path, SequenceExpression([
86
+ return replaceWith(path, sequenceExpression([
87
87
  lineNode,
88
88
  path.node,
89
89
  ]));
90
90
 
91
91
  if (path.isAssignmentPattern() || path.isAssignmentExpression()) {
92
- replaceWith(path.get('right'), SequenceExpression([
92
+ replaceWith(path.get('right'), sequenceExpression([
93
93
  lineNode,
94
94
  node.right,
95
95
  ]));
@@ -111,12 +111,12 @@ export const fix = (path, {options}) => {
111
111
  if (path.isExpression()) {
112
112
  const {node} = path;
113
113
 
114
- replaceWith(path, SequenceExpression([lineNode, node]));
114
+ replaceWith(path, sequenceExpression([lineNode, node]));
115
115
 
116
116
  return;
117
117
  }
118
118
 
119
- replaceWith(path, BlockStatement([node]));
119
+ replaceWith(path, blockStatement([node]));
120
120
  };
121
121
 
122
122
  const EXCLUDE = [
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "escover",
3
- "version": "4.3.2",
3
+ "version": "5.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",
@@ -44,29 +44,29 @@
44
44
  "@putout/plugin-convert-optional-to-logical": "^4.0.0",
45
45
  "chalk": "^5.0.0",
46
46
  "find-cache-dir": "^5.0.0",
47
- "find-up": "^7.0.0",
47
+ "find-up": "^8.0.0",
48
48
  "mock-import": "^4.0.0",
49
49
  "montag": "^1.2.1",
50
50
  "once": "^1.4.0",
51
51
  "picomatch": "^4.0.2",
52
- "putout": "^38.0.0",
52
+ "putout": "^41.0.0",
53
53
  "strip-ansi": "^7.0.1",
54
54
  "table": "^6.8.0",
55
55
  "try-catch": "^3.0.0",
56
- "yargs-parser": "^21.0.0"
56
+ "yargs-parser": "^22.0.0"
57
57
  },
58
58
  "engines": {
59
- "node": ">=18.19"
59
+ "node": ">=20"
60
60
  },
61
61
  "license": "MIT",
62
62
  "devDependencies": {
63
- "@putout/eslint-flat": "^2.0.0",
64
- "@putout/test": "^11.0.0",
63
+ "@putout/eslint-flat": "^3.0.3",
64
+ "@putout/test": "^14.1.0",
65
65
  "c8": "^10.1.2",
66
66
  "escover": "file:.",
67
67
  "eslint": "^9.4.0",
68
- "eslint-plugin-putout": "^24.0.0",
69
- "madrun": "^10.0.0",
70
- "supertape": "^10.0.0"
68
+ "eslint-plugin-putout": "^29.0.2",
69
+ "madrun": "^11.0.3",
70
+ "supertape": "^11.3.1"
71
71
  }
72
72
  }