Skip to content

Releases: elastic/elasticsearch-js

v9.0.0-alpha.4

26 Feb 19:06
ac231c8
Compare
Choose a tag to compare
v9.0.0-alpha.4 Pre-release
Pre-release

Changes from v9.0.0-alpha.3:

Parameter collation

Each API function's logic for deciding where in the request to put each passed parameter is now as follows:

  1. if recognized as a body param from the spec, put it in the JSON body
  2. if recognized as a path param, put it in the URL path
  3. if recognized as a query param or a "common" query param (e.g. pretty, error_trace), put it in the querystring
  4. if not recognized and this API accepts a JSON body, put it in the JSON body
  5. if not recognized and this API does not accept a JSON body, put it in the querystring

The first two steps are identical to 8.x and prior 9.0.0 alpha releases. The last three steps replace the logic that put all unrecognized params in the querystring.

Parameter name list management

Each API function now only instantiates its arrays of accepted body/path/query param names once per client instance rather than during every function call, by moving the array values up to the constructor or module level, depending on which is available. Hopefully this introduces a small performance/memory improvement.

v8.17.1

24 Feb 19:39
469c853
Compare
Choose a tag to compare

v8.16.4

24 Feb 20:00
120845a
Compare
Choose a tag to compare

v9.0.0-alpha.3

30 Jan 17:47
d2c63b4
Compare
Choose a tag to compare
v9.0.0-alpha.3 Pre-release
Pre-release

Changes from 9.0.0-alpha.2:

  • The default 30-second timeout on all HTTP requests sent to Elasticsearch has been dropped in favor of having no timeout set at all. The previous behavior still works as it did when setting the requestTimeout value. #2573

v9.0.0-alpha.2

28 Jan 18:30
869174f
Compare
Choose a tag to compare
v9.0.0-alpha.2 Pre-release
Pre-release

Changes from 9.0.0-alpha.1:

  • Rather than fully dropping the body parameter, each HTTP request type includes optional body and querystring parameters that will add any provided values to the body and querystring, respectively. They have permissive { [key: string]: any } types (basically Record<string, any>), except they do not allow any of properties that should been in the root of the object.

v8.17.0

12 Dec 17:48
abcdd08
Compare
Choose a tag to compare

v8.16.3

12 Dec 17:14
6fb0f42
Compare
Choose a tag to compare

v9.0.0-alpha.1

05 Dec 20:34
f33aa8c
Compare
Choose a tag to compare
v9.0.0-alpha.1 Pre-release
Pre-release

This is a 9.0.0 pre-release alpha. Changes may not be stable.

Breaking changes

  • Drops support for the body parameter from all API calls

v8.16.2

21 Nov 16:40
1ef1754
Compare
Choose a tag to compare

v8.15.3

21 Nov 16:34
7d4ae5e
Compare
Choose a tag to compare