From 01e6948fc8c7206ccc332d97bd0adc3d06e15835 Mon Sep 17 00:00:00 2001 From: Josh Mock Date: Fri, 25 Apr 2025 10:42:27 -0500 Subject: [PATCH 1/2] Release notes for 9.0.1 (#2764) --- docs/release-notes/index.md | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/docs/release-notes/index.md b/docs/release-notes/index.md index 85b8d67c0..280ae79b6 100644 --- a/docs/release-notes/index.md +++ b/docs/release-notes/index.md @@ -20,11 +20,17 @@ To check for security updates, go to [Security announcements for the Elastic sta % ### Fixes [elasticsearch-javascript-client-next-fixes] -## 9.0.0 [elasticsearch-javascript-client-900-release-notes] +## 9.0.1 -**Release date:** April 8, 2025 +### Fixes [elasticsearch-javascript-client-9.0.1-fixes] -### Features and enhancements [elasticsearch-javascript-client-900-features-enhancements] +**Reinstate `nodeFilter` and node `roles` feature:** The docs note a `nodeFilter` option on the client that will, by default, filter the nodes based on any `roles` values that are set at instantiation. At some point, this functionality was partially disabled. This brings the feature back, ensuring that it matches what the documentation has said it does all along. + +**Ensure Apache Arrow ES|QL helper uses async iterator:** the [`esql.toArrowReader()` helper function](/reference/client-helpers.md#_toarrowreader) was trying to return `RecordBatchStreamReader`—a synchronous iterator—despite the fact that the `apache-arrow` package was, in most cases, automatically coercing it to `AsyncRecordBatchStreamReader`, its asynchronous counterpart. It now is always returned as an async iterator. + +## 9.0.0 [elasticsearch-javascript-client-9.0.0-release-notes] + +### Features and enhancements [elasticsearch-javascript-client-9.0.0-features-enhancements] - **Compatibility with Elasticsearch 9.0:** All changes and additions to Elasticsearch APIs for its 9.0 release are reflected in this release. - **Serverless client merged in:** the `@elastic/elasticsearch-serverless` client is being deprecated, and its functionality has been merged back into this client. This should have zero impact on the way the client works by default, except that a new `serverMode` option has been added. When it's explicitly set to `"serverless"` by a user, a few default settings and behaviors are changed: @@ -40,4 +46,4 @@ To check for security updates, go to [Security announcements for the Elastic sta - **Improved Cloud ID parsing:** when using a Cloud ID as the `cloud` parameter to instantiate the client, that ID was assumed to be in the correct format. New assertions have been added to verify that format and throw a `ConfigurationError` if it is invalid. See [#2694](https://github.com/elastic/elasticsearch-js/issues/2694). -% ### Fixes [elasticsearch-javascript-client-900-fixes] +% ### Fixes [elasticsearch-javascript-client-9.0.0-fixes] From b32aa982b423d289aa13b5e86292ae3c6c7cd12b Mon Sep 17 00:00:00 2001 From: Josh Mock Date: Tue, 20 May 2025 18:08:27 +0000 Subject: [PATCH 2/2] Bump to 9.0.2 (#2843) --- docs/release-notes/index.md | 6 ++++++ package.json | 4 ++-- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/docs/release-notes/index.md b/docs/release-notes/index.md index 280ae79b6..ebde4b5eb 100644 --- a/docs/release-notes/index.md +++ b/docs/release-notes/index.md @@ -20,6 +20,12 @@ To check for security updates, go to [Security announcements for the Elastic sta % ### Fixes [elasticsearch-javascript-client-next-fixes] +## 9.0.2 + +### Fixes [elasticsearch-javascript-client-9.0.2-fixes] + +**Remove dangling references to `typesWithBodyKey`:** the `typesWithBodyKey.ts` file and `estypesWithBody` export were removed in 9.0.0 but were still being referenced in the `index.d.ts` file that declares TypeScript types. This reference has been removed. + ## 9.0.1 ### Fixes [elasticsearch-javascript-client-9.0.1-fixes] diff --git a/package.json b/package.json index 739e93203..2bad7635a 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "@elastic/elasticsearch", - "version": "9.0.1", - "versionCanary": "9.0.1-canary.0", + "version": "9.0.2", + "versionCanary": "9.0.2-canary.0", "description": "The official Elasticsearch client for Node.js", "main": "./index.js", "types": "index.d.ts",