Skip to content

2.0.0

Choose a tag to compare

@GrahamCampbell GrahamCampbell released this 20 Jul 14:02
· 3 commits to 2.0 since this release
d839161
  • Drop support for PHP 7.2 and 7.3
  • Require guzzlehttp/guzzle ^8.0, guzzlehttp/promises ^3.0, and guzzlehttp/psr7 ^3.0
  • Escape unsafe command names and previous messages in generated command exceptions
  • Reject native PHP serialization of ServiceClient
  • Require custom implementations and subclasses of public command APIs to match native method signatures
  • Require service client response transformers to return ResultInterface values
  • Require command collections to be iterable and reject single commands in executeAll() and executeAllAsync()
  • Require custom middleware, transformers, and executeAll() callbacks to accept exact argument types instead of relying on scalar coercion
  • Redact credential-bearing command and HTTP arguments from PHP 8.2+ backtraces
  • Preserve requests from PSR-18 request and network exceptions and from Guzzle transfer exceptions when wrapping command failures
  • Allow command exception constructors to accept any previous Throwable
  • Add generic PHPDoc return types to asynchronous service client APIs
  • Improve PHPDoc for command handler stacks, transformer callables, and concurrent command callbacks