Skip to content

Commit ed63d3b

Browse files
committed
Drop support for Node 18
1 parent a86319b commit ed63d3b

File tree

7 files changed

+28
-28
lines changed

7 files changed

+28
-28
lines changed

.buildkite/Dockerfile

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
ARG NODE_VERSION=${NODE_VERSION:-18}
1+
ARG NODE_VERSION=${NODE_VERSION:-20}
22
FROM node:$NODE_VERSION
33

44
# Install required tools

.buildkite/Dockerfile-make

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
ARG NODE_JS_VERSION=${NODE_JS_VERSION:-18}
1+
ARG NODE_JS_VERSION=${NODE_JS_VERSION:-20}
22
FROM node:${NODE_JS_VERSION}
33

44
ARG BUILDER_UID=1000

.buildkite/pipeline.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,9 @@ steps:
1616
matrix:
1717
setup:
1818
nodejs:
19-
- "18"
2019
- "20"
2120
- "22"
21+
- "23"
2222
command: ./.buildkite/run-tests.sh
2323
artifact_paths: "./junit-output/junit-*.xml"
2424
- wait: ~

.buildkite/run-client.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ script_path=$(dirname "$(realpath -s "$0")")
66
set -euo pipefail
77
repo=$(pwd)
88

9-
export NODE_VERSION=${NODE_VERSION:-18}
9+
export NODE_VERSION=${NODE_VERSION:-20}
1010

1111
echo "--- :javascript: Building Docker image"
1212
docker build \

.github/ISSUE_TEMPLATE/bug.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ body:
4040
id: node-js-version
4141
attributes:
4242
label: Node.js version
43-
placeholder: 18.x, 20.x, etc.
43+
placeholder: 20.x, 22.x, etc.
4444
validations:
4545
required: true
4646

.github/workflows/nodejs.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ jobs:
3232
strategy:
3333
fail-fast: false
3434
matrix:
35-
node-version: [18.x, 20.x, 22.x, 23.x]
35+
node-version: [20.x, 22.x, 23.x]
3636
os: [ubuntu-latest, windows-latest, macOS-latest]
3737

3838
steps:

README.md

+22-22
Original file line numberDiff line numberDiff line change
@@ -43,17 +43,17 @@ compatible with default distributions and without guarantees made.
4343

4444
## Usage
4545

46-
* [Creating an index](https://www.elastic.co/guide/en/elasticsearch/client/javascript-api/current/getting-started-js.html#_creating_an_index)
47-
* [Indexing a document](https://www.elastic.co/guide/en/elasticsearch/client/javascript-api/current/getting-started-js.html#_indexing_documents)
48-
* [Getting documents](https://www.elastic.co/guide/en/elasticsearch/client/javascript-api/current/getting-started-js.html#_getting_documents)
49-
* [Searching documents](https://www.elastic.co/guide/en/elasticsearch/client/javascript-api/current/getting-started-js.html#_searching_documents)
50-
* [Updating documents](https://www.elastic.co/guide/en/elasticsearch/client/javascript-api/current/getting-started-js.html#_updating_documents)
51-
* [Deleting documents](https://www.elastic.co/guide/en/elasticsearch/client/javascript-api/current/getting-started-js.html#_deleting_documents)
52-
* [Deleting an index](https://www.elastic.co/guide/en/elasticsearch/client/javascript-api/current/getting-started-js.html#_deleting_an_index)
46+
- [Creating an index](https://www.elastic.co/guide/en/elasticsearch/client/javascript-api/current/getting-started-js.html#_creating_an_index)
47+
- [Indexing a document](https://www.elastic.co/guide/en/elasticsearch/client/javascript-api/current/getting-started-js.html#_indexing_documents)
48+
- [Getting documents](https://www.elastic.co/guide/en/elasticsearch/client/javascript-api/current/getting-started-js.html#_getting_documents)
49+
- [Searching documents](https://www.elastic.co/guide/en/elasticsearch/client/javascript-api/current/getting-started-js.html#_searching_documents)
50+
- [Updating documents](https://www.elastic.co/guide/en/elasticsearch/client/javascript-api/current/getting-started-js.html#_updating_documents)
51+
- [Deleting documents](https://www.elastic.co/guide/en/elasticsearch/client/javascript-api/current/getting-started-js.html#_deleting_documents)
52+
- [Deleting an index](https://www.elastic.co/guide/en/elasticsearch/client/javascript-api/current/getting-started-js.html#_deleting_an_index)
5353

5454
### Node.js support
5555

56-
NOTE: The minimum supported version of Node.js is `v18`.
56+
NOTE: The minimum supported version of Node.js is `v20`.
5757

5858
The client versioning follows the Elastic Stack versioning, this means that
5959
major, minor, and patch releases are done following a precise schedule that
@@ -79,27 +79,27 @@ of `^7.10.0`).
7979
| `12.x` | `April 2022` | `8.2` (early 2022) |
8080
| `14.x` | `April 2023` | `8.8` (early 2023) |
8181
| `16.x` | `September 2023` | `8.11` (late 2023) |
82-
| `18.x` | `April 2025` | `9.2` (late 2025) |
82+
| `18.x` | `April 2025` | `9.1` (mid 2025) |
8383

8484
#### Browser
8585

8686
> [!WARNING]
8787
> There is no official support for the browser environment. It exposes your Elasticsearch instance to everyone, which could lead to security issues.
88-
We recommend that you write a lightweight proxy that uses this client instead, you can see a proxy example [here](./docs/examples/proxy).
88+
> We recommend that you write a lightweight proxy that uses this client instead, you can see a proxy example [here](./docs/examples/proxy).
8989
9090
## Documentation
9191

92-
* [Introduction](https://www.elastic.co/guide/en/elasticsearch/client/javascript-api/current/introduction.html)
93-
* [Usage](https://www.elastic.co/guide/en/elasticsearch/client/javascript-api/current/client-connecting.html#client-usage)
94-
* [Client configuration](https://www.elastic.co/guide/en/elasticsearch/client/javascript-api/current/client-configuration.html)
95-
* [API reference](https://www.elastic.co/guide/en/elasticsearch/client/javascript-api/current/api-reference.html)
96-
* [Authentication](https://www.elastic.co/guide/en/elasticsearch/client/javascript-api/current/client-connecting.html#authentication)
97-
* [Observability](https://www.elastic.co/guide/en/elasticsearch/client/javascript-api/current/observability.html)
98-
* [Creating a child client](https://www.elastic.co/guide/en/elasticsearch/client/javascript-api/current/child.html)
99-
* [Client helpers](https://www.elastic.co/guide/en/elasticsearch/client/javascript-api/current/client-helpers.html)
100-
* [Typescript support](https://www.elastic.co/guide/en/elasticsearch/client/javascript-api/current/typescript.html)
101-
* [Testing](https://www.elastic.co/guide/en/elasticsearch/client/javascript-api/current/client-testing.html)
102-
* [Examples](https://www.elastic.co/guide/en/elasticsearch/client/javascript-api/current/examples.html)
92+
- [Introduction](https://www.elastic.co/guide/en/elasticsearch/client/javascript-api/current/introduction.html)
93+
- [Usage](https://www.elastic.co/guide/en/elasticsearch/client/javascript-api/current/client-connecting.html#client-usage)
94+
- [Client configuration](https://www.elastic.co/guide/en/elasticsearch/client/javascript-api/current/client-configuration.html)
95+
- [API reference](https://www.elastic.co/guide/en/elasticsearch/client/javascript-api/current/api-reference.html)
96+
- [Authentication](https://www.elastic.co/guide/en/elasticsearch/client/javascript-api/current/client-connecting.html#authentication)
97+
- [Observability](https://www.elastic.co/guide/en/elasticsearch/client/javascript-api/current/observability.html)
98+
- [Creating a child client](https://www.elastic.co/guide/en/elasticsearch/client/javascript-api/current/child.html)
99+
- [Client helpers](https://www.elastic.co/guide/en/elasticsearch/client/javascript-api/current/client-helpers.html)
100+
- [Typescript support](https://www.elastic.co/guide/en/elasticsearch/client/javascript-api/current/typescript.html)
101+
- [Testing](https://www.elastic.co/guide/en/elasticsearch/client/javascript-api/current/client-testing.html)
102+
- [Examples](https://www.elastic.co/guide/en/elasticsearch/client/javascript-api/current/examples.html)
103103

104104
## Install multiple versions
105105

@@ -147,7 +147,7 @@ client7.info().then(console.log, console.log)
147147
```
148148

149149
Finally, if you want to install the client for the next version of Elasticsearch
150-
*(the one that lives in Elasticsearch’s main branch)*, you can use the following
150+
_(the one that lives in Elasticsearch’s main branch)_, you can use the following
151151
command:
152152

153153
```sh

0 commit comments

Comments
 (0)