Skip to content

Releases: crowdsecurity/php-common

3.0.0

31 Jan 00:17
3ebd0c5
Compare
Choose a tag to compare

Compare with previous release

Changed

  • Allow monolog/monolog 3 package
  • Breaking change: ConsoleLog and FileLog does not extend Monolog\Logger anymore as this class became
    final in Monolog 3. They now implement Psr\Log\LoggerInterface directly and use a Monolog\Logger instance internally.
  • Breaking change: FileLog does not rotate log files by default anymore. You can enable it by setting the
    log_rotator configuration to true.

2.4.0

16 Jan 02:33
3bb7d50
Compare
Choose a tag to compare

Compare with previous release

Changed

  • Allow Symfony 7 packages

2.3.2

18 Oct 02:43
dd63ec2
Compare
Choose a tag to compare

Compare with previous release

Fixed

  • Remove Content-Length header during file_get_contents call for AppSec request
  • Remove Host header during file_get_contents call for AppSec request only

2.3.1

16 Oct 05:14
639afd3
Compare
Choose a tag to compare

Compare with previous release

Fixed

  • Remove Host header for file_get_contents request handler
  • Check status code before trying to decode the response body

2.3.0

04 Oct 01:48
536bb85
Compare
Choose a tag to compare

Compare with previous release

Added

  • Add AppSec requests support

Changed

  • Throws a CrowdSec\Common\Client\TimeoutException for curl and file_get_contents request handlers when a
    timeout is detected

2.2.0

07 Dec 01:36
d47b3ac
Compare
Choose a tag to compare

Compare with previous release

Added

  • Add api_connect_timeout configuration for Curl request handler

2.1.1

12 Jul 02:31
2b46a22
Compare
Choose a tag to compare

Compare with previous release

Fixed

  • Fix scenario regular expression to handle longer name

2.1.0

30 Mar 00:58
71f10d1
Compare
Choose a tag to compare

Compare with previous release

Added

  • Add no_rotation configuration for FileLog logger

2.0.0

09 Mar 01:11
d3f5095
Compare
Choose a tag to compare

Compare with previous release

Changed

  • Breaking change: If not null, the second param of the AbstractClient::__contruct method must implement
    RequestHandlerInterface
  • Change visibility of RequestHandler/FileGetContents::convertHeadersToString method from private to protected

Added

  • Add ORIGIN_CAPI and ORIGIN_LISTS constants

1.3.0

23 Feb 01:42
a1e6e8a
Compare
Choose a tag to compare

Compare with previous release

Added

  • Add VERSION_REGEX constant