goldstein 6.0.3 → 6.1.1

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
+ 2025.12.04, v6.1.1
2
+
3
+ feature:
4
+ - 06d9983 goldstein: putout v41.0.0
5
+ - 3019fea goldstein: madrun v11.0.4
6
+ - 6399a1d goldstein: eslint-plugin-putout v29.0.2
7
+ - 5f92d0f goldstein: @putout/printer v16.0.0
8
+ - 8b1f138 goldstein: esbuild v0.27.0
9
+ - 9dbd2de goldstein: @putout/plugin-declare v6.0.0
10
+ - 572f326 goldstein: eslint-plugin-putout v28.0.5
11
+ - fb48298 goldstein: @putout/test v14.0.0
12
+ - d25e6a2 goldstein: @putout/plugin-logical-expressions v8.0.0
13
+
14
+ 2025.06.01, v6.1.0
15
+
16
+ feature:
17
+ - a397e22 goldstein: lowercased
18
+
1
19
  2025.06.01, v6.0.3
2
20
 
3
21
  feature:
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "goldstein",
3
- "version": "6.0.3",
3
+ "version": "6.1.1",
4
4
  "type": "module",
5
5
  "author": "coderaiser <mnemonic.enemy@gmail.com> (https://github.com/coderaiser)",
6
6
  "description": "JavaScript with no limits",
@@ -27,15 +27,15 @@
27
27
  "wisdom": "madrun wisdom"
28
28
  },
29
29
  "dependencies": {
30
- "@putout/plugin-declare": "^5.0.0",
31
- "@putout/plugin-logical-expressions": "^7.0.0",
30
+ "@putout/plugin-declare": "^6.0.0",
31
+ "@putout/plugin-logical-expressions": "^8.0.0",
32
32
  "@putout/plugin-try-catch": "^6.0.0",
33
- "@putout/printer": "^15.0.0",
33
+ "@putout/printer": "^16.0.0",
34
34
  "acorn": "^8.7.1",
35
35
  "acorn-typescript": "^1.4.13",
36
36
  "estree-to-babel": "^11.0.2",
37
37
  "estree-util-attach-comments": "^3.0.0",
38
- "putout": "^40.0.1",
38
+ "putout": "^41.0.0",
39
39
  "try-catch": "^3.0.1"
40
40
  },
41
41
  "license": "MIT",
@@ -43,14 +43,14 @@
43
43
  "@cloudcmd/stub": "^4.0.1",
44
44
  "@putout/eslint-flat": "^3.0.0",
45
45
  "@putout/plugin-goldstein": "./rules/goldstein",
46
- "@putout/test": "^13.0.0",
46
+ "@putout/test": "^14.0.0",
47
47
  "c8": "^10.0.0",
48
48
  "check-dts": "^0.9.0",
49
- "esbuild": "^0.25.0",
49
+ "esbuild": "^0.27.0",
50
50
  "esbuild-node-builtins": "^0.1.0",
51
51
  "eslint": "^9.2.0",
52
- "eslint-plugin-putout": "^27.0.0",
53
- "madrun": "^11.0.0",
52
+ "eslint-plugin-putout": "^29.0.2",
53
+ "madrun": "^11.0.4",
54
54
  "mock-require": "^3.0.3",
55
55
  "montag": "^1.2.1",
56
56
  "nodemon": "^3.0.1",
@@ -1,8 +1,8 @@
1
1
  import {types} from 'putout';
2
2
 
3
3
  const {
4
- VariableDeclaration,
5
- VariableDeclarator,
4
+ variableDeclaration,
5
+ variableDeclarator,
6
6
  } = types;
7
7
 
8
8
  export const report = () => `Use 'add-array'`;
@@ -10,8 +10,8 @@ export const replace = () => ({
10
10
  '{let __a = __b; if (__c) __d}': ({__a, __b}, path) => {
11
11
  const ifPath = path.get('body.1');
12
12
 
13
- ifPath.node.test = VariableDeclaration('let', [
14
- VariableDeclarator(__a, __b),
13
+ ifPath.node.test = variableDeclaration('let', [
14
+ variableDeclarator(__a, __b),
15
15
  ]);
16
16
 
17
17
  return ifPath;
@@ -1,7 +1,7 @@
1
1
  import {types} from 'putout';
2
2
  import {tokTypes as tt} from '../operator/index.js';
3
3
 
4
- const {Identifier} = types;
4
+ const {identifier} = types;
5
5
 
6
6
  export default function keywordCurry(Parser) {
7
7
  return class extends Parser {
@@ -21,7 +21,7 @@ export default function keywordCurry(Parser) {
21
21
  if (!isParenL)
22
22
  this.raise(this.start, `After '~' should always go '(' when you use curry`);
23
23
 
24
- node.callee = Identifier('currify');
24
+ node.callee = identifier('currify');
25
25
  node.arguments = [base, this.parseExpression()];
26
26
 
27
27
  this.expect(tt.parenR);
@@ -2,8 +2,8 @@ import {types} from 'putout';
2
2
  import {tokTypes as tt} from '../operator/index.js';
3
3
 
4
4
  const {
5
- VariableDeclaration,
6
- VariableDeclarator,
5
+ variableDeclarator,
6
+ variableDeclaration,
7
7
  } = types;
8
8
 
9
9
  export default function keywordExportNoConst(Parser) {
@@ -42,8 +42,8 @@ export default function keywordExportNoConst(Parser) {
42
42
  this.checkVariableExport(exports, node.declaration.declarations);
43
43
 
44
44
  if (node.declaration.type === 'ExpressionStatement')
45
- node.declaration = VariableDeclaration('const', [
46
- VariableDeclarator(node.declaration.expression.left, node.declaration.expression.right),
45
+ node.declaration = variableDeclaration('const', [
46
+ variableDeclarator(node.declaration.expression.left, node.declaration.expression.right),
47
47
  ]);
48
48
  else if (node.declaration.id)
49
49
  this.checkExport(exports, node.declaration.id, node.declaration.id.start);