goldstein 5.26.0 → 5.27.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,18 @@
|
|
|
1
|
+
2025.03.14, v5.27.0
|
|
2
|
+
|
|
3
|
+
fix:
|
|
4
|
+
- ba84d6a goldstein: empty loc
|
|
5
|
+
|
|
6
|
+
feature:
|
|
7
|
+
- f781982 goldstein: @putout/test v12.1.0
|
|
8
|
+
- 3c85787 goldstein: eslint-plugin-putout v25.1.2
|
|
9
|
+
|
|
10
|
+
2025.02.17, v5.26.1
|
|
11
|
+
|
|
12
|
+
feature:
|
|
13
|
+
- 53401b5 goldstein: @putout/plugin-declare v5.0.0
|
|
14
|
+
- 80d3688 goldstein: @putout/printer v13.0.0
|
|
15
|
+
|
|
1
16
|
2025.02.10, v5.26.0
|
|
2
17
|
|
|
3
18
|
fix:
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "goldstein",
|
|
3
|
-
"version": "5.
|
|
3
|
+
"version": "5.27.0",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"author": "coderaiser <mnemonic.enemy@gmail.com> (https://github.com/coderaiser)",
|
|
6
6
|
"description": "JavaScript with no limits",
|
|
@@ -27,10 +27,10 @@
|
|
|
27
27
|
"wisdom": "madrun wisdom"
|
|
28
28
|
},
|
|
29
29
|
"dependencies": {
|
|
30
|
-
"@putout/plugin-declare": "^
|
|
30
|
+
"@putout/plugin-declare": "^5.0.0",
|
|
31
31
|
"@putout/plugin-logical-expressions": "^7.0.0",
|
|
32
32
|
"@putout/plugin-try-catch": "^4.0.0",
|
|
33
|
-
"@putout/printer": "^
|
|
33
|
+
"@putout/printer": "^13.0.0",
|
|
34
34
|
"acorn": "^8.7.1",
|
|
35
35
|
"acorn-typescript": "^1.4.13",
|
|
36
36
|
"estree-to-babel": "^10.1.0",
|
|
@@ -43,13 +43,13 @@
|
|
|
43
43
|
"@cloudcmd/stub": "^4.0.1",
|
|
44
44
|
"@putout/eslint-flat": "^2.0.0",
|
|
45
45
|
"@putout/plugin-goldstein": "./rules/goldstein",
|
|
46
|
-
"@putout/test": "^
|
|
46
|
+
"@putout/test": "^12.1.0",
|
|
47
47
|
"c8": "^10.0.0",
|
|
48
48
|
"check-dts": "^0.8.0",
|
|
49
49
|
"esbuild": "^0.25.0",
|
|
50
50
|
"esbuild-node-builtins": "^0.1.0",
|
|
51
51
|
"eslint": "^9.2.0",
|
|
52
|
-
"eslint-plugin-putout": "^
|
|
52
|
+
"eslint-plugin-putout": "^25.1.2",
|
|
53
53
|
"madrun": "^10.0.0",
|
|
54
54
|
"mock-require": "^3.0.3",
|
|
55
55
|
"montag": "^1.2.1",
|
|
@@ -17,7 +17,7 @@ export default function keywordMissingInitializer(Parser) {
|
|
|
17
17
|
decl.init = this.parseSafeAssignment(); /* c8 ignore start */
|
|
18
18
|
} else if (this.eat(tt.eq)) {
|
|
19
19
|
decl.init = this.parseMaybeAssign(isFor);
|
|
20
|
-
} else if (!allowMissingInitializer && kind === 'const' &&
|
|
20
|
+
} else if (!allowMissingInitializer && kind === 'const' && this.type !== tt._in && !(this.options.ecmaVersion >= 6 && this.isContextual('of'))) {
|
|
21
21
|
decl.init = MissingInitializer.missInitializer.call(this, isFor);
|
|
22
22
|
} else if (!allowMissingInitializer && decl.id.type !== 'Identifier' && !(isFor && (this.type === tt._in || this.isContextual('of')))) {
|
|
23
23
|
this.raise(this.lastTokEnd, 'Complex binding patterns require an initialization value');
|
|
@@ -23,7 +23,7 @@ export default function operatorSafeAssignment(Parser) {
|
|
|
23
23
|
decl.init = this.parseSafeAssignment(); /* c8 ignore start */
|
|
24
24
|
else if (this.eat(tt.eq))
|
|
25
25
|
decl.init = this.parseMaybeAssign(isFor);
|
|
26
|
-
else if (!allowMissingInitializer && kind === 'const' &&
|
|
26
|
+
else if (!allowMissingInitializer && kind === 'const' && this.type !== tt._in && !(this.options.ecmaVersion >= 6 && this.isContextual('of')))
|
|
27
27
|
decl.init = MissingInitializer.missInitializer.call(this, isFor);
|
|
28
28
|
else if (!allowMissingInitializer && decl.id.type !== 'Identifier' && !(isFor && (this.type === tt._in || this.isContextual('of'))))
|
|
29
29
|
this.raise(this.lastTokEnd, 'Complex binding patterns require an initialization value');
|