Commit ed5c6d3
committed
feat: Implement RuleDeduplicator for deduplication and metadata merging
- Added RuleDeduplicator class to process and deduplicate rules.
- Introduced ExtendedRuleMetadata interface to extend existing metadata.
- Implemented methods for stripping rules, processing duplicates, and merging metadata.
- Enhanced logging and error handling throughout the deduplication process.
- Added statistics tracking for deduplication results.
feat: Create CLI exports for configuration and types
- Added cli-exports.ts to explicitly re-export necessary functions and types for CLI usage.
- Included types for FilterMetaConfig and ExportOptions.
feat: Define configuration structures for meta, paths, and performance
- Created meta.ts to define FilterMetaConfig and default metadata.
- Implemented paths.ts for managing input/output paths.
- Established performance.ts for performance-related configurations.
feat: Develop advanced filter formatting and exporting functionality
- Created advanced-formatter.ts for generating formatted filter lists.
- Implemented formatters for various rule types including hosts, dnsmasq, and unbound.
- Added header generation for different filter formats in headers.ts.
- Developed index.ts for exporting formatted rules based on specified options.
refactor: Enhance rule filtering logic for DNS and browser rules
- Improved ruleFilters.ts to filter rules based on type and modifiers.
- Added functions to filter out DNS rules and browser-only rules.
chore: Update types for better structure and clarity
- Expanded SupportedFormat and FilterListMetadata interfaces in types.ts.
- Re-exported RuleStore types with explicit file extensions for clarity.1 parent 5438d6b commit ed5c6d3
22 files changed
Lines changed: 1081 additions & 5827 deletions
File tree
- src
- config
- export
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
| 1 | + | |
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
| |||
90 | 90 | | |
91 | 91 | | |
92 | 92 | | |
93 | | - | |
| 93 | + | |
94 | 94 | | |
95 | 95 | | |
96 | 96 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
| 1 | + | |
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
5 | | - | |
| 5 | + | |
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
| |||
21 | 21 | | |
22 | 22 | | |
23 | 23 | | |
24 | | - | |
| 24 | + | |
25 | 25 | | |
26 | 26 | | |
27 | | - | |
| 27 | + | |
28 | 28 | | |
29 | 29 | | |
30 | | - | |
| 30 | + | |
31 | 31 | | |
32 | 32 | | |
33 | 33 | | |
34 | 34 | | |
35 | 35 | | |
36 | | - | |
| 36 | + | |
37 | 37 | | |
38 | 38 | | |
39 | 39 | | |
| |||
297 | 297 | | |
298 | 298 | | |
299 | 299 | | |
300 | | - | |
| 300 | + | |
301 | 301 | | |
302 | 302 | | |
303 | | - | |
| 303 | + | |
304 | 304 | | |
305 | 305 | | |
306 | 306 | | |
| |||
417 | 417 | | |
418 | 418 | | |
419 | 419 | | |
420 | | - | |
| 420 | + | |
421 | 421 | | |
422 | 422 | | |
423 | 423 | | |
| |||
0 commit comments