diff --git a/CHANGELOG.md b/CHANGELOG.md index b20a37e..97cdd41 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,12 +5,16 @@ All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog][keepachangelog], and this project adheres to [Semantic Versioning][semver]. -## [Unreleased] +## [2.0.6] - 2023-11-07 ### Added - Support of `!#else` preprocessor directive [#185]. +### Changed + +- Updated [@adguard/agtree] to `v1.1.7`. + ## [2.0.5] - 2023-09-07 @@ -146,7 +150,8 @@ The format is based on [Keep a Changelog][keepachangelog], and this project adhe - Initial version of the linter and CLI. - Initial version of the adblock rule parser. -[Unreleased]: https://github.com/AdguardTeam/AGLint/compare/v2.0.5...HEAD + +[2.0.6]: https://github.com/AdguardTeam/AGLint/compare/v2.0.5...v2.0.6 [2.0.5]: https://github.com/AdguardTeam/AGLint/compare/v2.0.4...v2.0.5 [2.0.4]: https://github.com/AdguardTeam/AGLint/compare/v2.0.3...v2.0.4 [2.0.3]: https://github.com/AdguardTeam/AGLint/compare/v2.0.1...v2.0.3 diff --git a/package.json b/package.json index c24abfb..550c479 100644 --- a/package.json +++ b/package.json @@ -85,7 +85,7 @@ "typescript": "^4.9.5" }, "dependencies": { - "@adguard/agtree": "^1.1.5", + "@adguard/agtree": "^1.1.7", "@inquirer/checkbox": "^1.3.7", "@inquirer/select": "^1.2.7", "chalk": "4.1.2", diff --git a/test/linter/rules/invalid-modifiers.test.ts b/test/linter/rules/invalid-modifiers.test.ts index c7a039c..022c21a 100644 --- a/test/linter/rules/invalid-modifiers.test.ts +++ b/test/linter/rules/invalid-modifiers.test.ts @@ -249,6 +249,18 @@ describe('invalid-modifiers', () => { }, }, }, + { + actual: '||example.com^$referrerpolicy=no-origin', + expected: { + rule: 'invalid-modifiers', + severity: 2, + message: "Invalid Referrer-Policy directive for the modifier: 'referrerpolicy': 'no-origin'", + position: { + startColumn: 15, + endColumn: 39, + }, + }, + }, ]; test.each(invalidCases)('$actual', ({ actual, expected }) => { diff --git a/yarn.lock b/yarn.lock index e497578..d420e59 100644 --- a/yarn.lock +++ b/yarn.lock @@ -2,10 +2,10 @@ # yarn lockfile v1 -"@adguard/agtree@^1.1.5": - version "1.1.5" - resolved "https://registry.yarnpkg.com/@adguard/agtree/-/agtree-1.1.5.tgz#d3ebcad00a24ac1ee1675722daaff42748965f0b" - integrity sha512-On8UwTPhvJVm84i/Zz926pFyMH/V34dLDNeAY5pb+78d+GcDfFl59o79sUSRCgjjNcxmjtj84KD+dl8aDEx35Q== +"@adguard/agtree@^1.1.7": + version "1.1.7" + resolved "https://registry.yarnpkg.com/@adguard/agtree/-/agtree-1.1.7.tgz#0bafee0396da704958ba6014ad83565e57c5b279" + integrity sha512-xol2aSim0BYnxCk/OULE3qXFToSnadNsl4q6DDjhHkXvKTr0Y6hnfq4Ub3BGgEpyzGYYkN37BDz8IEUDdpRyew== dependencies: "@adguard/ecss-tree" "^1.0.8" "@adguard/scriptlets" "^1.9.61"