fop-cli 4.2.4 → 4.2.6
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/README.md +9 -0
- package/install.js +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -11,6 +11,7 @@ A Rust port of the EasyList FOP tool for sorting and cleaning ad-blocking filter
|
|
|
11
11
|
- **Validation**: Removes invalid/overly-broad rules (TLD-only, too short, etc.)
|
|
12
12
|
- **Git integration**: Commit changes directly to repositories (can be disabled)
|
|
13
13
|
- **easylist_adservers.txt validation**: Ensures rules start with `|` or `/`
|
|
14
|
+
- **:has-text() merging**: Combines rules with same base selector into single regex
|
|
14
15
|
- **Parallel processing**: Uses all CPU cores for faster processing via Rayon
|
|
15
16
|
|
|
16
17
|
## Extended Syntax Support
|
|
@@ -102,6 +103,8 @@ fop -n ~/easylist ~/easyprivacy ~/fanboy-addon
|
|
|
102
103
|
| `--fix-typos` | Fix cosmetic rule typos in all files during sort |
|
|
103
104
|
| `--fix-typos-on-add` | Check cosmetic rule typos in git additions before commit |
|
|
104
105
|
| `--auto-fix` | Auto-fix typos without prompting (use with --fix-typos-on-add) |
|
|
106
|
+
| `--only-sort-changed` | Only process files changed according to git |
|
|
107
|
+
| `--rebase-on-fail` | Auto rebase and retry push if it fails |
|
|
105
108
|
| `--ignore-config` | Ignore .fopconfig file, use only CLI args |
|
|
106
109
|
| `--output` | Output changed files with --changed suffix (no overwrite) |
|
|
107
110
|
| `--check-file=FILE` | Process a single file |
|
|
@@ -183,6 +186,12 @@ fix-typos-on-add = false
|
|
|
183
186
|
# Auto-fix without prompting
|
|
184
187
|
auto-fix = false
|
|
185
188
|
|
|
189
|
+
# Only sort git-changed files (skip unchanged)
|
|
190
|
+
only-sort-changed = false
|
|
191
|
+
|
|
192
|
+
# Auto rebase and retry if push fails
|
|
193
|
+
rebase-on-fail = false
|
|
194
|
+
|
|
186
195
|
# Suppress most output (for CI)
|
|
187
196
|
quiet = false
|
|
188
197
|
|
package/install.js
CHANGED
|
@@ -7,7 +7,7 @@ const path = require('path');
|
|
|
7
7
|
const { execSync } = require('child_process');
|
|
8
8
|
|
|
9
9
|
// Configuration - UPDATE THESE FOR YOUR RELEASE
|
|
10
|
-
const VERSION = '4.2.
|
|
10
|
+
const VERSION = '4.2.6';
|
|
11
11
|
const GITHUB_REPO = 'ryanbr/fop-rs'; // Change to your repo
|
|
12
12
|
const BINARY_NAME = 'fop';
|
|
13
13
|
|