Skip to content

v4.0.0-beta

Pre-release
Pre-release
Compare
Choose a tag to compare
@danielmorell danielmorell released this 18 Jan 16:45
· 77 commits to master since this release
117e4c2

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() and RollbarLogger::report() methods to continue to support Response 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 and RollbarLogger 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 and Scrubber 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 to StrategyInterface updated Truncation and changed custom truncation strategy from requiring class extend the AbstractStrategy to now require it implement StrategyInterface by @danielmorell in #580.
  • Replaced the FilterInterface::shouldSend() $accessΤoken argument with $isUncaught making it close to check_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 from TransformerInterface::getPayload() by @danielmorell in #593.

Fixed

New Contributors

Full Changelog: v3.1.4...v4.0.0-beta