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,SnapshotandStatusservices - Add all missing endpoints to
Agent,CatalogandHealthservices - Whitelist all documented options (blocking queries, consistency modes,
filtering, ...) inAgent,Catalog,Health,KVandSessionservices - Support multi-valued options (e.g.
['tag' => ['v1', 'primary']]) - Allow the
dcoption on all endpoints not local to the agent - Read the ACL token from the
CONSUL_HTTP_TOKENenvironment variable
Bug fixes
- Fix
MultiSemaphorereusing the metadata of a previous resource when acquiring many resources - Fix
Session::create()(and soLockHandler) when called without arguments - Fix
Agent::join()andAgent::forceLeave()HTTP method (PUTinstead ofGET)
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