putout 22.7.0 → 22.8.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,29 @@
1
+ 2021.12.15, v22.8.0
2
+
3
+ fix:
4
+ - (@putout/processor-css) disable property-no-vendor-prefix, selector-no-vendor-prefix
5
+ - (@putout/engine-parser) try-catch: devDependencies -> dependencies (#92)
6
+ - (@putout/operate) try-catch: dependencies -> devDependencies
7
+
8
+ feature:
9
+ - (putout) formatters: use chalk v4 to have support of Yarn PnP (https://github.com/yarnpkg/berry/issues/3843)
10
+ - (putout) add support of yarn PnP by formatters loader (#93)
11
+ - (@putout/engine-loader) add support of Yarn PnP (#93)
12
+ - (package) stylelint-config-standard v24.0.0
13
+ - (package) stylelint v14.1.0
14
+ - (@putout/operate) compute: nested MemberExpressions: extract -> compute
15
+ - (@putout/plugin-convert-typeof-to-is-type) exclude undefined undeclared
16
+ - (@putout/operate) compute: exclude values of MemberExpression that cannot be extracted
17
+ - (@putout/plugin-remove-useless-variables) for-of: add support of ArrayPattern
18
+ - (eslint-plugin-putout) wrap: add getSpacesAfterNode
19
+ - (@putout/plugin-putout) add apply-create-test
20
+ - (@putout/plugin-putout) add convert-dirname-to-url
21
+ - (@putout/operator-declare) use isESM from @putout/operate
22
+ - (@putout/operate) add isESM
23
+ - (@putout/formatter-progress-bar) add color constant
24
+ - (@putout/operate) compute: isSimbleMemberExpression: simplify object check: not MemberExpression, not CallExpression -> not computed and Identifier'
25
+
26
+
1
27
  2021.12.12, v22.7.0
2
28
 
3
29
  feature:
@@ -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.7.0",
3
+ "version": "22.8.0",
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",