putout 28.0.1 → 28.2.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,44 @@
1
+ 2022.12.26, v28.2.0
2
+
3
+ feature:
4
+ - package: @putout/plugin-simplify-ternary v4.0.0
5
+ - @putout/plugin-simplify-ternary: drop support of 🐊 < 28
6
+ - @putout/plugin-simplify-ternary: add support of distribute
7
+ - @putout/plugin-apply-if-condition: exclude next empty sibling (#125)
8
+ - package: @putout/recast v1.11.0
9
+ - @putout/plugin-extract-sequence-expressions: add support of await (#124)
10
+ - @putout/plugin-extract-sequence-expressions: exclude call expressions (#124)
11
+ - @putout/plugin-extract-sequence-expressions: when assignment goes after call split into two expressions (#124)
12
+ - @putout/engine-loader: nano-memoize v2
13
+ - @putout/engine-parser: nano-memoize v2
14
+ - @putout/engine-processor: rm unused nano-memoize
15
+ - package: stylelint-config-standard v29.0.0
16
+ - @putout/processor-typescript: drop support of putout < 28
17
+ - package: ts-morph v17.0.1
18
+
19
+ 2022.12.02, v28.1.0
20
+
21
+ fix:
22
+ - @putout/compare: __children -> __jsx_children
23
+
24
+ feature:
25
+ - package: @putout/cli-match v2.0.0
26
+ - @putout/cli-match: drop support of node < 16
27
+ - @putout/cli-match: change "match()" return signature: code -> {code, message}
28
+ - @putout/plugin-remove-useless-spread: add support of sparse arrays (#119)
29
+ - @putout/compare: __jsx_children: improve support
30
+ - @putout/compare: improve support of jsx expressions
31
+ - @putout/compare: improve __jsx_children support
32
+ - @putout/compare: add support of JSXElement (#116)
33
+ - @putout/engine-parser: template: add support of jsx
34
+ - @putout/engine-runner: replacer: add support of jsx (#116)
35
+ - @putout/compare: add support of JSXText (#116)
36
+ - @putout/operate: extract: add support of JSXText (#116)
37
+ - @putout/plugin-github: create-uses-fixer
38
+ - @putout/plugin-github: add set-add-and-commit (EndBug/add-and-commit#448)
39
+ - @putout/plugin-github: set-setup-node: set v3
40
+ - @putout/plugin-nodejs: set-checkout-version: add support of actions/checkout v3
41
+
1
42
  2022.10.30, v28.0.1
2
43
 
3
44
  feature:
package/lib/cli/index.js CHANGED
@@ -173,15 +173,15 @@ module.exports = async ({argv, halt, log, write, logError, readFile, writeFile})
173
173
  }
174
174
 
175
175
  if (isStr(args.match)) {
176
- const {match, matchErrors} = await simpleImport('@putout/cli-match');
177
- const code = await match({
176
+ const {match} = await simpleImport('@putout/cli-match');
177
+ const {code, message} = await match({
178
178
  pattern: args.match,
179
179
  cwd,
180
180
  readFile,
181
181
  writeFile,
182
182
  });
183
183
 
184
- return exit(code, `--match: ${matchErrors[code]}`);
184
+ return exit(code, `--match: ${message}`);
185
185
  }
186
186
 
187
187
  if (fix && (enable || disable || enableAll || disableAll))
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "putout",
3
- "version": "28.0.1",
3
+ "version": "28.2.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",
@@ -49,7 +49,7 @@
49
49
  "@babel/types": "^7.12.6",
50
50
  "@putout/cli-cache": "^2.0.1",
51
51
  "@putout/cli-keypress": "^1.0.0",
52
- "@putout/cli-match": "^1.0.0",
52
+ "@putout/cli-match": "^2.0.0",
53
53
  "@putout/cli-ruler": "^2.0.0",
54
54
  "@putout/cli-validate-args": "^1.0.0",
55
55
  "@putout/compare": "^9.0.0",
@@ -163,7 +163,7 @@
163
163
  "@putout/plugin-remove-useless-variables": "^7.0.0",
164
164
  "@putout/plugin-reuse-duplicate-init": "^4.0.0",
165
165
  "@putout/plugin-simplify-assignment": "^2.0.0",
166
- "@putout/plugin-simplify-ternary": "^3.0.0",
166
+ "@putout/plugin-simplify-ternary": "^4.0.0",
167
167
  "@putout/plugin-split-nested-destructuring": "^1.0.0",
168
168
  "@putout/plugin-split-variable-declarations": "^2.0.0",
169
169
  "@putout/plugin-strict-mode": "^5.0.0",