redlint 6.0.0 → 6.1.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,9 @@
1
+ 2026.02.19, v6.1.0
2
+
3
+ feature:
4
+ - 1199851 redlint: madrun v13.0.0
5
+ - 99a77f5 redlint: remove-files: simplify
6
+
1
7
  2026.02.16, v6.0.0
2
8
 
3
9
  feature:
package/README.md CHANGED
@@ -2,8 +2,8 @@
2
2
 
3
3
  [NPMURL]: https://npmjs.org/package/redlint "npm"
4
4
  [NPMIMGURL]: https://img.shields.io/npm/v/redlint.svg?style=flat&longCache=true
5
- [BuildStatusURL]: https://github.com/putoutjs/printer/actions/workflows/nodejs.yml "Build Status"
6
- [BuildStatusIMGURL]: https://github.com/putoutjs/printer/actions/workflows/nodejs.yml/badge.svg
5
+ [BuildStatusURL]: https://github.com/putoutjs/redlint/actions/workflows/nodejs.yml "Build Status"
6
+ [BuildStatusIMGURL]: https://github.com/putoutjs/redlint/actions/workflows/nodejs.yml/badge.svg
7
7
  [LicenseURL]: https://tldrlegal.com/license/mit-license "MIT License"
8
8
  [LicenseIMGURL]: https://img.shields.io/badge/license-MIT-317BF9.svg?style=flat
9
9
  [CoverageURL]: https://coveralls.io/github/putoutjs/printer?branch=master
@@ -3,7 +3,7 @@ import {operator} from 'putout';
3
3
 
4
4
  const {removeFile, getFilename} = operator;
5
5
 
6
- const getRemovables = (a, b) => Array.from(new Set(a).symmetricDifference(new Set(b)));
6
+ const difference = (a, b) => new Set(a).difference(new Set(b));
7
7
  const isEqual = (a, b) => a.filter(Boolean).length === b.filter(Boolean).length;
8
8
 
9
9
  export const report = (filePath) => {
@@ -25,7 +25,7 @@ export const scan = (path, {push, trackFile, options}) => {
25
25
  if (isEqual(from, to))
26
26
  return;
27
27
 
28
- const removables = getRemovables(from, to);
28
+ const removables = difference(from, to);
29
29
  const fullNames = getFullNames(dir, removables);
30
30
  const trackFileIterator = trackFile(path, fullNames);
31
31
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "redlint",
3
- "version": "6.0.0",
3
+ "version": "6.1.0",
4
4
  "type": "module",
5
5
  "author": "coderaiser <mnemonic.enemy@gmail.com> (https://github.com/coderaiser)",
6
6
  "description": "Lint Filesystem with 🐊Putout",
@@ -77,7 +77,7 @@
77
77
  "eslint": "^10.0.0",
78
78
  "eslint-plugin-putout": "^31.0.0",
79
79
  "just-kebab-case": "^4.2.0",
80
- "madrun": "^12.0.0",
80
+ "madrun": "^13.0.0",
81
81
  "nodemon": "^3.0.1",
82
82
  "supertape": "^12.0.7"
83
83
  },