putout 23.1.0 → 23.5.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 +48 -0
- package/lib/parse-options/index.js +1 -1
- package/lib/putout.js +6 -1
- package/package.json +9 -8
package/ChangeLog
CHANGED
|
@@ -1,3 +1,51 @@
|
|
|
1
|
+
2021.12.30, v23.5.0
|
|
2
|
+
|
|
3
|
+
fix:
|
|
4
|
+
- (eslint-plugin-putout) newline-function-call-arguments: exclude code contains quote
|
|
5
|
+
|
|
6
|
+
feature:
|
|
7
|
+
- (putout) add support of sourcemaps
|
|
8
|
+
- (@putout/engine-parser) add sourcemaps support
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
2021.12.29, v23.4.0
|
|
12
|
+
|
|
13
|
+
feature:
|
|
14
|
+
- (package) @putout/plugin-package-json v2.0.0
|
|
15
|
+
- (@putout/package-json) drop support of putout < 23
|
|
16
|
+
- (@putout/plugin-putout) declare: add findProperties
|
|
17
|
+
- (@putout/plugin-package-json) add add-type
|
|
18
|
+
- (@putout/operate) add findProperties
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
2021.12.26, v23.3.0
|
|
22
|
+
|
|
23
|
+
feature:
|
|
24
|
+
- (package) @putout/operate v6.13.0
|
|
25
|
+
- (package) @putout/plugin-convert-typeof-to-is-type v2.0.0
|
|
26
|
+
- (@putout/plugin-convert-typeof-to-is-type) drop support of putout < 23
|
|
27
|
+
- (@putout/plugin-convert-typeof-to-is-type) add support of MemberExpression
|
|
28
|
+
- (@putout/operate) getBinding/getBindingPath: name: string -> name: string | Node'
|
|
29
|
+
- (@putout/plugin-putout) add includer
|
|
30
|
+
|
|
31
|
+
|
|
32
|
+
2021.12.25, v23.2.0
|
|
33
|
+
|
|
34
|
+
feature:
|
|
35
|
+
- (package) @putout/plugin-reuse-duplicate-init v3.0.0
|
|
36
|
+
- (package) @putout/plugin-remove-unused-types v2.0.0
|
|
37
|
+
- (package) @putout/engine-runner v12.0.0
|
|
38
|
+
- (@putout/plugin-reuse-duplicate-init) drop support of putout < 23
|
|
39
|
+
- (@putout/plugin-reuse-duplicate-init) add support of MemberExpression
|
|
40
|
+
- (@putout/plugin-remove-unused-types) drop support of putout < 23
|
|
41
|
+
- (@putout/plugin-remove-unused-types) store -> upstore
|
|
42
|
+
- (@putout/engine-runner) add support of upstore
|
|
43
|
+
- (@putout/engine-runner) improve support of Program: exit + exclude
|
|
44
|
+
- (@putout/plugin-github) traverse-property: callback -> return array
|
|
45
|
+
- (putout) rules: exclude "not-rule-*" glob
|
|
46
|
+
- (@putout/rule-add-readme-to-homepage) add
|
|
47
|
+
|
|
48
|
+
|
|
1
49
|
2021.12.23, v23.1.0
|
|
2
50
|
|
|
3
51
|
fix:
|
package/lib/putout.js
CHANGED
|
@@ -40,10 +40,13 @@ module.exports = (source, opts) => {
|
|
|
40
40
|
isTS,
|
|
41
41
|
isFlow,
|
|
42
42
|
isJSX,
|
|
43
|
+
sourceFileName,
|
|
44
|
+
sourceMapName,
|
|
43
45
|
} = opts;
|
|
44
46
|
|
|
45
47
|
const [clearSource, shebang] = cutShebang(source);
|
|
46
48
|
const ast = parse(clearSource, {
|
|
49
|
+
sourceFileName,
|
|
47
50
|
parser,
|
|
48
51
|
isTS,
|
|
49
52
|
isFlow,
|
|
@@ -58,7 +61,9 @@ module.exports = (source, opts) => {
|
|
|
58
61
|
places,
|
|
59
62
|
};
|
|
60
63
|
|
|
61
|
-
const printed = print(ast
|
|
64
|
+
const printed = print(ast, {
|
|
65
|
+
sourceMapName,
|
|
66
|
+
});
|
|
62
67
|
const code = `${shebang}${printed}`;
|
|
63
68
|
|
|
64
69
|
return {
|
package/package.json
CHANGED
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "putout",
|
|
3
|
-
"version": "23.
|
|
3
|
+
"version": "23.5.0",
|
|
4
|
+
"type": "commonjs",
|
|
4
5
|
"author": "coderaiser <mnemonic.enemy@gmail.com> (https://github.com/coderaiser)",
|
|
5
6
|
"description": "🐊 Pluggable and configurable code transformer with built-in eslint and babel plugins support of js, jsx typescript, flow files, markdown, yaml and json",
|
|
6
|
-
"homepage": "http://github.com/coderaiser/putout",
|
|
7
|
+
"homepage": "http://github.com/coderaiser/putout#readme",
|
|
7
8
|
"main": "./lib/putout.js",
|
|
8
9
|
"exports": {
|
|
9
10
|
".": {
|
|
@@ -54,7 +55,7 @@
|
|
|
54
55
|
"@putout/engine-loader": "^5.0.0",
|
|
55
56
|
"@putout/engine-parser": "^4.0.0",
|
|
56
57
|
"@putout/engine-processor": "^4.0.0",
|
|
57
|
-
"@putout/engine-runner": "^
|
|
58
|
+
"@putout/engine-runner": "^12.0.0",
|
|
58
59
|
"@putout/formatter-codeframe": "^3.0.0",
|
|
59
60
|
"@putout/formatter-dump": "^3.0.0",
|
|
60
61
|
"@putout/formatter-frame": "^2.0.0",
|
|
@@ -64,7 +65,7 @@
|
|
|
64
65
|
"@putout/formatter-progress": "^3.0.0",
|
|
65
66
|
"@putout/formatter-progress-bar": "^2.0.0",
|
|
66
67
|
"@putout/formatter-stream": "^3.0.0",
|
|
67
|
-
"@putout/operate": "^6.
|
|
68
|
+
"@putout/operate": "^6.13.0",
|
|
68
69
|
"@putout/operator-add-args": "^1.0.0",
|
|
69
70
|
"@putout/operator-declare": "^2.0.0",
|
|
70
71
|
"@putout/operator-regexp": "^1.0.0",
|
|
@@ -102,7 +103,7 @@
|
|
|
102
103
|
"@putout/plugin-convert-template-to-string": "^1.0.0",
|
|
103
104
|
"@putout/plugin-convert-to-arrow-function": "^3.0.0",
|
|
104
105
|
"@putout/plugin-convert-top-level-return": "^4.0.0",
|
|
105
|
-
"@putout/plugin-convert-typeof-to-is-type": "^
|
|
106
|
+
"@putout/plugin-convert-typeof-to-is-type": "^2.0.0",
|
|
106
107
|
"@putout/plugin-declare-undefined-variables": "^6.0.0",
|
|
107
108
|
"@putout/plugin-eslint": "^2.0.0",
|
|
108
109
|
"@putout/plugin-extract-object-properties": "^6.0.0",
|
|
@@ -115,7 +116,7 @@
|
|
|
115
116
|
"@putout/plugin-merge-if-statements": "^3.0.0",
|
|
116
117
|
"@putout/plugin-nodejs": "^1.0.0",
|
|
117
118
|
"@putout/plugin-npmignore": "^2.0.0",
|
|
118
|
-
"@putout/plugin-package-json": "^
|
|
119
|
+
"@putout/plugin-package-json": "^2.0.0",
|
|
119
120
|
"@putout/plugin-promises": "^6.0.0",
|
|
120
121
|
"@putout/plugin-putout": "^8.0.0",
|
|
121
122
|
"@putout/plugin-putout-config": "^2.0.0",
|
|
@@ -139,7 +140,7 @@
|
|
|
139
140
|
"@putout/plugin-remove-unused-expressions": "^4.0.0",
|
|
140
141
|
"@putout/plugin-remove-unused-for-of-variables": "^1.0.0",
|
|
141
142
|
"@putout/plugin-remove-unused-private-fields": "^1.0.0",
|
|
142
|
-
"@putout/plugin-remove-unused-types": "^
|
|
143
|
+
"@putout/plugin-remove-unused-types": "^2.0.0",
|
|
143
144
|
"@putout/plugin-remove-unused-variables": "*",
|
|
144
145
|
"@putout/plugin-remove-useless-arguments": "^5.0.0",
|
|
145
146
|
"@putout/plugin-remove-useless-array-constructor": "^1.0.0",
|
|
@@ -164,7 +165,7 @@
|
|
|
164
165
|
"@putout/plugin-remove-useless-types": "^1.0.0",
|
|
165
166
|
"@putout/plugin-remove-useless-types-from-constants": "^1.0.0",
|
|
166
167
|
"@putout/plugin-remove-useless-variables": "^5.0.0",
|
|
167
|
-
"@putout/plugin-reuse-duplicate-init": "^
|
|
168
|
+
"@putout/plugin-reuse-duplicate-init": "^3.0.0",
|
|
168
169
|
"@putout/plugin-simplify-assignment": "^1.0.0",
|
|
169
170
|
"@putout/plugin-simplify-logical-expressions": "^1.0.0",
|
|
170
171
|
"@putout/plugin-simplify-ternary": "^2.0.0",
|