269c0fc96a
Improve observability ( #834 )
...
* API generation
* Added correlation id support
* Updated docs
* Updated test
* Updated code generation
* API generation
* Updated code generation
* Added support for client name and custom context object
* Updated docs
* Updated test
* Fix docs
* Updated docs
* Added id support also for sniffing
* Updated test
* Update docs/observability.asciidoc
Co-Authored-By: delvedor <delvedor@users.noreply.github.com >
* Update docs/observability.asciidoc
Co-Authored-By: delvedor <delvedor@users.noreply.github.com >
* Apply suggestions
* Update docs/configuration.asciidoc
Co-Authored-By: delvedor <delvedor@users.noreply.github.com >
* Update docs/configuration.asciidoc
Co-Authored-By: delvedor <delvedor@users.noreply.github.com >
* Update docs/observability.asciidoc
Co-Authored-By: delvedor <delvedor@users.noreply.github.com >
* Update docs/observability.asciidoc
Co-Authored-By: delvedor <delvedor@users.noreply.github.com >
* Update docs/observability.asciidoc
Co-Authored-By: delvedor <delvedor@users.noreply.github.com >
* Apply suggestions
* Updated README.md
* Fixed test
* Addressed suggestions
2019-05-03 17:23:40 +02:00
1261e60d41
Better handling of hostname/ip:port format ( #837 )
...
* Better handling of hostname/ip:port format
* Updated test
2019-05-03 14:36:17 +02:00
6f4fb16200
Updated installation instructions ( #835 )
...
* Updated installation instructions
* Added a note about Elasticsearch master
2019-05-02 11:59:06 +02:00
9320ef939d
Fix resurrect timeout formula ( #833 )
...
* Fixes #827
* Updated test
2019-04-29 09:18:38 +02:00
8e8b7fbdee
Node v12 and bumped dependencies ( #832 )
...
* Node v12
* Bumped dependencies
* Disable automatic code coverage
2019-04-26 17:24:54 +02:00
2f76b366ce
Updated .travis.yml ( #831 )
2019-04-26 15:01:14 +02:00
349b832d2b
Support for deprecated paths ( #828 )
...
* Updated code generation
* API generation
* Updated test
2019-04-26 09:25:34 +02:00
928746d19f
Updated test
2019-04-24 10:55:14 +02:00
e3a0e9ed56
API generation
2019-04-24 10:22:37 +02:00
c35eb421cb
Update RequestEvent to use parameterized type T ( #822 )
...
Updated `RequestEvent` to use parameterized type `T`. In reference to:
https://github.com/elastic/elasticsearch-js/pull/819#issuecomment-484594841
2019-04-19 10:06:20 +02:00
2f665054f1
API generation
2019-04-17 11:28:12 +02:00
c6ce062822
Updated typings ( #819 )
2019-04-17 11:23:15 +02:00
72fda2bdd5
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.
2019-04-17 07:55:18 +02:00
28c0f2eeae
Fix a typo in usage example ( #806 )
2019-04-11 16:37:42 +02:00
a21281fc48
Improve typings ( #813 )
...
The ApiResponse now accepts a generics that defaults to any, same for every API method that might need a body.
2019-04-10 11:40:25 +02:00
2919f93b73
Custom http agent support ( #810 )
2019-04-10 11:13:22 +02:00
0d65274de3
Updated issues template
2019-04-09 16:48:31 +02:00
5af9ec1040
Support for publish_address as hostname/ip:port ( #804 )
2019-04-08 17:13:44 +02:00
5794ad54e4
Updated README.md
2019-04-01 09:49:57 +02:00
aea1ecfe15
Handle bulk errors in examples
2019-04-01 09:08:32 +02:00
52cd07eca3
Generated reference
2019-03-29 18:10:09 +01:00
373957c55c
Docs: Fix ingest doc links ( #801 )
...
The ingest docs in Elasticsearch doing point to the actual ingest APIs.
This makes up generate links to the real APIs instead, fixing some
broken links in the 5.x docs in the process.
2019-03-29 18:07:35 +01:00
02e24ea981
Generated reference
2019-03-29 15:46:01 +01:00
0073756d3a
Docs: Handle more funny cases from ES api spec ( #800 )
...
Handles a few "special" doc urls from ES's api spec files. These are
only a problem in 6.x but we'd like to keep the generateDocs script the
same across all branches for easier backporting.
2019-03-29 15:44:47 +01:00
c92b156473
Docs: Fix the API reference ( #799 )
2019-03-29 08:50:08 +01:00
e98edffd02
Fix docs ( #796 )
...
Follow up of https://github.com/elastic/docs/pull/701 .
2019-03-28 17:34:45 +01:00
22d65e54ac
Updated CONTRIBUTING.md ( #794 )
...
As titled, also renamed the script files for a better DX.
2019-03-28 10:10:26 +01:00
fb73b4b08d
Master should use the latest version of ES ( #780 )
...
The `master` branch should work with the latest snapshot of Elasticsearch.
- Use `8.0.0-SNAPSHOT`
- Code generation
- Updated scripts and CI conf
2019-03-28 09:05:00 +01:00
f260549a4f
Added CONTRIBUTING.md and CODE_OF_CONDUCT.md
2019-03-27 16:46:25 +01:00
5bc57b03bf
Improved integration test runner
2019-03-27 14:59:55 +01:00
ad6f56c3f1
Doc updates ( #791 )
...
Updates for better displaying the documentation in the website.
2019-03-27 07:44:19 +01:00
46bd14a36c
Better api error handling ( #790 )
...
* API generation
* Updated code generation
* Updated test
2019-03-26 12:04:44 +01:00
7d1c660f4e
Remove url in jenkins job configuration
2019-03-21 11:15:03 -04:00
3c912d626c
CI config ( #786 )
...
* Updated ci config
* Minor fixes
* Minor fixes
* Added Node v11
2019-03-21 11:02:09 +01:00
49b79922e2
Updated ci config
2019-03-19 14:17:50 +01:00
747a61c7f8
Updated ci jobs
2019-03-19 12:33:43 +01:00
1c3541a740
Updated ci jobs
2019-03-19 11:27:58 +01:00
5c60d98180
Inspect Connection ( #784 )
...
Handles `console.log` and `utils.inspect` invocations for a better debugging experience.
`agent` and `ssl` are hidden since they made the logs very hard to read.
The user can still access them with `instance.agent` and `instance.ssl`.
2019-03-19 09:50:36 +01:00
3b41c555ae
Feat: Support bundlers ( #783 )
...
With this change, we support code bundlers, such as webpack.
Fixes: https://github.com/elastic/elasticsearch-js/issues/781
2019-03-19 07:50:05 +01:00
532ded5d5c
Added a note about the new client
2019-03-18 19:01:10 +01:00
c53c798899
feat: add support for querystring in options object ( #779 )
...
In very few cases, some API uses the same key for both url and query params, such as the bulk method.
The client is not designed to handle such cases since accepts both url and query keys in the same object, and the url parameter will always take precedence.
This pr fixes this edge case by adding a `querystring` key in the options object.
Fixes: https://github.com/elastic/elasticsearch-js/pull/778
```js
client.bulk({
index: 'index',
type: '_doc',
body: [...]
}, {
querystring: {
type: '_doc'
}
}, console.log)
```
2019-03-15 18:09:44 +01:00
851e839c70
Updated coverage script
2019-03-15 16:58:21 +01:00
d6982d5152
Added codecov badge
2019-03-15 16:58:13 +01:00
c446225f3c
Updated ignore files
2019-03-15 16:57:58 +01:00
9f17f820de
Added codecov ( #777 )
2019-03-15 15:55:34 +01:00
5aa8226a4c
Updated README
2019-03-14 18:32:47 +01:00
38157d634e
Updated pull request template
2019-03-14 14:20:36 +01:00
925b758418
Added stale bot
2019-03-14 12:22:20 +01:00
95acb31dfc
Added pull request and issue templates ( #776 )
2019-03-13 19:12:11 +01:00
c4879203a7
Updated CI setup
2019-03-13 17:57:25 +01:00