From 88b787bf38ce5f186aa48c8eb9752a157fc15515 Mon Sep 17 00:00:00 2001 From: Tomas Della Vedova Date: Thu, 11 Feb 2021 08:24:05 +0100 Subject: [PATCH] Changelog for 7.11 (#1401) --- docs/changelog.asciidoc | 51 +++++++++++++++++++++++++++++++++++++++++ 1 file changed, 51 insertions(+) diff --git a/docs/changelog.asciidoc b/docs/changelog.asciidoc index 252968ff3..2155b7042 100644 --- a/docs/changelog.asciidoc +++ b/docs/changelog.asciidoc @@ -1,6 +1,57 @@ [[changelog-client]] == Changelog +[discrete] +=== 7.11.0 + +[discrete] +==== Features + +[discrete] +===== Support for Elasticsearch `v7.11`. + +You can find all the API changes https://www.elastic.co/guide/en/elasticsearch/reference/7.11/release-notes-7.11.0.html[here]. + +[discrete] +===== Added new observability events https://github.com/elastic/elasticsearch-js/pull/1365[#1365] + +Two new observability events has been introduced: `serialization` and `deserialization`. +The event order is described in the following graph, in some edge cases, the order is not guaranteed. +You can find in https://github.com/elastic/elasticsearch-js/blob/master/test/acceptance/events-order.test.js[`test/acceptance/events-order.test.js`] +how the order changes based on the situation. + +---- +serialization + │ + │ (serialization and compression happens between those two events) + │ + └─▶ request + │ + │ (actual time spent over the wire) + │ + └─▶ deserialization + │ + │ (deserialization and decompression happens between those two events) + │ + └─▶ response +---- + +[discrete] +===== Added x-elastic-client-meta header https://github.com/elastic/elasticsearch-js/pull/1373[#1373] + +Adds the `x-elastic-client-meta` HTTP header which is used by Elastic Cloud +and can be disabled with the `enableMetaHeader` parameter set to `false`. + +[discrete] +==== Fixes + +[discrete] +===== Fixes req.abort() with a body that is a stream calls callback(err) twice https://github.com/elastic/elasticsearch-js/pull/1376[#1376] + +When using a body that is a stream to client.search(), and calling req.abort(), the callback is called twice. +Once for the RequestAbortedError, as expected, and once for a "premature close" error from end-of-stream, used by pump, used by the client. +This issue has now been fixed. + [discrete] === 7.10.0