v4.0.0-beta
Pre-release
Pre-release
danielmorell
released this
18 Jan 16:45
·
84 commits
to master
since this release
This beta release of 4.0.0 fixes the psr/log v3.0 issue as well as adds a lot of typing improvements to the public interfaces and methods.
With the update to psr/log v3 Rollbar::log()
, and other logging methods defined in the psr/log interface now return void
. If you still need the Response
return value from those methods, you can now use the new Rollbar::report()
method which returns Response
.
What's Changed
Added
- PHP 8 language level mitigations, add typehints by @Chris8934 in #569.
- Added support for
psr/log
v3 by @danielmorell in #577. - Added the
Rollbar::report()
andRollbarLogger::report()
methods to continue to supportResponse
return type requirements after upgrading to psr/log v3 by @danielmorell in #577. - Added comments and type annotations to the
EncodedPayload
class and payload interfaces by @danielmorell in #581. - Added typing / comments to
Rollbar
andRollbarLogger
classes by @danielmorell in #585. - Added required public methods to the
DataBuilderInterface
by @danielmorell in #586. - Added typing / comments to the
ResponseHandlerInterface
by @danielmorell in #588. - Added typing / comments to the
ScrubberInterface
andScrubber
class by @danielmorell in #591. - Added typing / comments to the
FilterInterface
by @danielmorell in #587. - Added typing / comments to the
SenderInterface
by @danielmorell in #592.
Changed
- Renamed
IStrategy
toStrategyInterface
updatedTruncation
and changed custom truncation strategy from requiring class extend theAbstractStrategy
to now require it implementStrategyInterface
by @danielmorell in #580. - Replaced the
FilterInterface::shouldSend()
$accessΤoken
argument with$isUncaught
making it close tocheck_ignore
usage @danielmorell in #587.
Removed
- Removed deprecated log levels and fixed inconsistent use of
Rollbar/LevelFactory
by @danielmorell in #578. - Removed previously deprecated reporting methods from
Rollbar
by @danielmorell in #579. - Removed the
null
return type fromTransformerInterface::getPayload()
by @danielmorell in #593.
Fixed
- Fixed call of method name changed in 8fac418 by @danielmorell in #583.
- Fixed #461 Added support for
psr/log
context exception by @danielmorell in #582. - Fixed #469 Added
requireAccessToken()
method toSenderInterface
by @danielmorell in #595.
New Contributors
- @paulserraino made their first contribution in #584
Full Changelog: v3.1.4...v4.0.0-beta