Skip to content

Commit

Permalink
[Backport 8.2] Drop Node.js v12 (#1671)
Browse files Browse the repository at this point in the history
Co-authored-by: Tomas Della Vedova <[email protected]>
  • Loading branch information
github-actions[bot] and delvedor authored Mar 31, 2022
1 parent 96b5b8e commit 295553c
Show file tree
Hide file tree
Showing 7 changed files with 15 additions and 10 deletions.
4 changes: 2 additions & 2 deletions .ci/packer_cache.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@

source /usr/local/bin/bash_standard_lib.sh

DOCKER_IMAGES="node:16-alpine
DOCKER_IMAGES="node:17-alpine
node:16-alpine
node:14-alpine
node:12-alpine
"

for di in ${DOCKER_IMAGES}
Expand Down
2 changes: 1 addition & 1 deletion .ci/run-repository.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ script_path=$(dirname $(realpath -s $0))
source $script_path/functions/imports.sh
set -euo pipefail

NODE_JS_VERSION=${NODE_JS_VERSION-12}
NODE_JS_VERSION=${NODE_JS_VERSION-16}
ELASTICSEARCH_URL=${ELASTICSEARCH_URL-"$elasticsearch_url"}
elasticsearch_container=${elasticsearch_container-}

Expand Down
2 changes: 1 addition & 1 deletion .ci/test-matrix.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@ STACK_VERSION:
- 8.2.0-SNAPSHOT

NODE_JS_VERSION:
- 17
- 16
- 14
- 12

TEST_SUITE:
- free
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/nodejs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ jobs:

strategy:
matrix:
node-version: [12.x, 14.x, 16.x]
node-version: [14.x, 16.x, 17.x]
os: [ubuntu-latest, windows-latest, macOS-latest]

steps:
Expand Down
7 changes: 4 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ npm install @elastic/elasticsearch

### Node.js support

NOTE: The minimum supported version of Node.js is `v12`.
NOTE: The minimum supported version of Node.js is `v14`.

The client versioning follows the Elastic Stack versioning, this means that
major, minor, and patch releases are done following a precise schedule that
Expand All @@ -44,8 +44,9 @@ of `^7.10.0`).
| Node.js Version | Node.js EOL date | End of support |
| --------------- |------------------| ---------------------- |
| `8.x` | `December 2019` | `7.11` (early 2021) |
| `10.x` | `April 2021` | `7.12` (mid 2021) |
| `12.x` | `April 2022` | `8.2` (early 2022) |
| `10.x` | `April 2021` | `7.12` (mid 2021) |
| `12.x` | `April 2022` | `8.2` (early 2022) |
| `14.x` | `April 2023` | `8.8` (early 2023) |

### Compatibility

Expand Down
6 changes: 5 additions & 1 deletion docs/installation.asciidoc
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ To learn more about the supported major versions, please refer to the
[[nodejs-support]]
=== Node.js support

NOTE: The minimum supported version of Node.js is `v12`.
NOTE: The minimum supported version of Node.js is `v14`.

The client versioning follows the {stack} versioning, this means that
major, minor, and patch releases are done following a precise schedule that
Expand Down Expand Up @@ -60,6 +60,10 @@ of `^7.10.0`).
|`12.x`
|April 2022
|`8.2` (early 2022)

|`14.x`
|April 2023
|`8.8` (early 2023)
|===

[discrete]
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@
},
"homepage": "http://www.elastic.co/guide/en/elasticsearch/client/javascript-api/current/index.html",
"engines": {
"node": ">=12"
"node": ">=14"
},
"devDependencies": {
"@sinonjs/fake-timers": "github:sinonjs/fake-timers#0bfffc1",
Expand Down

0 comments on commit 295553c

Please sign in to comment.