Skip to content

Commit cfd4e70

Browse files
committed
Drop Node.js v6 support (#818)
Node.js v6 will go EOL at the end of April 2019, and already two of the production dependencies of the client have already dropped support for it, and soon others will do *(as well as development dependencies)*. Furthermore, since Node.js will go in EOL it will never get security patches, plus, also OpenSSL-1.0.2 will go EOL [this year](https://github.com/nodejs/Release#release-schedule); to avoid risks for the client users it is better to drop support for Node.js v6 right away.
1 parent 68f8b7b commit cfd4e70

7 files changed

+28
-19
lines changed

.ci/test-matrix.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,5 @@ NODE_JS_VERSION:
66
- 11
77
- 10
88
- 8
9-
- 6
109

1110
exclude: ~

.npmignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,3 +67,6 @@ scripts
6767
.ci
6868
.travis.yml
6969
certs
70+
.github
71+
CODE_OF_CONDUCT.md
72+
CONTRIBUTING.md

.travis.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,9 @@ sudo: required
55
language: node_js
66

77
node_js:
8+
- "11"
89
- "10"
910
- "8"
10-
- "6"
1111

1212
env:
1313
global:

README.md

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,8 @@ npm install @elastic/elasticsearch
2727

2828
### Compatibility
2929

30+
The minimum supported version of Node.js is `v8`.
31+
3032
The library is compatible with all Elasticsearch versions since 5.x, but you should use the same major version of the Elasticsearch instance that you are using.
3133
```
3234
# Elasticsearch 7.x
@@ -40,7 +42,9 @@ The library is compatible with all Elasticsearch versions since 5.x, but you sho
4042
```
4143

4244
## Usage
43-
You can find the full documentation in the [docs](https://github.com/elastic/elasticsearch-js/tree/master/docs) folder.
45+
46+
You can find the full documentation in our [docs](https://www.elastic.co/guide/en/elasticsearch/client/javascript-api/current/index.html) website.
47+
4448
```js
4549
const { Client } = require('@elastic/elasticsearch')
4650
const client = new Client({ node: 'http://localhost:9200' })
@@ -70,7 +74,9 @@ The returned value of **every** API call is formed as follows:
7074
}
7175
```
7276
### Client options
77+
7378
The client is designed to be easily configured as you see fit for your needs, following you can see all the possible options that you can use to configure it.
79+
7480
```ts
7581
{
7682
// the Elasticsearch endpoint to use

docs/breaking-changes.asciidoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ Every breaking change was carefully weighed, and each is justified. Furthermore,
99

1010
=== Breaking changes
1111

12-
* Minimum supported version of Node.js is `v6`.
12+
* Minimum supported version of Node.js is `v8`.
1313

1414
* Everything has been rewritten using ES6 classes to help users extend the defaults more easily.
1515

docs/introduction.asciidoc

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ npm install @elastic/elasticsearch
1818
----
1919

2020
=== Compatibility
21+
The minimum supported version of Node.js is `v8`.
2122

2223
The library is compatible with all Elasticsearch versions since 5.x, but you should use the same major version of the Elasticsearch instance that you are using.
2324
----
@@ -50,4 +51,4 @@ client.search({
5051
}, (err, result) => {
5152
if (err) console.log(err)
5253
})
53-
----
54+
----

package.json

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -36,33 +36,33 @@
3636
"company": "Elasticsearch BV"
3737
},
3838
"devDependencies": {
39-
"@types/node": "^10.12.24",
40-
"codecov": "^3.2.0",
41-
"convert-hrtime": "^2.0.0",
39+
"@types/node": "^11.13.4",
40+
"codecov": "^3.3.0",
41+
"convert-hrtime": "^3.0.0",
4242
"dedent": "^0.7.0",
43-
"deepmerge": "^3.1.0",
43+
"deepmerge": "^3.2.0",
4444
"dezalgo": "^1.0.3",
45-
"js-yaml": "^3.12.1",
45+
"js-yaml": "^3.13.1",
4646
"license-checker": "^25.0.1",
4747
"lolex": "^3.1.0",
4848
"minimist": "^1.2.0",
49-
"ora": "^3.2.0",
49+
"ora": "^3.4.0",
5050
"pretty-hrtime": "^1.0.3",
5151
"rimraf": "^2.6.3",
52-
"semver": "^5.6.0",
53-
"simple-git": "^1.107.0",
52+
"semver": "^6.0.0",
53+
"simple-git": "^1.110.0",
5454
"simple-statistics": "^7.0.2",
55-
"split2": "^3.1.0",
55+
"split2": "^3.1.1",
5656
"standard": "^12.0.1",
5757
"stoppable": "^1.1.0",
58-
"tap": "^12.6.0",
59-
"typescript": "^3.3.3",
58+
"tap": "^12.6.1",
59+
"typescript": "^3.4.3",
6060
"workq": "^2.1.0"
6161
},
6262
"dependencies": {
6363
"debug": "^4.1.1",
64-
"decompress-response": "^4.0.0",
65-
"into-stream": "^4.0.0",
64+
"decompress-response": "^4.2.0",
65+
"into-stream": "^5.1.0",
6666
"ms": "^2.1.1",
6767
"once": "^1.4.0",
6868
"pump": "^3.0.0"
@@ -76,6 +76,6 @@
7676
"url": "https://github.com/elastic/elasticsearch-js/issues"
7777
},
7878
"engines": {
79-
"node": ">=6"
79+
"node": ">=8"
8080
}
8181
}

0 commit comments

Comments
 (0)