Skip to content

Releases: roadrunner-php/worker

v3.6.0

03 Jun 15:34
44c6f37
Compare
Choose a tag to compare

What's Changed

  • Added getVersion method to the Spiral\RoadRunner\Environment class by @Kaspiman in #37

New Contributors

Full Changelog: v3.5.0...v3.6.0

v3.5.0

29 Mar 08:08
7c7411a
Compare
Choose a tag to compare

What's Changed

  • Added the codec parameter to the worker's respond method by @msmakouz in #36

Full Changelog: v3.4.0...v3.5.0

v3.4.0

26 Feb 12:07
8efc721
Compare
Choose a tag to compare

What's Changed

  • Added the getWorkers and countWorkers methods to the Spiral\RoadRunner\WorkerPool class. These methods allow retrieval of information about the plugin workers in the pool and their count by @FluffyDiscord and @msmakouz in #34, #35
  • Fixed documentation links by @msmakouz in #33

New Contributors

Full Changelog: 3.3.0...v3.4.0

v3.3.0

05 Dec 20:45
53f81c3
Compare
Choose a tag to compare

What's Changed

New Contributors

Full Changelog: 3.2.0...3.3.0

v3.2.0

10 Oct 10:15
88104bf
Compare
Choose a tag to compare

What's Changed

Full Changelog: 3.1.0...3.2.0

v3.1.0

03 Oct 19:16
5c22fab
Compare
Choose a tag to compare

What's Changed

  • Implemented Ping-Pong strategy for worker with blocking relay when data is streaming by @roxblnfk in #30

Full Changelog: 3.0.0...3.1.0

v3.0.0

14 Apr 09:10
97f966a
Compare
Choose a tag to compare

Features

  • Upgraded to PHP 8.1
  • Upgraded to PHPUnit 10
  • Upgraded to Psalm 5
  • Added reusable Gh Actions
  • Added metapackage spiral/roadrunner:^2023

Breaking Changes

Spiral\RoadRunner\WorkerInterface Changes

It has been updated with two new methods:

  • hasPayload(string $class = null): bool
  • getPayload(string $class = null): ?Payload

If your code uses Spiral\RoadRunner\WorkerInterface, you will need to update it to include these new methods.

Spiral\RoadRunne\Worker Changes

It has been updated to include a new constructor argument, allowing for a custom logger to be set.

The constructor signature is now:

public function __construct(
    private readonly RelayInterface $relay,
    bool $interceptSideEffects = true,
    private readonly LoggerInterface $logger = new Logger(),  // <====== new argument
) {
   ...
}

Spiral\RoadRunner\Payload Changes

It has been marked as internal, which means that it can no longer be used directly by user code.

Additionally, the body and header properties have been marked as readonly, which means that they cannot be modified once set.

Spiral\RoadRunner\Exception\RoadRunnerException Changes

It has been marked as final, which means that it can no longer be extended by user code. If your code extends it, you will need to update it to handle exceptions in a different way.

Please note that these changes may require updates to your existing code, so be sure to review the breaking changes before upgrading to version 3.0.0.

Full Changelog: v2.3.0...3.0.0

v2.3.0

28 Oct 09:37
028adbb
Compare
Choose a tag to compare

What's Changed

Full Changelog: v2.2.0...v2.3.0

v2.2.0

22 Mar 11:05
97399e1
Compare
Choose a tag to compare

What's Changed

New Contributors

Full Changelog: v2.1.5...v2.2.0

v2.1.5

30 Nov 08:57
2247e37
Compare
Choose a tag to compare
  • added MODE_TCP constant