Skip to content

Commit 2a9a280

Browse files
committed
AG-52411 update agtree to 4.0.4
Squashed commit of the following: commit 73ad802 Author: slvvko <v.leleka@adguard.com> Date: Thu Mar 26 13:44:49 2026 -0400 update changelog commit 754a180 Author: slvvko <v.leleka@adguard.com> Date: Thu Mar 26 13:44:14 2026 -0400 update deps commit 05f3d38 Author: slvvko <v.leleka@adguard.com> Date: Wed Mar 25 20:00:36 2026 -0400 add tests
1 parent 6ad6b3e commit 2a9a280

4 files changed

Lines changed: 45 additions & 18 deletions

File tree

CHANGELOG.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,15 @@ All notable changes to this project will be documented in this file.
55
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
66
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
77

8+
## [v3.2.8] - 2026-03-26
9+
10+
### Changed
11+
12+
- Updated [@adguard/agtree] to v4.0.4.
13+
- Updated [@adguard/tsurlfilter] to v4.0.5.
14+
15+
[v3.2.8]: https://github.com/AdguardTeam/FiltersCompiler/compare/v3.2.7...v3.2.8
16+
817
## [v3.2.7] - 2026-03-25
918

1019
### Fixed

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,15 +28,15 @@
2828
"node": ">=22"
2929
},
3030
"dependencies": {
31-
"@adguard/agtree": "^4.0.3",
31+
"@adguard/agtree": "^4.0.4",
3232
"@adguard/css-tokenizer": "^1.2.0",
3333
"@adguard/ecss-tree": "^2.0.1",
3434
"@eslint/css-tree": "3.6.6",
3535
"@adguard/extended-css": "^2.1.1",
3636
"@adguard/filters-downloader": "^2.4.0",
3737
"@adguard/logger": "^2.0.0",
3838
"@adguard/scriptlets": "^2.3.1",
39-
"@adguard/tsurlfilter": "^4.0.4",
39+
"@adguard/tsurlfilter": "^4.0.5",
4040
"ajv": "^8.17.1",
4141
"child_process": ">=1.0.2",
4242
"jsdom": "^21.1.1",

pnpm-lock.yaml

Lines changed: 16 additions & 16 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

test/converter.test.js

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -347,6 +347,24 @@ describe('converter', () => {
347347
expect(actual[0]).toBe('example.com$$script:contains(advertisement)');
348348
});
349349

350+
describe('converts [tag-content] with escaped double quotes', () => {
351+
it.each([
352+
{
353+
// `[tag-content]` with `""` escaped double quotes - simple case
354+
actual: '$$div[tag-content="a""b"]',
355+
expected: ['$$div:contains(a"b)'],
356+
},
357+
{
358+
// `[tag-content]` with `""` escaped double quotes - multiple
359+
actual: '$$script[tag-content="{""zone_id"":"""]',
360+
expected: ['$$script:contains({"zone_id":")'],
361+
},
362+
])('$actual', ({ actual, expected }) => {
363+
const result = convertRulesToAdgSyntax([actual]);
364+
expect(result).toEqual(expected);
365+
});
366+
});
367+
350368
describe('converts html rules with pseudo-classes', () => {
351369
it.each([
352370
'example.com$$script:contains(eval(function(p,a,c,k,e,d))',

0 commit comments

Comments
 (0)