redlint 4.4.2 → 5.0.1

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,14 @@
1
+ 2025.12.31, v5.0.1
2
+
3
+ feature:
4
+ - b0483dc redlint: @putout/test v15.0.0
5
+ - 220e528 redlint: get rid of es-iterator-helpers
6
+
7
+ 2025.12.31, v5.0.0
8
+
9
+ feature:
10
+ - 0dacbf6 redlint: drop support of node < 22
11
+
1
12
  2025.12.31, v4.4.2
2
13
 
3
14
  feature:
package/lib/dialog.js CHANGED
@@ -1,5 +1,5 @@
1
1
  import enq from 'enquirer';
2
- import tryToCatch from 'try-to-catch';
2
+ import {tryToCatch} from 'try-to-catch';
3
3
 
4
4
  const {prompt} = enq;
5
5
 
@@ -1,6 +1,5 @@
1
1
  import {basename, dirname} from 'node:path';
2
2
  import {operator} from 'putout';
3
- import map from 'es-iterator-helpers/Iterator.prototype.map';
4
3
 
5
4
  const {
6
5
  createNestedDirectory,
@@ -57,7 +56,7 @@ export const scan = (path, {push, trackFile, options}) => {
57
56
 
58
57
  const [fullNames, fromNames, toNames] = getRenamedFiles(from, to);
59
58
  const convertToTuple = addFromTo(fromNames, toNames);
60
- const trackFileIterator = map(trackFile(path, fullNames), convertToTuple);
59
+ const trackFileIterator = trackFile(path, fullNames).map(convertToTuple);
61
60
 
62
61
  for (const [from, to, currentFile] of trackFileIterator) {
63
62
  push(currentFile, {
@@ -1,6 +1,5 @@
1
1
  import {join} from 'node:path';
2
2
  import {operator} from 'putout';
3
- import map from 'es-iterator-helpers/Iterator.prototype.map';
4
3
 
5
4
  const {renameFile} = operator;
6
5
 
@@ -29,7 +28,7 @@ export const scan = (path, {push, trackFile, options}) => {
29
28
  const [fullNames, fromNames, toNames] = getRenamedFiles(dir, from, to);
30
29
  const convertToTuple = addFromTo(fromNames, toNames);
31
30
 
32
- const trackFileIterator = map(trackFile(path, fullNames), convertToTuple);
31
+ const trackFileIterator = trackFile(path, fullNames).map(convertToTuple);
33
32
 
34
33
  for (const [from, to, currentFile] of trackFileIterator) {
35
34
  push(currentFile, {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "redlint",
3
- "version": "4.4.2",
3
+ "version": "5.0.1",
4
4
  "type": "module",
5
5
  "author": "coderaiser <mnemonic.enemy@gmail.com> (https://github.com/coderaiser)",
6
6
  "description": "Lint Filesystem with 🐊Putout",
@@ -46,7 +46,6 @@
46
46
  "chalk": "^5.3.0",
47
47
  "ci-info": "^4.0.0",
48
48
  "enquirer": "^2.4.1",
49
- "es-iterator-helpers": "^1.2.1",
50
49
  "fullstore": "^3.0.0",
51
50
  "ignore": "^7.0.0",
52
51
  "obligator": "^3.0.0",
@@ -66,7 +65,7 @@
66
65
  ],
67
66
  "devDependencies": {
68
67
  "@putout/eslint-flat": "^3.0.0",
69
- "@putout/test": "^14.0.0",
68
+ "@putout/test": "^15.0.0",
70
69
  "c8": "^10.1.2",
71
70
  "eslint": "^9.0.0",
72
71
  "eslint-plugin-putout": "^29.0.2",
@@ -79,7 +78,7 @@
79
78
  },
80
79
  "license": "MIT",
81
80
  "engines": {
82
- "node": ">=20"
81
+ "node": ">=22"
83
82
  },
84
83
  "publishConfig": {
85
84
  "access": "public"