From 18cfbe017bdffdb43a3a0ae83995ce3c417a0ac9 Mon Sep 17 00:00:00 2001 From: Sys <28715512+sys-001@users.noreply.github.com> Date: Sat, 16 Apr 2022 16:37:50 +0200 Subject: [PATCH] Added dev dependencies and bot API 6.0 support --- CHANGELOG.md | 7 ++++++- composer.json | 5 +++++ src/Common/SchemaExtractor.php | 1 - src/Constants/Versions.php | 4 +++- 4 files changed, 14 insertions(+), 3 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 89ec363..9f055ed 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -8,6 +8,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ## [Unreleased] +## [4.0.1] - 2022-04-16 +### Added +- Support for bot API 6.0.0 + ## [4.0.0] - 2022-04-15 ### Added - Support for bot API 5.6.0 and 5.7.0 @@ -165,7 +169,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ### Fixed - The parser is now more reliable, it no longer needs to be updated at every bot API release! -[Unreleased]: https://github.com/Sysbot-org/tgscraper/compare/4.0...HEAD +[Unreleased]: https://github.com/Sysbot-org/tgscraper/compare/4.0.1...HEAD +[4.0.0]: https://github.com/Sysbot-org/tgscraper/compare/4.0...4.0.1 [4.0.0]: https://github.com/Sysbot-org/tgscraper/compare/3.0.3...4.0 [3.0.3]: https://github.com/Sysbot-org/tgscraper/compare/3.0.2...3.0.3 [3.0.2]: https://github.com/Sysbot-org/tgscraper/compare/3.0.1...3.0.2 diff --git a/composer.json b/composer.json index 6649d28..aba7ab5 100644 --- a/composer.json +++ b/composer.json @@ -13,6 +13,11 @@ "symfony/yaml": "^6.0", "voku/simple_html_dom": "^4.7" }, + "require-dev": { + "phpunit/phpunit": "^9.5", + "phpstan/phpstan": "^1.2", + "vimeo/psalm": "^4.15" + }, "suggest": { "sysbot/tgscraper-cache": "To speed up schema fetching and generation." }, diff --git a/src/Common/SchemaExtractor.php b/src/Common/SchemaExtractor.php index a978784..7ec3617 100644 --- a/src/Common/SchemaExtractor.php +++ b/src/Common/SchemaExtractor.php @@ -7,7 +7,6 @@ use Exception; use GuzzleHttp\Client; use GuzzleHttp\Exception\GuzzleException; use InvalidArgumentException; -use JetBrains\PhpStorm\ArrayShape; use OutOfBoundsException; use Psr\Log\LoggerInterface; use RuntimeException; diff --git a/src/Constants/Versions.php b/src/Constants/Versions.php index b938899..5a100f1 100644 --- a/src/Constants/Versions.php +++ b/src/Constants/Versions.php @@ -42,8 +42,9 @@ class Versions public const V550 = '5.5.0'; public const V560 = '5.6.0'; public const V570 = '5.7.0'; + public const V600 = '6.0.0'; public const LATEST = 'latest'; - public const STABLE = self::V570; + public const STABLE = self::V600; public const URLS = [ self::V100 => 'https://web.archive.org/web/20150714025308id_/https://core.telegram.org/bots/api/', @@ -84,6 +85,7 @@ class Versions self::V550 => 'https://web.archive.org/web/20211211002657id_/https://core.telegram.org/bots/api', self::V560 => 'https://web.archive.org/web/20220105131529id_/https://core.telegram.org/bots/api', self::V570 => 'https://web.archive.org/web/20220206103922id_/https://core.telegram.org/bots/api', + self::V600 => 'https://web.archive.org/web/20220416143511id_/https://core.telegram.org/bots/api', self::LATEST => 'https://core.telegram.org/bots/api' ];