putout 29.2.4 → 29.3.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,46 @@
1
+ 2023.04.25, v29.3.0
2
+
3
+ feature:
4
+ - b2af4c19b package: @putout/plugin-merge-duplicate-imports v9.0.0
5
+ - 380d7a771 @putout/plugin-merge-duplicate-imports: drop support of 🐊 < 29
6
+ - 8ab240af7 @putout/plugin-merge-duplicate-imports: use @putout/printer
7
+ - 0397f2768 package: @eslint/eslintrc v2.0.2
8
+ - 6371b6c1d package: typescript v5.0.4
9
+ - 4f12e8014 package: @putout/engine-parser v6.0.0
10
+ - 82b651f6a package: @putout/engine-processor v7.0.0
11
+ - a20a5fc94 package: @putout/engine-loader v8.1.0
12
+ - 8506675e8 package: @putout/processor-css v7.0.0
13
+ - ef9019178 @putout/processor-css: drop support of 🐊 < 29
14
+ - ddda321f6 package: stylelint-config-standard v33.0.0
15
+ - 712736d07 package: stylelint v15.6.0
16
+ - a09971b90 @putout/processor-css: use @putout/printer
17
+ - ef4ea8d86 package: yaml v2.2.2 (https://security.snyk.io/vuln/SNYK-JS-YAML-5458867)
18
+ - 2821594aa @putout/plugin-printer: add
19
+ - 1096958c5 @putout/plugin-remove-iife: simplify
20
+ - f78c2dd3b @putout/engine-runner: add ability to handle case where Statement put in place of Expression
21
+
22
+ 2023.04.21, v29.2.5
23
+
24
+ fix:
25
+ - 903adc958 @putout/eslint: create-plugin: createGetSpaceBeforeNode -> createGetSpacesBeforeNode
26
+
27
+ feature:
28
+ - b5f7edc97 package: @putout/plugin-github v5.0.0
29
+ - 64492ce4b @putout/plugin-github: use @putout/printer
30
+ - 2194abd6f @putout/plugin-github: drop support of 🐊 < 29
31
+ - 94a047988 @putout/plugin-github: set-node-versions: add support of node v20
32
+ - 115d87438 eslint-plugin-putout: safe: disable maybe/noop
33
+ - 2a8fcf237 @putout/plugin-maybe: apply @putout/printer
34
+ - d21b72024 @putout/processor-markdown: use @putout/printer
35
+ - 8cfba34d8 @putout/plugin-typescript: use @putout/printer
36
+ - 06e5c18fd @putout/operator-add-args: improve declare of arguments
37
+ - c5b045452 eslint-plugin-putout: jsx: disable no-extra-parens
38
+ - 45d2212c0 @putout/plugin-react-hook-form: use @putout/printer
39
+ - e3370c1be package: @putout/engine-parser v6.0.0
40
+ - c3e4e7a33 @putout/test: eslint: noProcess: add ability to override
41
+ - 25351d404 @putout/engine-loaders: improve validation message: ☝️ Looks like plugin name type is not 'string', but: 'function'
42
+ - df76013a0 @putout/plugin-putout: create-test: add support of shorthand property
43
+
1
44
  2023.04.09, v29.2.4
2
45
 
3
46
  fix:
package/README.md CHANGED
@@ -269,7 +269,7 @@ For example if you need to `remove-something` create 🐊[**Putout**](https://gi
269
269
 
270
270
  ## Codemods
271
271
 
272
- 🐊**Putout** supports `codemodes` in the similar to plugins way, just create a directory `~/.putout` and put your plugins there. Here is example: [convert-tape-to-supertape](https://github.com/coderaiser/putout/tree/master/codemods/plugin-convert-tape-to-supertape) and [this is example of work](https://github.com/coderaiser/putout/commit/ad02cebc344ce73cdee668cffc5078bf08830d52).
272
+ 🐊**Putout** supports `codemodes` in the similar to plugins way, just create a directory `~/.putout` and put your plugins there. Here is example: [convert-tape-to-supertape](https://github.com/coderaiser/putout/tree/master/codemods/plugin-convert-tape-to-supertape) and [this is examples of work](https://github.com/coderaiser/putout/commit/ad02cebc344ce73cdee668cffc5078bf08830d52).
273
273
 
274
274
  ## API
275
275
 
package/lib/putout.js CHANGED
@@ -88,7 +88,7 @@ module.exports.findPlaces = (ast, source, opts) => {
88
88
  };
89
89
 
90
90
  // why we pass 'source' to 'transform()'?
91
- // because we need to calcluate position in a right way
91
+ // because we need to calculate position in a right way
92
92
  // and determine is shebang is exists
93
93
  //
94
94
  // 25 return {¬
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "putout",
3
- "version": "29.2.4",
3
+ "version": "29.3.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",
@@ -54,7 +54,7 @@
54
54
  "@putout/compare": "^9.0.0",
55
55
  "@putout/engine-loader": "^8.0.0",
56
56
  "@putout/engine-parser": "^6.0.0",
57
- "@putout/engine-processor": "^6.0.0",
57
+ "@putout/engine-processor": "^7.0.0",
58
58
  "@putout/engine-runner": "^15.0.0",
59
59
  "@putout/eslint": "^2.0.0",
60
60
  "@putout/formatter-codeframe": "^4.0.0",
@@ -101,7 +101,7 @@
101
101
  "@putout/plugin-extract-object-properties": "^9.0.0",
102
102
  "@putout/plugin-extract-sequence-expressions": "^3.0.0",
103
103
  "@putout/plugin-for-of": "^1.0.0",
104
- "@putout/plugin-github": "^4.0.0",
104
+ "@putout/plugin-github": "^5.0.0",
105
105
  "@putout/plugin-gitignore": "^3.0.0",
106
106
  "@putout/plugin-logical-expressions": "^2.0.0",
107
107
  "@putout/plugin-madrun": "^15.0.0",
@@ -109,7 +109,7 @@
109
109
  "@putout/plugin-maybe": "^1.0.0",
110
110
  "@putout/plugin-merge-destructuring-properties": "^7.0.0",
111
111
  "@putout/plugin-merge-duplicate-functions": "^1.0.0",
112
- "@putout/plugin-merge-duplicate-imports": "^8.0.0",
112
+ "@putout/plugin-merge-duplicate-imports": "^9.0.0",
113
113
  "@putout/plugin-merge-if-statements": "^3.0.0",
114
114
  "@putout/plugin-montag": "^2.0.0",
115
115
  "@putout/plugin-new": "^1.0.0",
@@ -161,7 +161,7 @@
161
161
  "@putout/plugin-types": "^1.1.0",
162
162
  "@putout/plugin-typescript": "^3.0.0",
163
163
  "@putout/plugin-webpack": "^2.0.0",
164
- "@putout/processor-css": "^6.0.0",
164
+ "@putout/processor-css": "^7.0.0",
165
165
  "@putout/processor-ignore": "^4.0.0",
166
166
  "@putout/processor-javascript": "^4.0.0",
167
167
  "@putout/processor-json": "^6.0.0",
package/putout.json CHANGED
@@ -56,6 +56,13 @@
56
56
  },
57
57
  ".github/**/*.yml": {
58
58
  "github": "on",
59
+ "github/set-node-versions": ["on", {
60
+ "versions": [
61
+ "16.x",
62
+ "18.x",
63
+ "20.x"
64
+ ]
65
+ }],
59
66
  "remove-useless-escape": "off"
60
67
  },
61
68
  ".gitignore": {