putout 32.16.0 → 33.1.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,49 @@
1
+ 2023.11.12, v33.1.0
2
+
3
+ fix:
4
+ - 885441dce featur: @putout/plugin-nodejs: add-node-preuse module
5
+ - f191e04f3 @putout/processor-filesystem: merge: a couple sources in list
6
+ - 7bea61cd5 @putout/plugin-filesystem: findFile
7
+
8
+ feature:
9
+ - bb557e59e putout: @putout/cli-choose-formatter v2.0.0
10
+ - c58ad0323 @putout/cli-choose-formatter: drop support of 🐊 < 33
11
+ - 2f1b58124 @putout/cli-choose-formatter: keep options
12
+ - 561d3745e @putout/plugin-nextjs: create-app-directory: add
13
+ - 8bb263dc2 @putout/plugin-putout: declare: createDirectory, getParentDirectory
14
+ - a2699b836 @putout/operator-filesystem: getParentDirectory: add
15
+ - 79802be86 @putout/cli-filesystem: createDirectory: add
16
+ - e2cf800c9 @putout/operator-filesystem: createDirectory: add
17
+ - c7241c036 @putout/operator-filesystem: moveFile: improve
18
+ - 80f20ab2e @putout/plugin-nextjs: drop support of 🐊 < 33
19
+ - 8b4d71b3e @putout/plugin-nextjs: move-404-to-not-found: add
20
+ - d88cd8dd3 @putout/plugin-putout: declare: operator: moveFile
21
+ - 4fa2201fc @putout/operator-filesystem: moveFile: add
22
+ - a07f64a6c @putout/processor-filesystem: merge: filter "__putout_processor_filesystem" first
23
+ - 40f296267 @putout/plugin-filesystem: remove-vim-swap-file: add
24
+ - 3b27bd74d @putout/operator-filesystem: findFile: add support of glob
25
+ - ddc15035d @putout/cli-filesystem: removeFile
26
+ - 8db4748ea @putout/plugin-putout: declare: removeFile
27
+ - c35802c66 @putout/operator-filesystem: removeFile: add
28
+
29
+ 2023.11.09, v33.0.0
30
+
31
+ feature:
32
+ - d28219c92 @putout/engine-loader: rm unused isExluded
33
+ - 6b2721dc1 putout: add ability to provide disabled plugins
34
+ - dea784378 @putout/processor-filesystem: is-filesystem
35
+ - 5cfd75e0f putout: @putout/plugin-nodejs v9.0.0
36
+ - 729e93cc8 putout: @putout/plugin-tape v12.0.0
37
+ - 29c77ff0f @putout/plugin-tape: drop support of 🐊 < 33
38
+ - 54f56992e putout: @putout/plugin-nodejs v8.1.0
39
+ - 71a3e482a putout: @putout/plugin-merge-duplicate-imports v10.0.0
40
+ - 67b22c688 @putout/plugin-nodejs: drop support of 🐊 < 33
41
+ - 67f1dde3a @putout/plugin-merge-duplicate-imports: drop support of 🐊 < 33
42
+ - fa96049c3 @putout/plugin-merge-duplicate-imports: improve support of tape/declare, nodejs/convert-esm-to-commonjs
43
+ - 4befa6ead @putout/plugin-nodejs: merge convert-esm-to-commonjs
44
+ - fbae70329 @putout/plugin-nodejs: merge convert-commonjs-to-esm
45
+ - d36d198f8 @putout/plugin-nodejs: convert-exports-to-module-exports: add (#191)
46
+
1
47
  2023.11.07, v32.16.0
2
48
 
3
49
  fix:
@@ -12,7 +12,8 @@ function commonjs() {
12
12
  return {
13
13
  match: {
14
14
  '*.js': {
15
- 'convert-esm-to-commonjs': 'on',
15
+ 'nodejs/convert-esm-to-commonjs': 'on',
16
+ 'tape/convert-mock-require-to-mock-import': 'off',
16
17
  },
17
18
  '.eslintrc.json': {
18
19
  'eslint': 'on',
@@ -26,8 +27,9 @@ function esm() {
26
27
  return {
27
28
  match: {
28
29
  '*.js': {
29
- 'convert-commonjs-to-esm': 'on',
30
+ 'nodejs/convert-commonjs-to-esm': 'on',
30
31
  'strict-mode/add-missing': 'off',
32
+ 'tape/convert-mock-require-to-mock-import': 'on',
31
33
  },
32
34
  '.eslintrc.json': {
33
35
  'eslint': 'on',
@@ -86,6 +86,10 @@
86
86
  }]
87
87
  }]
88
88
  },
89
+ "fixCount": {
90
+ "description": "Choose count of fixes",
91
+ "type": "number"
92
+ },
89
93
  "formatter": {
90
94
  "description": "Choose the way to show information about errors found",
91
95
  "type": [
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "putout",
3
- "version": "32.16.0",
3
+ "version": "33.1.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",
@@ -46,7 +46,7 @@
46
46
  "dependencies": {
47
47
  "@putout/babel": "^1.0.0",
48
48
  "@putout/cli-cache": "^2.0.1",
49
- "@putout/cli-choose-formatter": "^1.0.0",
49
+ "@putout/cli-choose-formatter": "^2.0.0",
50
50
  "@putout/cli-keypress": "^2.0.0",
51
51
  "@putout/cli-match": "^2.0.0",
52
52
  "@putout/cli-ruler": "^3.0.0",
@@ -88,12 +88,9 @@
88
88
  "@putout/plugin-convert-array-copy-to-slice": "^3.0.0",
89
89
  "@putout/plugin-convert-assignment-to-arrow-function": "^1.0.0",
90
90
  "@putout/plugin-convert-assignment-to-comparison": "^2.0.0",
91
- "@putout/plugin-convert-commonjs-to-esm": "^10.0.0",
92
91
  "@putout/plugin-convert-concat-to-flat": "^1.0.0",
93
92
  "@putout/plugin-convert-const-to-let": "^1.0.0",
94
- "@putout/plugin-convert-esm-to-commonjs": "^6.0.0",
95
93
  "@putout/plugin-convert-index-of-to-includes": "^2.0.0",
96
- "@putout/plugin-convert-mock-require-to-mock-import": "^4.0.0",
97
94
  "@putout/plugin-convert-object-assign-to-merge-spread": "^6.0.0",
98
95
  "@putout/plugin-convert-object-entries-to-array-entries": "^3.0.0",
99
96
  "@putout/plugin-convert-optional-to-logical": "^3.0.0",
@@ -116,10 +113,10 @@
116
113
  "@putout/plugin-maybe": "^2.0.0",
117
114
  "@putout/plugin-merge-destructuring-properties": "^8.0.0",
118
115
  "@putout/plugin-merge-duplicate-functions": "^2.0.0",
119
- "@putout/plugin-merge-duplicate-imports": "^9.0.0",
116
+ "@putout/plugin-merge-duplicate-imports": "^10.0.0",
120
117
  "@putout/plugin-montag": "^2.0.0",
121
118
  "@putout/plugin-new": "^2.0.0",
122
- "@putout/plugin-nodejs": "^8.0.0",
119
+ "@putout/plugin-nodejs": "^9.0.0",
123
120
  "@putout/plugin-npmignore": "^2.0.0",
124
121
  "@putout/plugin-package-json": "^5.0.0",
125
122
  "@putout/plugin-promises": "^13.0.0",
@@ -162,7 +159,7 @@
162
159
  "@putout/plugin-split-nested-destructuring": "^3.0.0",
163
160
  "@putout/plugin-split-variable-declarations": "^3.0.0",
164
161
  "@putout/plugin-strict-mode": "^9.0.0",
165
- "@putout/plugin-tape": "^11.0.0",
162
+ "@putout/plugin-tape": "^12.0.0",
166
163
  "@putout/plugin-try-catch": "^3.0.0",
167
164
  "@putout/plugin-types": "^3.0.0",
168
165
  "@putout/plugin-typescript": "^5.0.0",
package/putout.json CHANGED
@@ -97,11 +97,11 @@
97
97
  "tape": "on"
98
98
  },
99
99
  "*.mjs": {
100
- "convert-commonjs-to-esm": "on",
101
- "convert-mock-require-to-mock-import": "on"
100
+ "nodejs/convert-commonjs-to-esm": "on",
101
+ "tape/convert-mock-require-to-mock-import": "on"
102
102
  },
103
103
  "*.cjs": {
104
- "convert-esm-to-commonjs": "on"
104
+ "nodejs/convert-esm-to-commonjs": "on"
105
105
  },
106
106
  "*.{ts,tsx,mts,cts,md{ts},md{tsx}}": {
107
107
  "typescript": "on"
@@ -131,8 +131,8 @@
131
131
  ],
132
132
  "rules": {
133
133
  "typescript": "off",
134
- "convert-esm-to-commonjs": "off",
135
- "convert-commonjs-to-esm": "off",
134
+ "nodejs/convert-esm-to-commonjs": "off",
135
+ "nodejs/convert-commonjs-to-esm": "off",
136
136
  "apply-optional-chaining/assign": "off",
137
137
  "convert-optional-to-logical/call": "off",
138
138
  "nodejs/convert-top-level-return": "off",
@@ -147,7 +147,7 @@
147
147
  "github": "off",
148
148
  "tape": "off",
149
149
  "strict-mode": "off",
150
- "convert-mock-require-to-mock-import": "off"
150
+ "tape/convert-mock-require-to-mock-import": "off"
151
151
  },
152
152
  "plugins": [
153
153
  "apply-at",
@@ -199,8 +199,6 @@
199
199
  "simplify-boolean-return",
200
200
  "simplify-ternary",
201
201
  "convert-const-to-let",
202
- "convert-esm-to-commonjs",
203
- "convert-commonjs-to-esm",
204
202
  "convert-apply-to-spread",
205
203
  "convert-concat-to-flat",
206
204
  "convert-arguments-to-rest",
@@ -210,7 +208,6 @@
210
208
  "convert-array-copy-to-slice",
211
209
  "convert-template-to-string",
212
210
  "convert-index-of-to-includes",
213
- "convert-mock-require-to-mock-import",
214
211
  "convert-assignment-to-arrow-function",
215
212
  "convert-assignment-to-comparison",
216
213
  "convert-quotes-to-backticks",