File tree Expand file tree Collapse file tree 6 files changed +17
-5
lines changed
Expand file tree Collapse file tree 6 files changed +17
-5
lines changed Original file line number Diff line number Diff line change @@ -5,6 +5,14 @@ All notable changes to this project will be documented in this file.
55The format is based on [ Keep a Changelog] ( https://keepachangelog.com/en/1.0.0/ ) ,
66and this project adheres to [ Semantic Versioning] ( https://semver.org/spec/v2.0.0.html ) .
77
8+ ## [ v3.2.2] - 2025-11-28
9+
10+ ### Fixed
11+
12+ - Build on Windows due to incorrect path handling.
13+
14+ [ v3.2.2 ] : https://github.com/AdguardTeam/FiltersCompiler/compare/v3.2.1...v3.2.2
15+
816## [ v3.2.1] - 2025-11-27
917
1018### Fixed
Original file line number Diff line number Diff line change 11{
22 "name" : " @adguard/filters-compiler" ,
3- "version" : " 3.2.1 " ,
3+ "version" : " 3.2.2 " ,
44 "description" : " AdGuard filters compiler" ,
55 "homepage" : " http://adguard.com" ,
66 "type" : " module" ,
Original file line number Diff line number Diff line change 11import path from 'path' ;
2+ import { fileURLToPath } from 'url' ;
23import { setConfiguration , CompatibilityTypes } from '@adguard/tsurlfilter' ;
34
45import { build } from './main/builder' ;
@@ -12,7 +13,7 @@ import { platformsConfig } from './main/platforms-config';
1213// Sets configuration compatibility
1314setConfiguration ( { compatibility : CompatibilityTypes . Corelibs } ) ;
1415
15- const __dirname = path . dirname ( new URL ( import . meta. url ) . pathname ) ;
16+ const __dirname = path . dirname ( fileURLToPath ( import . meta. url ) ) ;
1617
1718const jsonSchemasConfigDir = path . join ( __dirname , './schemas/' ) ;
1819
Original file line number Diff line number Diff line change 22
33import fs from 'fs' ;
44import path from 'path' ;
5+ import { fileURLToPath } from 'url' ;
56import md5 from 'md5' ;
67
78import { FiltersDownloader } from '@adguard/filters-downloader' ;
@@ -17,7 +18,7 @@ import { downloadFile } from './utils/webutils';
1718import { getFilterIdFromDirName } from './utils/utils' ;
1819import { optimizeDomainBlockingRules } from './utils/builder-utils' ;
1920
20- const __dirname = path . dirname ( new URL ( import . meta. url ) . pathname ) ;
21+ const __dirname = path . dirname ( fileURLToPath ( import . meta. url ) ) ;
2122
2223const TEMPLATE_FILE = 'template.txt' ;
2324const FILTER_FILE = 'filter.txt' ;
Original file line number Diff line number Diff line change 11/* eslint-disable global-require */
22import fs from 'fs' ;
33import path from 'path' ;
4+ import { fileURLToPath } from 'url' ;
45import { logger } from './utils/log' ;
56
6- const __dirname = path . dirname ( new URL ( import . meta. url ) . pathname ) ;
7+ const __dirname = path . dirname ( fileURLToPath ( import . meta. url ) ) ;
78
89/**
910 * Each filter, group, tag should have two keys.
Original file line number Diff line number Diff line change 11/* eslint-disable global-require */
22import fs from 'fs' ;
33import path from 'path' ;
4+ import { fileURLToPath } from 'url' ;
45import crypto from 'crypto' ;
56import moment from 'moment' ;
67
@@ -19,7 +20,7 @@ import { convertToUbo } from '../converter';
1920import { getFilterOptimizationConfig } from '../optimization' ;
2021import { RuleMasks } from '../rule/rule-masks' ;
2122
22- const __dirname = path . dirname ( new URL ( import . meta. url ) . pathname ) ;
23+ const __dirname = path . dirname ( fileURLToPath ( import . meta. url ) ) ;
2324
2425const RULES_SEPARATOR = '\r\n' ;
2526let filterIdsPool = [ ] ;
You can’t perform that action at this time.
0 commit comments