You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: BREAKING_CHANGES.md
+5-4Lines changed: 5 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -5,13 +5,14 @@ We tried to reduce the BC breaks as much as possible but there are some (big) di
5
5
6
6
## Architectural changes:
7
7
8
-
- we changed the namespace, now everything is under `Elastic\Elasticsearch`;
8
+
- we changed the namespace, now everything is under `Elastic\Elasticsearch`
9
9
- we used the [elastic-transport-php](https://github.com/elastic/elastic-transport-php) library for HTTP communications;
10
10
- we changed the `Exception` model, using the namespace `Elastic\Elasticsearch\Exception`. All the exceptions extends the
11
-
`ElasticsearchException` interface, as in 7.x;
11
+
`ElasticsearchException` interface, as in 7.x
12
12
- we changed the response type of each endpoints using an [Elasticsearch](src/Response/Elasticsearch.php) response class.
13
13
This class wraps a a [PSR-7](https://www.php-fig.org/psr/psr-7/) response allowing the access of the body response
14
14
as array or object. This means you can access the API response as in 7.x, no BC break here! :angel:
15
+
- we changed the `ConnectionPool` in `NodePool`. The `connection` naming was ambigous since the objects are nodes (hosts)
15
16
16
17
## Specific changes:
17
18
@@ -24,15 +25,15 @@ The following functions has been removed:
24
25
-`ClientBuilder::multiHandler()`
25
26
-`ClientBuilder::singleHandler()`
26
27
-`ClientBuilder::setConnectionFactory()`
27
-
-`ClientBuilder::setConnectionPool()`
28
+
-`ClientBuilder::setConnectionPool()`, you can use `ClientBuilder::setNodePool` instead
28
29
-`ClientBuilder::setEndpoint()`
29
30
-`ClientBuilder::registerNamespace()`
30
31
-`ClientBuilder::setTransport()`, you can specify an HTTP PSR-18 client using `ClientBuilder::setHttpClient()`
31
32
-`ClientBuilder::setHandler()`
32
33
-`ClientBuilder::setTracer()`, you can only set a Logger using `ClientBuilder::setLogger()`
33
34
-`ClientBuilder::setSerializer()`
34
35
-`ClientBuilder::setConnectionParams()`, you can use `ClientBuilder::setHttpClientOptions()` instead
35
-
-`ClientBuilder::setSelector()`
36
+
-`ClientBuilder::setSelector()`, you can set a `Selector` using the `setNodePool`, see [here](https://github.com/elastic/elastic-transport-php/blob/8.x/README.md#use-a-custom-selector) for more information
0 commit comments