putout 37.10.0 → 37.11.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,17 @@
1
+ 2025.01.05, v37.11.0
2
+
3
+ fix:
4
+ - f871b5344 @putout/plugin-apply-arrow: find top scope
5
+
6
+ feature:
7
+ - ebdccbaa4 putout: @putout/plugin-types v6.0.0
8
+ - b8b25399c @putout/plugin-types: convert-typeof-to-is-type: add support of isError
9
+ - b3fe00dfb @putout/plugin-types: drop support of 🐊 < 37
10
+ - fdc62279f @putout/plugin-types: declare: isError: add
11
+ - b49445435 @putout/plugin-apply-arrow: different scopes
12
+ - bf73e15cb @putout/apply-arrow: handle case when no loc found
13
+ - 90146fe82 @putout/plugin-apply-arrow: exclude long lines
14
+
1
15
  2025.01.04, v37.10.0
2
16
 
3
17
  feature:
@@ -19,6 +19,4 @@ module.exports = (e, type = 'parser') => {
19
19
  }];
20
20
  };
21
21
 
22
- function cutBrackets(a) {
23
- return a.replace(/\s\(\d:\d+\)/, '');
24
- }
22
+ const cutBrackets = (a) => a.replace(/\s\(\d:\d+\)/, '');
@@ -8,34 +8,30 @@ module.exports = ({type}, options) => {
8
8
  assign(options, merge(options, rules));
9
9
  };
10
10
 
11
- function commonjs() {
12
- return {
13
- match: {
14
- '*.js': {
15
- 'nodejs/convert-esm-to-commonjs': 'on',
16
- },
17
- '.eslintrc.json': {
18
- 'eslint': 'on',
19
- 'eslint/convert-require-to-import': 'off',
20
- },
11
+ const commonjs = () => ({
12
+ match: {
13
+ '*.js': {
14
+ 'nodejs/convert-esm-to-commonjs': 'on',
21
15
  },
22
- };
23
- }
16
+ '.eslintrc.json': {
17
+ 'eslint': 'on',
18
+ 'eslint/convert-require-to-import': 'off',
19
+ },
20
+ },
21
+ });
24
22
 
25
- function esm() {
26
- return {
27
- match: {
28
- '*.js': {
29
- 'nodejs/convert-commonjs-to-esm': 'on',
30
- 'nodejs/add-strict-mode': 'off',
31
- },
32
- '{test,*.spec.js}': {
33
- 'tape/convert-mock-require-to-mock-import': 'on',
34
- },
35
- '.eslintrc.json': {
36
- 'eslint': 'on',
37
- 'eslint/convert-require-to-import': 'on',
38
- },
23
+ const esm = () => ({
24
+ match: {
25
+ '*.js': {
26
+ 'nodejs/convert-commonjs-to-esm': 'on',
27
+ 'nodejs/add-strict-mode': 'off',
28
+ },
29
+ '{test,*.spec.js}': {
30
+ 'tape/convert-mock-require-to-mock-import': 'on',
31
+ },
32
+ '.eslintrc.json': {
33
+ 'eslint': 'on',
34
+ 'eslint/convert-require-to-import': 'on',
39
35
  },
40
- };
41
- }
36
+ },
37
+ });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "putout",
3
- "version": "37.10.0",
3
+ "version": "37.11.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",
@@ -182,7 +182,7 @@
182
182
  "@putout/plugin-split-variable-declarations": "^3.0.0",
183
183
  "@putout/plugin-tape": "^16.0.0",
184
184
  "@putout/plugin-try-catch": "^4.0.0",
185
- "@putout/plugin-types": "^5.0.0",
185
+ "@putout/plugin-types": "^6.0.0",
186
186
  "@putout/plugin-typescript": "^9.0.0",
187
187
  "@putout/plugin-webpack": "^3.0.0",
188
188
  "@putout/processor-css": "^9.0.0",