From f1028ab17a3ff54d7a2018286e1f051d42620391 Mon Sep 17 00:00:00 2001 From: Slava Leleka Date: Fri, 22 Nov 2024 19:26:03 +0300 Subject: [PATCH] prepare adguard-api v3.0.3 Squashed commit of the following: commit 81aab45cf03a4176355c4490657681cafe17b764 Author: Slava Leleka Date: Fri Nov 22 18:18:53 2024 +0200 update changelog for 3.0.3 commit 4f27abcd641c6dea7f279f79e2a8f679aedf592f Author: Slava Leleka Date: Fri Nov 22 18:15:46 2024 +0200 bump patch version commit 6972b7e8fb0a7d46bf90c2b2288f08e800857a46 Author: Slava Leleka Date: Fri Nov 22 18:15:30 2024 +0200 fix changelog markdown --- packages/adguard-api/CHANGELOG.md | 87 +++++++++++++++++-------------- packages/adguard-api/package.json | 2 +- 2 files changed, 48 insertions(+), 41 deletions(-) diff --git a/packages/adguard-api/CHANGELOG.md b/packages/adguard-api/CHANGELOG.md index 4af9a17660..70f6a4d77e 100644 --- a/packages/adguard-api/CHANGELOG.md +++ b/packages/adguard-api/CHANGELOG.md @@ -5,11 +5,19 @@ All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). +## [3.0.3] - 2024-11-22 + +### Changed + +- Updated [@adguard/tswebextension] to `^2.0.7`. + +[3.0.3]: https://github.com/AdguardTeam/tsurlfilter/releases/tag/adguard-api-v3.0.3 + ## [3.0.2] - 2024-10-14 ### Changed -- Updated `@adguard/tswebextension` to `^2.0.3`. +- Updated [@adguard/tswebextension] to `^2.0.3`. [3.0.2]: https://github.com/AdguardTeam/tsurlfilter/releases/tag/adguard-api-v3.0.2 @@ -17,7 +25,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ### Changed -- Updated `@adguard/tswebextension` to `^2.0.1`. +- Updated [@adguard/tswebextension] to `v2.0.1`. [3.0.1]: https://github.com/AdguardTeam/tsurlfilter/releases/tag/adguard-api-v3.0.1 @@ -25,7 +33,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ### Changed -- Updated `@adguard/tswebextension` to `^2.0.0`. +- Updated [@adguard/tswebextension] to `v2.0.0`. +- `adguardApi.onRequestBlocking` event data now contains `requestId` property. - Filter lists are now stored in a pre-processed format, which makes the engine start more efficiently, since the engine does not need to convert or parse the rules. @@ -35,11 +44,11 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ### Fixed -- listId -1 not found in the storage +- `listId` -1 not found in the storage. ### Changed -- Update `@adguard/tswebextension` to `^1.0.30`. +- Updated [@adguard/tswebextension] to `v1.0.30`. [2.1.5]: https://github.com/AdguardTeam/tsurlfilter/releases/tag/adguard-api-v2.1.5 @@ -47,21 +56,19 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ### Changed -- Update `@adguard/tswebextension` to `^1.0.22`. -- Update `@adguard/filters-downloader` to `^2.2.0`. +- Updated [@adguard/tswebextension] to `v1.0.22`. +- Updated [@adguard/filters-downloader] to `v2.2.0`. [2.1.4]: https://github.com/AdguardTeam/tsurlfilter/releases/tag/adguard-api-v2.1.4 - ## [2.1.3] - 2024-02-15 ### Changed -- Update `@adguard/tswebextension` to `v1.0.14`. +- Updated [@adguard/tswebextension] to `v1.0.14`. [2.1.3]: https://github.com/AdguardTeam/tsurlfilter/releases/tag/adguard-api-v2.1.3 - ## [2.1.2] - 2024-02-08 ### Added @@ -76,7 +83,6 @@ obsoleted filters ids. [2.1.2]: https://github.com/AdguardTeam/tsurlfilter/releases/tag/adguard-api-v2.1.2 - ## [2.1.1] - 2023-12-01 ### Added @@ -92,7 +98,6 @@ obsoleted filters ids. [2.1.1]: https://github.com/AdguardTeam/tsurlfilter/releases/tag/adguard-api-v2.1.1 - ## [2.0.1] - 2023-11-29 ## Added @@ -107,8 +112,8 @@ obsoleted filters ids. Now you can use the `adguardApi.getHandlerMessage` method to get it and manually route messages to both the API and your application. See example in the [documentation](README.md#adguardapigetmessagehandler). - [BREAKING CHANGE] Drop support for UMD modules. Now only ESM is provided. -- Update `@adguard/tswebextension` to `v0.4.8`. -- Update `@adguard/filters-downloader` to `v1.1.23`. +- Updated [@adguard/tswebextension] to `v0.4.8`. +- Updated [@adguard/filters-downloader] to `v1.1.23`. ### Removed @@ -120,29 +125,27 @@ obsoleted filters ids. [2.0.1]: https://github.com/AdguardTeam/tsurlfilter/releases/tag/adguard-api-v2.0.1 - ## [1.3.4] - 2023-09-27 ### Changed -- Update `@adguard/tswebextension` to `v0.3.21` +- Updated [@adguard/tswebextension] to `v0.3.21`. [1.3.4]: https://github.com/AdguardTeam/tsurlfilter/releases/tag/adguard-api-v1.3.4 - ## [1.3.3] - 2023-09-13 ### Changed -- Update `@adguard/tswebextension` to `v0.3.17` +- Updated [@adguard/tswebextension] to `v0.3.17`. [1.3.3]: https://github.com/AdguardTeam/tsurlfilter/releases/tag/adguard-api-v1.3.3 - ## [1.3.2] - 2023-09-08 ### Changed -- Update `@adguard/tswebextension` to `v0.3.16` + +- Updated [@adguard/tswebextension] to `v0.3.16`. [1.3.2]: https://github.com/AdguardTeam/tsurlfilter/releases/tag/adguard-api-v1.3.2 @@ -150,35 +153,32 @@ obsoleted filters ids. ### Changed -- Update `@adguard/tswebextension` to `v0.3.10` +- Updated [@adguard/tswebextension] to `v0.3.10`. [1.3.1]: https://github.com/AdguardTeam/tsurlfilter/releases/tag/adguard-api-v1.3.1 - ## [1.3.0] - 2023-08-10 ### Changed - [BREAKING CHANGE] Assistant script is separated and dynamically injected. You need to provide it in your project. -- Update `@adguard/tswebextension` to `v0.3.9` -- Update `@adguard/assistant` to `v4.3.70` +- Updated [@adguard/tswebextension] to `v0.3.9`. +- Updated [@adguard/assistant] to `v4.3.70`. [1.3.0]: https://github.com/AdguardTeam/tsurlfilter/releases/tag/adguard-api-v1.3.0 - ## [1.2.2] - 2022-12-02 ### Added -- Add source maps for bundles +- Add source maps for bundles. ### Changed -- Fix filter version comparison bug +- Fix filter version comparison bug. [1.2.2]: https://github.com/AdguardTeam/tsurlfilter/releases/tag/adguard-api-v1.2.2 - ## [1.2.0] - 2022-11-25 ### Added @@ -188,7 +188,7 @@ obsoleted filters ids. ### Changed - [BREAKING CHANGE] Global `adguardApi` instance was deleted. - Export `AdguardApi` class instead and create new instance by `AdguardApi.create` static method + Export `AdguardApi` class instead and create new instance by `AdguardApi.create` static method. [1.2.0]: https://github.com/AdguardTeam/tsurlfilter/releases/tag/adguard-api-v1.2.0 @@ -196,23 +196,30 @@ obsoleted filters ids. ### Changed -- Add js rules execution guard for firefox - +- Add JS rules execution guard for Firefox. ## 1.0.0 - 2022-11-03 ### Added -- `adguardApi.getRulesCount` method for getting the number of rules that are currently loaded into the filtering engine -- `adguardApi.onAssistantCreateRule` API for tracking Assistant rule apply -- Typescript support -- Adguard Api can be imported as an npm module +- `adguardApi.getRulesCount` method for getting the number of rules that are currently loaded into the filtering engine. +- `adguardApi.onAssistantCreateRule` API for tracking Assistant rule apply. +- Typescript support. +- Adguard Api can be imported as an npm module. ### Changed -- [BREAKING CHANGE] Optional callback param was removed from `adguardApi.start`, `adguardApi.stop` - and `adguardApi.configure` in favor of promises usage - [BREAKING CHANGE] rename API configuration fields: - - whitelist -> allowlist - - blacklist -> blocklist -- [BREAKING CHANGE] - remove `adguardApi.getAssistantToken` + - whitelist -> allowlist + - blacklist -> blocklist. + +### Removed + +- [BREAKING CHANGE] Optional callback param from `adguardApi.start`, `adguardApi.stop` + and `adguardApi.configure` in favor of promises usage. +- [BREAKING CHANGE] No more `adguardApi.getAssistantToken`. + +[@adguard/tswebextension]: ../tswebextension/CHANGELOG.md + +[@adguard/assistant]: https://github.com/AdguardTeam/AdguardAssistant/blob/master/CHANGELOG.md +[@adguard/filters-downloader]: https://github.com/AdguardTeam/FiltersDownloader/blob/master/CHANGELOG.md diff --git a/packages/adguard-api/package.json b/packages/adguard-api/package.json index ba1e6031b4..654677920e 100644 --- a/packages/adguard-api/package.json +++ b/packages/adguard-api/package.json @@ -1,6 +1,6 @@ { "name": "@adguard/api", - "version": "3.0.2", + "version": "3.0.3", "description": "This is a TypeScript library that implements AdGuard's extension API", "main": "dist/adguard-api.js", "files": [