putout 31.6.0 → 31.7.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,13 @@
1
+ 2023.08.28, v31.7.0
2
+
3
+ feature:
4
+ - 2a375c896 putout: parseOptions: require -> add prefix "import:"
5
+ - e7693f971 @putout/engine-loader: loadPlugins: add support of 'import:'
6
+ - 40bbe3a6a @putout/plugin-putout: apply-namespace-specifiers: improve support of couple imports in Nested Plugin
7
+ - ed61c1b25 @putout/engine-loader: add support of 'import:'
8
+ - b4d482c56 @putout/plugin-convert-optional-to-logical: squire brace
9
+ - 6ba8e145d @putout/plugin-convert-optional-to-logical: convert to ESM
10
+
1
11
  2023.08.27, v31.6.0
2
12
 
3
13
  fix:
@@ -115,10 +115,8 @@ function readRules(dirOpt, rulesDir) {
115
115
 
116
116
  for (const name of names.filter(isInclude)) {
117
117
  const full = join(dir, name);
118
- const plugin = require(full);
119
- const shortName = name.replace('putout-plugin-', '');
120
118
 
121
- plugins.push([shortName, plugin]);
119
+ plugins.push(`import:${full}`);
122
120
  }
123
121
 
124
122
  return {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "putout",
3
- "version": "31.6.0",
3
+ "version": "31.7.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",
@@ -51,7 +51,7 @@
51
51
  "@putout/cli-staged": "^1.0.0",
52
52
  "@putout/cli-validate-args": "^1.0.0",
53
53
  "@putout/compare": "^12.0.0",
54
- "@putout/engine-loader": "^11.0.0",
54
+ "@putout/engine-loader": "^11.3.0",
55
55
  "@putout/engine-parser": "^8.0.0",
56
56
  "@putout/engine-processor": "^9.0.0",
57
57
  "@putout/engine-runner": "^18.0.0",