fop-cli 4.2.5 → 4.2.7
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 +13 -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
|
|
@@ -99,9 +100,12 @@ fop -n ~/easylist ~/easyprivacy ~/fanboy-addon
|
|
|
99
100
|
| `--git-message=` | Git commit message (skip interactive prompt) |
|
|
100
101
|
| `--create-pr[=TITLE]` | Create PR branch instead of committing to current branch |
|
|
101
102
|
| `--git-pr-branch=NAME` | Base branch for PR (default: auto-detect main/master) |
|
|
103
|
+
| `--pr-show-changes` | Include rule changes (combines, merges, typos) in PR body |
|
|
102
104
|
| `--fix-typos` | Fix cosmetic rule typos in all files during sort |
|
|
103
105
|
| `--fix-typos-on-add` | Check cosmetic rule typos in git additions before commit |
|
|
104
106
|
| `--auto-fix` | Auto-fix typos without prompting (use with --fix-typos-on-add) |
|
|
107
|
+
| `--only-sort-changed` | Only process files changed according to git |
|
|
108
|
+
| `--rebase-on-fail` | Auto rebase and retry push if it fails |
|
|
105
109
|
| `--ignore-config` | Ignore .fopconfig file, use only CLI args |
|
|
106
110
|
| `--output` | Output changed files with --changed suffix (no overwrite) |
|
|
107
111
|
| `--check-file=FILE` | Process a single file |
|
|
@@ -171,6 +175,9 @@ file-extensions = txt
|
|
|
171
175
|
# Create PR branch instead of committing
|
|
172
176
|
create-pr =
|
|
173
177
|
|
|
178
|
+
# Include rule changes in PR body
|
|
179
|
+
pr-show-changes = false
|
|
180
|
+
|
|
174
181
|
# Base branch for PR (default: auto-detect)
|
|
175
182
|
git-pr-branch =
|
|
176
183
|
|
|
@@ -183,6 +190,12 @@ fix-typos-on-add = false
|
|
|
183
190
|
# Auto-fix without prompting
|
|
184
191
|
auto-fix = false
|
|
185
192
|
|
|
193
|
+
# Only sort git-changed files (skip unchanged)
|
|
194
|
+
only-sort-changed = false
|
|
195
|
+
|
|
196
|
+
# Auto rebase and retry if push fails
|
|
197
|
+
rebase-on-fail = false
|
|
198
|
+
|
|
186
199
|
# Suppress most output (for CI)
|
|
187
200
|
quiet = false
|
|
188
201
|
|
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.7';
|
|
11
11
|
const GITHUB_REPO = 'ryanbr/fop-rs'; // Change to your repo
|
|
12
12
|
const BINARY_NAME = 'fop';
|
|
13
13
|
|