redput 2.8.0 → 3.0.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,22 @@
1
+ 2025.03.22, v3.0.0
2
+
3
+ feature:
4
+ - 2b371b1 redput: do not convert to CommonJS
5
+ - 16e28b7 redput: madrun v11.0.0
6
+ - e9d2ecb redput: eslint-plugin-putout v26.1.0
7
+ - 1e1a052 redput: @putout/plugin-putout v24.0.0
8
+ - c49216d redput: redlint v4.0.0
9
+ - 0436946 redput: putout v39.0.9
10
+ - 0fb9c10 redput: drop support of node < 20
11
+
12
+ 2025.03.15, v2.9.0
13
+
14
+ feature:
15
+ - 582bd8c redput: @putout/test v12.1.0
16
+ - c01a6ce redput: @putout/plugin-declare-before-reference v6.2.0
17
+ - 6f873ff redput: eslint-plugin-putout v25.2.0
18
+ - 95c939b redput: @putout/plugin-declare v5.0.0
19
+
1
20
  2025.02.13, v2.8.0
2
21
 
3
22
  feature:
package/lib/redput.js CHANGED
@@ -28,7 +28,9 @@ export const redput = async (link, {token}) => {
28
28
  } = parsePlugin(raw);
29
29
 
30
30
  if (name.startsWith('http'))
31
- return [Error(`Wrong name: '${name}'`)];
31
+ return [
32
+ Error(`Wrong name: '${name}'`),
33
+ ];
32
34
 
33
35
  const rule = lines.join('\n');
34
36
  const report = getReport(rule);
@@ -1,5 +1,5 @@
1
1
  import putout from 'putout';
2
- import pluginPutout from '@putout/plugin-putout';
2
+ import * as pluginPutout from '@putout/plugin-putout';
3
3
  import nodejs from '@putout/plugin-nodejs';
4
4
  import removeUnusedVariables from '@putout/plugin-remove-unused-variables';
5
5
  import * as insertGetRulePlugin from './plugin-insert-get-rule/index.js';
@@ -4,7 +4,7 @@ import {
4
4
  template,
5
5
  } from 'putout';
6
6
 
7
- const {StringLiteral, SpreadElement} = types;
7
+ const {spreadElement, stringLiteral} = types;
8
8
  const {traverse} = operator;
9
9
 
10
10
  export const report = () => `Insert 'getRule()'`;
@@ -35,16 +35,16 @@ export const replace = ({options}) => ({
35
35
  const {name, ruleOptions} = options;
36
36
 
37
37
  if (ruleOptions) {
38
- const node = SpreadElement(createRuleWithOptions({
39
- name: StringLiteral(name),
38
+ const node = spreadElement(createRuleWithOptions({
39
+ name: stringLiteral(name),
40
40
  }));
41
41
 
42
42
  __object.properties.push(node);
43
43
  return path;
44
44
  }
45
45
 
46
- const node = SpreadElement(createRule({
47
- name: StringLiteral(name),
46
+ const node = spreadElement(createRule({
47
+ name: stringLiteral(name),
48
48
  }));
49
49
 
50
50
  __object.properties.push(node);
@@ -1,6 +1,5 @@
1
1
  import putout from 'putout';
2
- import convertESMToCommonjs from '@putout/plugin-convert-esm-to-commonjs';
3
- import putoutPlugin from '@putout/plugin-putout';
2
+ import * as putoutPlugin from '@putout/plugin-putout';
4
3
  import declare from '@putout/plugin-declare';
5
4
  import declareBeforeReference from '@putout/plugin-declare-before-reference';
6
5
 
@@ -9,7 +8,6 @@ export const prepareRule = (source) => {
9
8
  plugins: [
10
9
  ['declare', declare],
11
10
  ['declare-before-reference', declareBeforeReference],
12
- ['convert-esm-to-commonjs', convertESMToCommonjs],
13
11
  ['putout', putoutPlugin],
14
12
  ],
15
13
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "redput",
3
- "version": "2.8.0",
3
+ "version": "3.0.0",
4
4
  "description": "CLI tool to convert source from 🐊Putout Editor to files",
5
5
  "main": "lib/redput.js",
6
6
  "bin": {
@@ -52,32 +52,32 @@
52
52
  "homepage": "https://github.com/putoutjs/redput",
53
53
  "license": "MIT",
54
54
  "engines": {
55
- "node": ">=18"
55
+ "node": ">=20"
56
56
  },
57
57
  "dependencies": {
58
58
  "@putout/plugin-convert-esm-to-commonjs": "^6.0.0",
59
- "@putout/plugin-declare": "^4.0.0",
60
- "@putout/plugin-declare-before-reference": "^5.1.0",
59
+ "@putout/plugin-declare": "^5.0.0",
60
+ "@putout/plugin-declare-before-reference": "^6.2.0",
61
61
  "@putout/plugin-nodejs": "^14.0.1",
62
- "@putout/plugin-putout": "^23.4.1",
62
+ "@putout/plugin-putout": "^24.0.0",
63
63
  "@putout/plugin-remove-unused-variables": "^12.0.0",
64
64
  "node-fetch": "^3.3.2",
65
65
  "octokit": "^4.0.2",
66
- "putout": "^38.0.0",
66
+ "putout": "^39.0.9",
67
67
  "rendy": "^4.1.3",
68
68
  "try-catch": "^3.0.1",
69
69
  "try-to-catch": "^3.0.1"
70
70
  },
71
71
  "devDependencies": {
72
- "@putout/test": "^11.0.0",
72
+ "@putout/test": "^12.1.0",
73
73
  "c8": "^10.1.2",
74
74
  "escover": "^4.0.1",
75
75
  "eslint": "^9.0.0",
76
- "eslint-plugin-putout": "^24.0.0",
77
- "madrun": "^10.0.0",
76
+ "eslint-plugin-putout": "^26.1.0",
77
+ "madrun": "^11.0.0",
78
78
  "montag": "^1.2.1",
79
79
  "nodemon": "^3.0.1",
80
- "redlint": "^3.14.1",
80
+ "redlint": "^4.0.0",
81
81
  "supertape": "^10.1.0"
82
82
  },
83
83
  "publishConfig": {