Skip to content

Commit

Permalink
Updated CHANGELOG, README, and version for v4.0.0-beta
Browse files Browse the repository at this point in the history
  • Loading branch information
danielmorell committed Jan 18, 2023
1 parent dc89117 commit c5fd934
Show file tree
Hide file tree
Showing 3 changed files with 64 additions and 7 deletions.
54 changes: 54 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,60 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

## [Unreleased]

## [4.0.0-beta]
### Added
* PHP 8 language level mitigations, add typehints by @Chris8934 in #569.
* Added support for `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
* 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 to `SenderInterface` by
@danielmorell in #595.

## [3.1.4] - 2022-11-18
This version adds a catch during the serialization process to stop serializaiton
errors from causing reports not to be sent to rollbar.
### Added
* Error catching error during serialization by @stephpy in #576

## [3.1.3] - 2022-05-23
This release patches several bugs.
### Added
* Added Safer `parse_str()` usage by @tanakahisateru in #566
### Fixed
* Fixed comment line number in tests by @matt-h in #563
* Fixed rollbar/rollbar-php-laravel#136 try using `__serialize` when obj
implements `\Serializable` by @pcoutinho in #567.
* Fixed error suppressor context detection for PHP 8 by @tanakahisateru in #565
* Fixed #571 added `null` check on `$filename` by @danielmorell in #572
* Fixed bug in tests on local machine (mac m1) by @Chris53897 in #568

## [3.1.2] - 2022-03-30
This release is a patch to fix a regression in functionality that was introduced
in v3.0.0.
Expand Down
15 changes: 9 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,11 +35,12 @@ From the Settings > Project Access Token menu, click Create New Access Token.
Copy the `post_client_item` value and paste it into the code below.

```php
require 'vendor/autoload.php'; // composer require rollbar/rollbar:^2
require 'vendor/autoload.php'; // composer require rollbar/rollbar

\Rollbar\Rollbar::init(
[ 'access_token' => '***', 'environment' => 'development' ]
);
\Rollbar\Rollbar::init([
'access_token' => '***',
'environment' => 'development',
]);
```

For detailed usage instructions and configuration reference, refer to our
Expand All @@ -63,7 +64,7 @@ For detailed usage instructions and configuration reference, refer to our

Major releases of this library support major versions of PHP, as follows:

* For PHP 8, choose the `master` branch.
* For PHP 8, choose the `4.x` or `3.x` branch.
* For PHP 7, choose a `2.x` release.
* For PHP 5, choose a `1.x` release.

Expand All @@ -72,7 +73,9 @@ composer:

```sh
# for PHP 8 compatibility
$ composer require rollbar/rollbar:dev-master
$ composer require rollbar/rollbar:^4
# or
$ composer require rollbar/rollbar:^3

# for PHP 7 compatibility
$ composer require rollbar/rollbar:^2
Expand Down
2 changes: 1 addition & 1 deletion src/Payload/Notifier.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
class Notifier implements SerializerInterface
{
const NAME = "rollbar-php";
const VERSION = "3.1.2";
const VERSION = "4.0.0-beta";

use UtilitiesTrait;

Expand Down

0 comments on commit c5fd934

Please sign in to comment.