goldstein 7.3.0 → 7.3.2
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,23 @@
|
|
|
1
|
+
2026.03.04, v7.3.2
|
|
2
|
+
|
|
3
|
+
feature:
|
|
4
|
+
- d12f3e8 goldstein: @putout/printer v18.0.0
|
|
5
|
+
- 9c3b5cc goldstein: @putout/plugin-try-catch v8.0.0
|
|
6
|
+
- faa5b3a goldstein: superc8 v12.2.4
|
|
7
|
+
- ac7d0b3 @putout/plugin-goldstein: madrun v13.0.0
|
|
8
|
+
- 1725557 @putout/plugin-goldstein: eslint-plugin-putout v31.0.0
|
|
9
|
+
- f33c085 @putout/plugin-goldstein: eslint v10.0.0
|
|
10
|
+
- 1d54906 @putout/plugin-goldstein: @putout/test v15.1.1
|
|
11
|
+
- cef2db3 goldstein: @putout/plugin-declare v8.0.0
|
|
12
|
+
|
|
13
|
+
2026.02.17, v7.3.1
|
|
14
|
+
|
|
15
|
+
feature:
|
|
16
|
+
- 45d4a07 goldstein: redlint v6.0.0
|
|
17
|
+
- 341cd47 goldstein: putout v42.0.1
|
|
18
|
+
- 04f9c6e goldstein: madrun v13.0.0
|
|
19
|
+
- dc41486 goldstein: eslint-plugin-putout v31.0.0
|
|
20
|
+
|
|
1
21
|
2026.02.15, v7.3.0
|
|
2
22
|
|
|
3
23
|
fix:
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "goldstein",
|
|
3
|
-
"version": "7.3.
|
|
3
|
+
"version": "7.3.2",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"author": "coderaiser <mnemonic.enemy@gmail.com> (https://github.com/coderaiser)",
|
|
6
6
|
"description": "JavaScript with no limits",
|
|
@@ -30,16 +30,16 @@
|
|
|
30
30
|
"wisdom": "madrun wisdom"
|
|
31
31
|
},
|
|
32
32
|
"dependencies": {
|
|
33
|
-
"@putout/plugin-declare": "^
|
|
33
|
+
"@putout/plugin-declare": "^8.0.0",
|
|
34
34
|
"@putout/plugin-logical-expressions": "^8.0.0",
|
|
35
|
-
"@putout/plugin-try-catch": "^
|
|
36
|
-
"@putout/printer": "^
|
|
35
|
+
"@putout/plugin-try-catch": "^8.0.0",
|
|
36
|
+
"@putout/printer": "^18.0.0",
|
|
37
37
|
"acorn": "^8.7.1",
|
|
38
38
|
"acorn-loose": "^8.5.2",
|
|
39
39
|
"acorn-typescript": "^1.4.13",
|
|
40
40
|
"estree-to-babel": "^12.0.0",
|
|
41
41
|
"estree-util-attach-comments": "^3.0.0",
|
|
42
|
-
"putout": "^
|
|
42
|
+
"putout": "^42.0.1",
|
|
43
43
|
"try-catch": "^4.0.2"
|
|
44
44
|
},
|
|
45
45
|
"license": "MIT",
|
|
@@ -47,18 +47,18 @@
|
|
|
47
47
|
"@putout/eslint-flat": "^4.0.0",
|
|
48
48
|
"@putout/plugin-goldstein": "./rules/goldstein",
|
|
49
49
|
"@putout/test": "^15.0.0",
|
|
50
|
-
"c8": "^10.0.0",
|
|
51
50
|
"check-dts": "^0.9.0",
|
|
52
51
|
"esbuild": "^0.27.0",
|
|
53
52
|
"esbuild-node-builtins": "^0.1.0",
|
|
54
53
|
"eslint": "^10.0.0",
|
|
55
|
-
"eslint-plugin-putout": "^
|
|
56
|
-
"madrun": "^
|
|
54
|
+
"eslint-plugin-putout": "^31.0.0",
|
|
55
|
+
"madrun": "^13.0.0",
|
|
57
56
|
"mock-require": "^3.0.3",
|
|
58
57
|
"montag": "^1.2.1",
|
|
59
58
|
"nodemon": "^3.0.1",
|
|
60
|
-
"redlint": "^
|
|
59
|
+
"redlint": "^6.0.0",
|
|
61
60
|
"runsome": "^1.0.0",
|
|
61
|
+
"superc8": "^12.2.4",
|
|
62
62
|
"supertape": "^12.0.0",
|
|
63
63
|
"typescript": "^5.0.3"
|
|
64
64
|
},
|
|
@@ -5,7 +5,7 @@ const {
|
|
|
5
5
|
variableDeclarator,
|
|
6
6
|
} = types;
|
|
7
7
|
|
|
8
|
-
export const report = () => `Use '
|
|
8
|
+
export const report = () => `Use 'if let'`;
|
|
9
9
|
export const replace = () => ({
|
|
10
10
|
'{let __a = __b; if (__c) __d}': ({__a, __b}, path) => {
|
|
11
11
|
const ifPath = path.get('body.1');
|
|
@@ -10,7 +10,7 @@ import {fixEmpty, parse} from '../goldstein/index.js';
|
|
|
10
10
|
export const convert = (source) => {
|
|
11
11
|
const ast = estreeToBabel(parse(source));
|
|
12
12
|
|
|
13
|
-
transform(ast,
|
|
13
|
+
transform(ast, {
|
|
14
14
|
plugins: [
|
|
15
15
|
['add-array', addArray],
|
|
16
16
|
['apply-if-let', applyIfLet],
|