putout 35.21.1 β†’ 35.22.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,12 @@
1
+ 2024.05.07, v35.22.0
2
+
3
+ feature:
4
+ - 300976b97 putout: @putout/plugin-promises v15.0.0
5
+ - 84f082b24 @putout/plugin-promises: drop support of 🐊 < 35
6
+ - 6cb1598b8 putout: process-file: do not show ESLint parser errors when 🐊Putout can parse
7
+ - 2b8b8be6c @putout/engine-parser: add ability to parse await without async
8
+ - ca781d676 @putout/plugin-promises: add-missing-async: add
9
+
1
10
  2024.05.07, v35.21.1
2
11
 
3
12
  feature:
@@ -9,6 +9,7 @@ const parseMatch = require('../parse-options/parse-match');
9
9
  const {lintSyntax} = require('./syntax/syntax');
10
10
 
11
11
  const parseError = require('./parse-error');
12
+ const isParserError = ([a]) => a?.rule.includes('parser');
12
13
 
13
14
  const getMatchedOptions = (name, options) => {
14
15
  if (!name.includes('{'))
@@ -60,7 +61,10 @@ module.exports = ({fix, fixCount, isFlow, logError, raw, printer}) => async ({na
60
61
  fix,
61
62
  });
62
63
 
63
- allPlaces.push(...newPlaces);
64
+ const wasParserError = isParserError(newPlaces);
65
+
66
+ if (e || !wasParserError)
67
+ allPlaces.push(...newPlaces);
64
68
 
65
69
  const places = formatPlaces(startLine, allPlaces);
66
70
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "putout",
3
- "version": "35.21.1",
3
+ "version": "35.22.0",
4
4
  "type": "commonjs",
5
5
  "author": "coderaiser <mnemonic.enemy@gmail.com> (https://github.com/coderaiser)",
6
6
  "description": "🐊 Pluggable and configurable code transformer with built-in ESLint, Babel and support of js, jsx, typescript, flow, markdown, yaml and json",
@@ -133,7 +133,7 @@
133
133
  "@putout/plugin-nodejs": "^11.0.0",
134
134
  "@putout/plugin-npmignore": "^5.0.0",
135
135
  "@putout/plugin-package-json": "^7.0.0",
136
- "@putout/plugin-promises": "^14.0.0",
136
+ "@putout/plugin-promises": "^15.0.0",
137
137
  "@putout/plugin-putout": "^19.0.0",
138
138
  "@putout/plugin-putout-config": "^5.0.0",
139
139
  "@putout/plugin-regexp": "^8.0.0",