Skip to content

Commit

Permalink
add referrerpolicy modifier support. AG-24994
Browse files Browse the repository at this point in the history
Squashed commit of the following:

commit 55fcbfe
Merge: 7c0f233 24f7c36
Author: Slava Leleka <[email protected]>
Date:   Tue Nov 7 18:20:52 2023 +0200

    merge master into the branch, resolve conflicts

commit 7c0f233
Author: Slava Leleka <[email protected]>
Date:   Tue Nov 7 16:23:45 2023 +0200

    update changelog

commit 1cb0928
Author: Slava Leleka <[email protected]>
Date:   Tue Nov 7 16:23:38 2023 +0200

    add referrerpolicy modifier test

commit 5804edd
Author: Slava Leleka <[email protected]>
Date:   Tue Nov 7 16:23:15 2023 +0200

    update agtree to v1.1.7
  • Loading branch information
slavaleleka committed Nov 7, 2023
1 parent 24f7c36 commit 1931850
Show file tree
Hide file tree
Showing 4 changed files with 24 additions and 7 deletions.
9 changes: 7 additions & 2 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
12 changes: 12 additions & 0 deletions test/linter/rules/invalid-modifiers.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 }) => {
Expand Down
8 changes: 4 additions & 4 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit 1931850

Please sign in to comment.