goldstein 5.14.0 → 5.15.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,13 @@
1
+ 2024.06.07, v5.15.1
2
+
3
+ feature:
4
+ - 40d2966 goldstein: @putout/printer v9.0.1
5
+
6
+ 2024.06.03, v5.15.0
7
+
8
+ feature:
9
+ - 5d11929 goldstein: keyword-useless-comma: class methods
10
+
1
11
  2024.06.03, v5.14.0
2
12
 
3
13
  feature:
package/README.md CHANGED
@@ -464,6 +464,11 @@ const a = {
464
464
  - b;
465
465
  + b,
466
466
  };
467
+
468
+ const a = {
469
+ - b(){},
470
+ + b(){}
471
+ };
467
472
  ```
468
473
 
469
474
  ### Assign from
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "goldstein",
3
- "version": "5.14.0",
3
+ "version": "5.15.1",
4
4
  "type": "module",
5
5
  "author": "coderaiser <mnemonic.enemy@gmail.com> (https://github.com/coderaiser)",
6
6
  "description": "JavaScript with no limits",
@@ -30,7 +30,7 @@
30
30
  "@putout/plugin-declare": "^4.0.0",
31
31
  "@putout/plugin-logical-expressions": "^6.0.0",
32
32
  "@putout/plugin-try-catch": "^3.0.0",
33
- "@putout/printer": "^8.0.1",
33
+ "@putout/printer": "^9.0.1",
34
34
  "acorn": "^8.7.1",
35
35
  "acorn-typescript": "^1.4.13",
36
36
  "estree-to-babel": "^9.0.0",
@@ -8,7 +8,7 @@ import {parse} from './parser.js';
8
8
  export {convert} from '../convert/index.js';
9
9
  export {print} from '../printer/index.js';
10
10
  export * from './parser.js';
11
- import * as renameUnnamedIdentifier from '../keyword-useless-comma/rename-unnamed-identifier/index.js';
11
+ import * as removeUnnamedObjectProperty from '../keyword-useless-comma/remove-unnamed-object-property/index.js';
12
12
 
13
13
  export const compile = (source, options = {}) => {
14
14
  const ast = parse(source, options);
@@ -21,7 +21,7 @@ export const compile = (source, options = {}) => {
21
21
  ['try-catch', tryCatchPlugin],
22
22
  ['declare', declarePlugin],
23
23
  ['logical-expressions', logicalExpressionsPlugin],
24
- ['remove-unnamed-identifiers', renameUnnamedIdentifier],
24
+ ['remove-unnamed-identifiers', removeUnnamedObjectProperty],
25
25
  ],
26
26
  });
27
27
 
@@ -1,7 +1,7 @@
1
1
  export const report = () => {};
2
2
  export const fix = (path) => path.remove();
3
3
  export const traverse = ({push}) => ({
4
- ObjectProperty(path) {
4
+ 'ObjectProperty|ClassProperty'(path) {
5
5
  const keyPath = path.get('key');
6
6
 
7
7
  if (keyPath.isIdentifier() && !keyPath.node.name)