diff --git a/CHANGELOG.md b/CHANGELOG.md index 69151ab..eab0e71 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -11,6 +11,16 @@ The [public API](https://semver.org/spec/v2.0.0.html#spec-item-1) of this librar As far as possible, we try to adhere to [Symfony guidelines](https://symfony.com/doc/current/contributing/code/bc.html#working-on-symfony-code) when deciding whether a change is a breaking change or not. +--- + +## [3.4.0](https://github.com/crowdsecurity/php-capi-client/releases/tag/v3.4.0) - 2025-01-31 +[_Compare with previous release_](https://github.com/crowdsecurity/php-capi-client/compare/v3.3.0...v3.4.0) + + +### Changed + +- Allow Monolog 3 package (Use `crowdsec/common` `^3.0.0` dependency) + --- ## [3.3.0](https://github.com/crowdsecurity/php-capi-client/releases/tag/v3.3.0) - 2025-01-16 diff --git a/composer.json b/composer.json index a5c5113..d7f1d73 100644 --- a/composer.json +++ b/composer.json @@ -36,11 +36,10 @@ }, "require": { "php": "^7.2.5 || ^8.0", - "crowdsec/common": "^2.4.0", + "crowdsec/common": "^3.0.0", "ext-json": "*", "symfony/config": "^4.4.44 || ^5.4.11 || ^6.0.11 || ^7.2.0", - "symfony/uid": "^5.4.19 || ^6.2.5 || ^7.2.0", - "monolog/monolog": "^1.17 || ^2.1" + "symfony/uid": "^5.4.19 || ^6.2.5 || ^7.2.0" }, "require-dev": { "phpunit/phpunit": "^8.5.30 || ^9.3", diff --git a/src/Constants.php b/src/Constants.php index 1589acf..cc60fa6 100644 --- a/src/Constants.php +++ b/src/Constants.php @@ -85,5 +85,5 @@ class Constants extends CommonConstants /** * @var string The current version of this library */ - public const VERSION = 'v3.3.0'; + public const VERSION = 'v3.4.0'; } diff --git a/tests/Integration/WatcherTest.php b/tests/Integration/WatcherTest.php index cefb6a3..8b2e239 100644 --- a/tests/Integration/WatcherTest.php +++ b/tests/Integration/WatcherTest.php @@ -113,7 +113,7 @@ public function setUp(): void $currentDate = date('Y-m-d'); $this->debugFile = 'debug-' . $currentDate . '.log'; $this->prodFile = 'prod-' . $currentDate . '.log'; - $this->logger = new FileLog(['log_directory_path' => $this->root->url(), 'debug_mode' => true]); + $this->logger = new FileLog(['log_directory_path' => $this->root->url(), 'debug_mode' => true, 'log_rotator' => true]); } public function requestHandlerProvider(): array diff --git a/tests/Unit/WatcherTest.php b/tests/Unit/WatcherTest.php index b76f905..7a4fa26 100644 --- a/tests/Unit/WatcherTest.php +++ b/tests/Unit/WatcherTest.php @@ -1434,7 +1434,7 @@ public function testBuildSimpleSignal() ); // Test 3 - $startTime = new \DateTime('1979-03-06 10:55:28'); + $startTime = (new \DateTime('1979-03-06 10:55:28'))->setTimezone(new \DateTimeZone('UTC')); $signal = $client->buildSimpleSignalForIp('1.2.3.4', TestConstants::SCENARIOS[0], $startTime); $signalCreated = new \DateTime($signal['created_at']); $signalCreatedTimestamp = $signalCreated->getTimestamp();