Skip to content

v5.4.0

Latest

Choose a tag to compare

@lyrixx lyrixx released this 29 Sep 14:56
· 2 commits to main since this release

This release covers the whole Consul CE HTTP API and modernizes the code base.

New features

  • Add ACL, Config, Connect, Coordinate, DiscoveryChain, Event,
    Operator, Peering, PreparedQuery, Snapshot and Status services
  • Add all missing endpoints to Agent, Catalog and Health services
  • Whitelist all documented options (blocking queries, consistency modes,
    filtering, ...) in Agent, Catalog, Health, KV and Session services
  • Support multi-valued options (e.g. ['tag' => ['v1', 'primary']])
  • Allow the dc option on all endpoints not local to the agent
  • Read the ACL token from the CONSUL_HTTP_TOKEN environment variable

Bug fixes

  • Fix MultiSemaphore reusing the metadata of a previous resource when acquiring many resources
  • Fix Session::create() (and so LockHandler) when called without arguments
  • Fix Agent::join() and Agent::forceLeave() HTTP method (PUT instead of GET)

Requirements

Dependency 5.3 5.4
PHP ≥ 8.1 ≥ 8.2
symfony/http-client 5.4, 6.4, 7.x, 8.x 6.4, 7.4, 8.1+
psr/log 1.x, 2.x, 3.x 2.x, 3.x

Internals

  • Modernize the code base (readonly classes and properties, constructor property promotion, ...)
  • Switch the test suite from symfony/phpunit-bridge to PHPUnit 11+
  • Rework the README

What's Changed

Full Changelog: v5.3.0...v5.4.0