putout 29.2.3 → 29.2.5
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 +33 -0
- package/README.md +1 -1
- package/lib/putout.js +9 -2
- package/package.json +3 -3
- package/putout.json +7 -0
package/ChangeLog
CHANGED
|
@@ -1,3 +1,36 @@
|
|
|
1
|
+
2023.04.21, v29.2.5
|
|
2
|
+
|
|
3
|
+
fix:
|
|
4
|
+
- 903adc958 @putout/eslint: create-plugin: createGetSpaceBeforeNode -> createGetSpacesBeforeNode
|
|
5
|
+
|
|
6
|
+
feature:
|
|
7
|
+
- b5f7edc97 package: @putout/plugin-github v5.0.0
|
|
8
|
+
- 64492ce4b @putout/plugin-github: use @putout/printer
|
|
9
|
+
- 2194abd6f @putout/plugin-github: drop support of 🐊 < 29
|
|
10
|
+
- 94a047988 @putout/plugin-github: set-node-versions: add support of node v20
|
|
11
|
+
- 115d87438 eslint-plugin-putout: safe: disable maybe/noop
|
|
12
|
+
- 2a8fcf237 @putout/plugin-maybe: apply @putout/printer
|
|
13
|
+
- d21b72024 @putout/processor-markdown: use @putout/printer
|
|
14
|
+
- 8cfba34d8 @putout/plugin-typescript: use @putout/printer
|
|
15
|
+
- 06e5c18fd @putout/operator-add-args: improve declare of arguments
|
|
16
|
+
- c5b045452 eslint-plugin-putout: jsx: disable no-extra-parens
|
|
17
|
+
- 45d2212c0 @putout/plugin-react-hook-form: use @putout/printer
|
|
18
|
+
- e3370c1be package: @putout/engine-parser v6.0.0
|
|
19
|
+
- c3e4e7a33 @putout/test: eslint: noProcess: add ability to override
|
|
20
|
+
- 25351d404 @putout/engine-loaders: improve validation message: ☝️ Looks like plugin name type is not 'string', but: 'function'
|
|
21
|
+
- df76013a0 @putout/plugin-putout: create-test: add support of shorthand property
|
|
22
|
+
|
|
23
|
+
2023.04.09, v29.2.4
|
|
24
|
+
|
|
25
|
+
fix:
|
|
26
|
+
- 0b24d68f2 @putout/processor-markdown: drop newline at eof of JSON
|
|
27
|
+
|
|
28
|
+
feature:
|
|
29
|
+
- e8d1ada1f package: @putout/processor-markdown v9.0.0
|
|
30
|
+
- ef1a5a8ca @putout/processor-markdown: drop support of 🐊 < 29
|
|
31
|
+
- f732db953 package: @putout/processor-json v6.0.1
|
|
32
|
+
- 9a40166c7 @putout/processor-json: add newline at eof when missing
|
|
33
|
+
|
|
1
34
|
2023.04.07, v29.2.3
|
|
2
35
|
|
|
3
36
|
feature:
|
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
|
|
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
|
@@ -87,6 +87,15 @@ module.exports.findPlaces = (ast, source, opts) => {
|
|
|
87
87
|
});
|
|
88
88
|
};
|
|
89
89
|
|
|
90
|
+
// why we pass 'source' to 'transform()'?
|
|
91
|
+
// because we need to calculate position in a right way
|
|
92
|
+
// and determine is shebang is exists
|
|
93
|
+
//
|
|
94
|
+
// 25 return {¬
|
|
95
|
+
// 26 line: shebang ? line + 1 : line,¬
|
|
96
|
+
// 27 column,¬
|
|
97
|
+
// 28 };¬
|
|
98
|
+
//
|
|
90
99
|
module.exports.transform = transform;
|
|
91
100
|
function transform(ast, source, opts) {
|
|
92
101
|
opts = defaultOpts(opts);
|
|
@@ -99,7 +108,6 @@ function transform(ast, source, opts) {
|
|
|
99
108
|
fixCount,
|
|
100
109
|
loadPlugins,
|
|
101
110
|
runPlugins,
|
|
102
|
-
recast = true,
|
|
103
111
|
} = opts;
|
|
104
112
|
|
|
105
113
|
const [, shebang] = cutShebang(source);
|
|
@@ -107,7 +115,6 @@ function transform(ast, source, opts) {
|
|
|
107
115
|
pluginNames,
|
|
108
116
|
cache,
|
|
109
117
|
rules,
|
|
110
|
-
recast,
|
|
111
118
|
});
|
|
112
119
|
|
|
113
120
|
const places = runPlugins({
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "putout",
|
|
3
|
-
"version": "29.2.
|
|
3
|
+
"version": "29.2.5",
|
|
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",
|
|
@@ -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": "^
|
|
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",
|
|
@@ -165,7 +165,7 @@
|
|
|
165
165
|
"@putout/processor-ignore": "^4.0.0",
|
|
166
166
|
"@putout/processor-javascript": "^4.0.0",
|
|
167
167
|
"@putout/processor-json": "^6.0.0",
|
|
168
|
-
"@putout/processor-markdown": "^
|
|
168
|
+
"@putout/processor-markdown": "^9.0.0",
|
|
169
169
|
"@putout/processor-yaml": "^5.0.0",
|
|
170
170
|
"@putout/traverse": "^5.0.0",
|
|
171
171
|
"ajv": "^8.8.2",
|