Releases: gmponos/monolog-slack
Releases · gmponos/monolog-slack
v2.1.0
v2.0.0
v2.0.0-RC1
Changes
- [BC] Minimum required version is PHP 7.2
- [BC] Minimum required version is monolog 2.0
- [BC] Remove custom Client implementation. Since PSR-18 exists I decided to use a standard client instead of a custom implementation.
- Everything under
Webthink\MonologSlack\Utility
has been removedWhatFailureGroupHandler - SlackWebhookHandler only accepts a
Psr\Http\Client\ClientInterface
- Everything under
- [BC] The
SlackWebhookHandler
previously was silently failing in case the client was throwing an exception. This behaviour has changed.
if you still want the handler to fail silently you will have to wrap it with theWhatFailureGroupHandler
of monolog - [BC] All classes are made final.
v1.3.0
v1.2.0
Deprecated
- Deprecated the custom clients that implement
Webthink\MonologSlack\Utility\ClientInterface
. Use a PSR-18 instead. - Passing
$username
as argument toSlackWebhookHandler
is deprecated and it will be removed on 2.x. Instead initialize
your own own formatter and set it to the handler. - Passing
$useCustomEmoji
as argument toSlackWebhookHandler
is deprecated and it will be removed on 2.x. Instead initialize
your own own formatter and set it to the handler.
Changes
- Allow the constructor of
SlackWebhookHandler
to pass as levelstring|int
. Before it was onlyint
. - Allow the constructor of
SlackWebhookHandler
to pass a PSR-18 HTTP client. - Use as default HTTP client an adapter of
php-http/guzzle6-adapter
instead of guzzle client. - Added in
SlackLineFormatter
a third parameter to allow passing a custom format of the text. - Removed from the default format of
SlackLineFormatter
the date since it is recorded on slack when the message is sent.
v1.1.0
Changed
- Added version PHP 7.3 to travis.
- Require version 1.24 as minimum version of monolog. Unfortunately monolog introduced a BC on Seldaek/monolog#808
BC Notice: If you are extending any of the Monolog's Formatters' normalize method, make sure you add the new $depth = 0 argument to your function signature to avoid strict PHP warnings. See #808 for more details.
v1.0.0 - Stable Release
Updated composer description
v0.3.0: Custom clients (#3)
Added
- Added custom clients that implement the interface
Webthink\MonologSlack\Utility\ClientInterface
in order to communicate
with slack. - [BC] Change the constructor of
SlackWebhooHandler
to accept aWebthink\MonologSlack\Utility\ClientInterface
instead of
a guzzle client. If null is passed aWebthink\MonologSlack\Utility\GuzzleClient
is initialized.
v0.2.0
Changed
- Changed the minimum required version of guzzle at composer.json in order to make the package compatible with any version 6 of guzzle.
- Changed the minimum required version of monolog at composer.json in order to make the package compatible with any version 1 of monolog.
- Added return types in many functions.
- Added types at arguments of
SlackWebhookHandler
constructor function. - Interface
SlackFormatterInterface
now extendsFormatterInterface
- [BC] Removed from constructor of
SlackWebhookHandler
the argument$includeContextAndExtra
. Since this is package
is still at zero version we are allowed to do so.