Release 8.0.0-RC1
This the first release candidate for 8.0.0 it contains some new features and changes with the previous 7.x Elastic PHP client.
Changes
- the
ConnectionPoolnamespace has been renamed inNodePool, consequently all theConnectionclasses has been renamed inNode - the previous Apache 2.0 LICENSE has been changed in MIT
New features
- added the usage of HTTPlug library to autodiscovery PSR-18 client and
HttpAsyncClientinterface using Promise. - added the
Trasnport::sendAsyncRequest(RequestInterface $request): Promiseto send a PSR-7 request using asynchronous request - added the
Transport::setAsyncClient(HttpAsyncClient $asyncClient)andTransport::getAsyncClient()functions. If the PSR-18 client already implements theHttpAsyncClientinterface you don't need to use thesetAsyncClient()function, it will discovered automatically - added the
Transport::setRetries()function to specify the number of HTTP request retries to apply. If the HTTP failures exceed the number of retries the client generates aNoNodeAvailableException