This patch release introduces an API improvement to the ClientBuilder for a more streamlined configuration experience.
✨ Enhancements
- Simplified Client Identity Configuration: The
ClientBuildernow 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.0release. They will continue to function as before in thev1.x.xseries to maintain backward compatibility.
📝 Documentation
- The
README.mdand examples have been updated to reflect the newwithClientInfo()method and the removal of theClientInfoobject from direct user configuration.