putout 22.6.2 → 22.8.2

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,69 @@
1
+ 2021.12.16, v22.8.2
2
+
3
+ fix:
4
+ - (@putout/formatter-memory) memry -> memory
5
+
6
+ feature:
7
+ - (putout) options: ignore: add .pnp.*
8
+ - (@putout/engine-loader) improve support of Yarn PnP (#93)
9
+
10
+
11
+ 2021.12.15, v22.8.1
12
+
13
+ feature:
14
+ - (putout) config: ignore .yarn directory
15
+
16
+
17
+ 2021.12.15, v22.8.0
18
+
19
+ fix:
20
+ - (@putout/processor-css) disable property-no-vendor-prefix, selector-no-vendor-prefix
21
+ - (@putout/engine-parser) try-catch: devDependencies -> dependencies (#92)
22
+ - (@putout/operate) try-catch: dependencies -> devDependencies
23
+
24
+ feature:
25
+ - (putout) formatters: use chalk v4 to have support of Yarn PnP (https://github.com/yarnpkg/berry/issues/3843)
26
+ - (putout) add support of yarn PnP by formatters loader (#93)
27
+ - (@putout/engine-loader) add support of Yarn PnP (#93)
28
+ - (package) stylelint-config-standard v24.0.0
29
+ - (package) stylelint v14.1.0
30
+ - (@putout/operate) compute: nested MemberExpressions: extract -> compute
31
+ - (@putout/plugin-convert-typeof-to-is-type) exclude undefined undeclared
32
+ - (@putout/operate) compute: exclude values of MemberExpression that cannot be extracted
33
+ - (@putout/plugin-remove-useless-variables) for-of: add support of ArrayPattern
34
+ - (eslint-plugin-putout) wrap: add getSpacesAfterNode
35
+ - (@putout/plugin-putout) add apply-create-test
36
+ - (@putout/plugin-putout) add convert-dirname-to-url
37
+ - (@putout/operator-declare) use isESM from @putout/operate
38
+ - (@putout/operate) add isESM
39
+ - (@putout/formatter-progress-bar) add color constant
40
+ - (@putout/operate) compute: isSimbleMemberExpression: simplify object check: not MemberExpression, not CallExpression -> not computed and Identifier'
41
+
42
+
43
+ 2021.12.12, v22.7.0
44
+
45
+ feature:
46
+ - (package) @putout/plugin-convert-comparison-to-boolean v2.0.0
47
+ - (@putout/operate) compute: add support of evaluate
48
+ - (@putout/plugin-convert-comparison-to-boolean) improve support of member expressions
49
+ - (@putout/plugin-convert-comparison-to-boolean) drop support of putout < 22
50
+ - (@putout/plugin-putout) check-replace-code: simplify
51
+ - (@putout/operate) compute: add support of Literal
52
+ - (@putout/plugin-putout) check-replace-code: use compute from operate
53
+ - (@putout/operate) add compute
54
+ - (@putout/plugin-putout) check-replace-code: add support of MemberExpression in computed property
55
+ - (@putout/plugin-convert-typeof-to-is-type) use getBindingPath from operate
56
+ - (@putout/operate) add getBinding, getBindingPath
57
+ - (@putout/operate) add getBinding
58
+ - (@putout/engine-runner) replace: validation output: ["__b"] ["__a"] -> ["__a"] -> ["__b"]
59
+ - (@putout/plugin-putout) add move-require-on-top-level
60
+ - (@putout/test) add support of createTest
61
+ - (@putout/engine-loader) is-enabled: use isBool
62
+ - (@putout/plugin-convert-typeof-to-is-type) improve binding search
63
+ - (@putout/plugin-putout) check-replace-code: exclude computed keys
64
+ - (@putout/plugin-convert-typeof-to-is-type) add support of isSymbol
65
+ - (@putout/plugin-declare-undefined-variables) add support of isSymbol
66
+
1
67
  2021.12.09, v22.6.2
2
68
 
3
69
  fix:
@@ -1,6 +1,5 @@
1
1
  'use strict';
2
2
 
3
- const {createSimport} = require('simport');
4
3
  const tryToCatch = require('try-to-catch');
5
4
 
6
5
  const {
@@ -8,7 +7,8 @@ const {
8
7
  CANNOT_LOAD_FORMATTER,
9
8
  } = require('./exit-codes');
10
9
 
11
- const simport = createSimport(__filename);
10
+ const simpleImport = require('./simple-import');
11
+
12
12
  const stub = () => () => {};
13
13
 
14
14
  const {isArray} = Array;
@@ -48,7 +48,7 @@ async function loadFormatter(names) {
48
48
  let reporter;
49
49
 
50
50
  for (const name of names) {
51
- [e, reporter] = await tryToCatch(simport, name);
51
+ [e, reporter] = await tryToCatch(simpleImport, name);
52
52
 
53
53
  if (!e)
54
54
  return [null, reporter];
@@ -69,3 +69,4 @@ async function loadFormatter(names) {
69
69
 
70
70
  return [e];
71
71
  }
72
+
@@ -0,0 +1,7 @@
1
+ 'use strict';
2
+
3
+ // yarn doesn't understand how simport works
4
+ // https://github.com/coderaiser/putout/issues/93
5
+
6
+ module.exports = async (url) => (await import(url)).default;
7
+
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "putout",
3
- "version": "22.6.2",
3
+ "version": "22.8.2",
4
4
  "author": "coderaiser <mnemonic.enemy@gmail.com> (https://github.com/coderaiser)",
5
5
  "description": "🐊 Pluggable and configurable code transformer with built-in eslint, babel plugins and jscodeshift codemods support of js, jsx typescript, flow files, markdown, yaml and json",
6
6
  "homepage": "http://github.com/coderaiser/putout",
@@ -84,7 +84,7 @@
84
84
  "@putout/plugin-convert-assignment-to-comparison": "^1.0.0",
85
85
  "@putout/plugin-convert-bitwise-to-logical": "^1.0.0",
86
86
  "@putout/plugin-convert-commonjs-to-esm": "^6.0.0",
87
- "@putout/plugin-convert-comparison-to-boolean": "^1.0.0",
87
+ "@putout/plugin-convert-comparison-to-boolean": "^2.0.0",
88
88
  "@putout/plugin-convert-concat-to-flat": "^1.0.0",
89
89
  "@putout/plugin-convert-equal-to-strict-equal": "^1.0.0",
90
90
  "@putout/plugin-convert-esm-to-commonjs": "^3.0.0",
package/putout.json CHANGED
@@ -102,6 +102,8 @@
102
102
  "**/node_modules",
103
103
  "**/fixture",
104
104
  "**/.nyc_output",
105
+ "**/.yarn",
106
+ "**/.pnp.*",
105
107
  "**/coverage",
106
108
  "**/dist",
107
109
  "**/dist-dev",