Repository navigation
⚠️ Breaking changes
- PHP 8.5+ is required.
- Dependencies:
google/protobuf^5.36 (was ^3.21),grpc/grpc^1.82,flexihash/flexihash^3.0. - Generated gRPC classes moved from the global namespace to
Aternos\Etcd\Proto\…, e.g.\Etcdserverpb\Compare\CompareResult→\Aternos\Etcd\Proto\Etcdserverpb\Compare\CompareResult. The legacy underscore aliases (Compare_CompareResultetc.) were removed. get()returnsnullinstead offalsefor missing keys. The same applies toputIf()/deleteIf()with$returnNewValueOnFailwhen the key does not exist. Checks like=== falsemust be updated.Clientconstructor:$username/$passwordare now?stringand default tonull(wasfalse).- Native parameter, return and property types throughout
src/. Classes extending the clients or implementingClientInterfacemust match the new signatures, andput()now requires astringvalue.
Fixes
put()with$prevKv = trueno longer crashes when the key didn't exist before.getLeaseID(),revokeLeaseID()andrefreshLease()now respect the client timeout, soFailoverClientfails over instead of hanging on unresponsive nodes.- Fixed PHP 8.4 deprecation warnings.
Other changes
- Regenerated the gRPC classes with protoc 36.2.
Full Changelog: v1.5.0...v2.0.0