This patch release introduces an API improvement to the ClientBuilder
for a more streamlined configuration experience.
✨ Enhancements
- Simplified Client Identity Configuration: The
ClientBuilder
now features a new methodwithClientInfo(string $name, string $version)
. This single method replaces the previous separatewithName(string $name)
andwithVersion(string $version)
methods for setting your client application's identity. This makes the builder API slightly more concise.
⚠️ Deprecations
- The methods
ClientBuilder::withName(string $name)
andClientBuilder::withVersion(string $version)
are now deprecated. - Please update your code to use the new
ClientBuilder::withClientInfo(string $name, string $version)
method. - The deprecated methods will be removed in a future
v2.0.0
release. They will continue to function as before in thev1.x.x
series to maintain backward compatibility.
📝 Documentation
- The
README.md
and examples have been updated to reflect the newwithClientInfo()
method and the removal of theClientInfo
object from direct user configuration.