Skip to content

Releases: roadrunner-php/worker

v3.6.2

Choose a tag to compare

@roxblnfk roxblnfk released this 05 May 12:36
8d9905b

What's Changed

  • Update dependencies by @roxblnfk in #40
    • Allow RoadRunner v2025

Full Changelog: v3.6.1...v3.6.2

v3.6.1

Choose a tag to compare

@roxblnfk roxblnfk released this 23 Nov 08:32
dd0571a

What's Changed

New Contributors

Full Changelog: v3.6.0...v3.6.1

v3.6.0

Choose a tag to compare

@msmakouz msmakouz released this 03 Jun 15:34
44c6f37

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

Choose a tag to compare

@msmakouz msmakouz released this 29 Mar 08:08
7c7411a

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

Choose a tag to compare

@msmakouz msmakouz released this 26 Feb 12:07
8efc721

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

Choose a tag to compare

@butschster butschster released this 05 Dec 20:45
53f81c3

What's Changed

New Contributors

Full Changelog: 3.2.0...3.3.0

v3.2.0

Choose a tag to compare

@butschster butschster released this 10 Oct 10:15
88104bf

What's Changed

Full Changelog: 3.1.0...3.2.0

v3.1.0

Choose a tag to compare

@roxblnfk roxblnfk released this 03 Oct 19:16
5c22fab

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

Choose a tag to compare

@butschster butschster released this 14 Apr 09:10
97f966a

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

Choose a tag to compare

@butschster butschster released this 28 Oct 09:37
028adbb

What's Changed

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