92f31d467c
[Backport 7.x] Throw if the content length is too big ( #1361 )
...
Co-authored-by: Tomas Della Vedova <delvedor@users.noreply.github.com >
2020-11-24 09:49:07 +01:00
cbfb9616a0
Handle connectivity issues while reading the body ( #1343 )
2020-11-10 18:24:53 +01:00
dd8ee9056b
[Backport 7.x] The agent function should take the Connection contructor options as argument ( #1334 )
...
Co-authored-by: Tomas Della Vedova <delvedor@users.noreply.github.com >
2020-10-12 11:13:34 +02:00
34dedb8119
[Backport 7.x] Scroll search should clear the scroll at the end ( #1333 )
...
Co-authored-by: Tomas Della Vedova <delvedor@users.noreply.github.com >
2020-10-12 11:13:12 +02:00
c12a31199d
[Backport 7.x] Test cloud id without kibana component ( #1324 )
...
Co-authored-by: Tomas Della Vedova <delvedor@users.noreply.github.com >
2020-09-28 10:18:30 +02:00
3db1bed4bd
Improve child performances ( #1314 )
2020-09-23 11:34:36 +02:00
2c39a5413d
Merge branch '7.x' of https://github.com/elastic/elasticsearch-js into 7.x
2020-09-10 15:29:27 +02:00
584a8799d8
Avoid the release of Zalgo ( #1295 )
2020-09-10 15:29:22 +02:00
f02567491f
Fix maxRetries request option handling ( #1296 )
2020-09-10 15:29:22 +02:00
00aeb8b923
Helper param fix ( #1284 )
...
Co-authored-by: Tomas Della Vedova <delvedor@users.noreply.github.com >
2020-09-01 12:18:42 +02:00
4c1095d805
[Backport 7.x] Added proxy support ( #1276 )
...
Co-authored-by: Tomas Della Vedova <delvedor@users.noreply.github.com >
2020-08-03 11:41:20 +02:00
bb05668a44
Updated license header ( #1267 )
2020-07-23 12:27:18 +02:00
e864c1db99
[Backport 7.x] Add ability to disable the http agent ( #1258 )
...
Co-authored-by: Tomas Della Vedova <delvedor@users.noreply.github.com >
2020-07-13 15:09:22 +02:00
28f2be397c
[Backport 7.x] Allow the client name to be a symbol ( #1257 )
...
Co-authored-by: Tomas Della Vedova <delvedor@users.noreply.github.com >
2020-07-13 12:38:59 +02:00
40c47902f3
[Backport 7.x] Improve child API ( #1247 )
...
Co-authored-by: Tomas Della Vedova <delvedor@users.noreply.github.com >
2020-07-06 11:48:35 +02:00
9c76898fb1
[Backport 7.x] ESM support ( #1236 )
...
Co-authored-by: Tomas Della Vedova <delvedor@users.noreply.github.com >
2020-06-26 11:58:43 +02:00
24961869cc
Reorganized test and force 100% code coverage ( #1226 )
2020-06-15 08:38:46 +02:00
acce06c2af
[Backport 7.x] Helpers: avoid allocating new timers ( #1225 )
...
Co-authored-by: Tomas Della Vedova <delvedor@users.noreply.github.com >
2020-06-12 10:44:22 +02:00
fd59d66076
improved test coverage ( #1222 )
2020-06-08 09:44:40 +02:00
93cf8aa3c0
migrated to FakeTimers ( #1221 )
2020-06-08 09:44:40 +02:00
c99eac4699
[Backport 7.x] Improve helper concurrency ( #1216 )
...
Co-authored-by: Tomas Della Vedova <delvedor@users.noreply.github.com >
2020-06-04 13:35:38 +02:00
a4093a7338
[Backport 7.x] Added timeout support in bulk and msearch helpers ( #1211 )
...
Co-authored-by: Tomas Della Vedova <delvedor@users.noreply.github.com >
2020-06-03 10:34:57 +02:00
57fbbd0a8f
[Backport 7.x] Add multi search helper ( #1202 )
...
Co-authored-by: Tomas Della Vedova <delvedor@users.noreply.github.com >
2020-05-25 17:19:44 +02:00
35e587663c
[Backport 7.x] Use filter_path for improving the search helpers performances ( #1201 )
2020-05-25 14:26:58 +02:00
15a9479a81
[Backport 7.x] Force lowercase in all headers ( #1195 )
2020-05-14 16:11:12 +02:00
c343302772
[Backport 7.x] Fix 1153 ( #1161 )
2020-05-14 09:57:44 +02:00
51169d5efa
Support for Elasticsearch 7.7 ( #1192 )
2020-05-14 09:55:54 +02:00
a9a905409e
[Backport 7.x] ApiKey should take precedence over basic auth ( #1117 )
...
* ApiKey should take precedence over basic auth
* Updated docs
* Updated test
Co-authored-by: Tomas Della Vedova <delvedor@users.noreply.github.com >
2020-03-13 13:41:57 +01:00
ca23e0b23a
[Backport 7.x] Secure json parsing ( #1113 )
...
* Safe json parsing
* Updated test
Co-authored-by: Tomas Della Vedova <delvedor@users.noreply.github.com >
2020-03-13 09:29:40 +01:00
21683e6826
Skip compression in case of empty string body ( #1080 )
...
* Fix #1069
* Updated test
* Updated test
2020-02-04 10:30:49 +01:00
c0000aa207
Support for Elasticsearch 7.5 ( #1015 )
...
* API generation
* X-Opaque-Id support (#997 )
* Added X-Opaque-Id support
* Updated type definitions
* Updated test
* Updated docs
* Skip data_frame_transform_deprecated.* apis
* API generation
* Fix docs link
* Fix CI configuration
* Added enrich_user to default roles
* Added transform_admin ad transform_user to default roles
2019-12-03 14:31:59 +01:00
7472c5ee94
Support for Elasticsearch 7.4 ( #979 )
...
* Update code generation (#969 )
* Updated code generation scripts to use the new spec
* API generation
* Fix bad link
* Updated API reference doc (#945 )
* Updated API reference doc
* Updated docs script
* Fix issue; node roles are defaulting to true when undefined (fal… (#967 )
* Fix issue; nodeFilter was unable to filter because master, data, and ingest role were true if even they were false on the node.
* Test nodesToHost of BaseConnectionPool correctly maps node roles
* API generation
* Docker: use 7.4-SNAPSHOT
* API generation
* Use 7.4 stable
2019-10-02 11:17:32 +02:00
8c78f47ac3
Support for Elasticsearch 7.3 ( #928 )
2019-08-01 10:09:16 +02:00
0df026d3ff
Update standard requirement from ^12.0.1 to ^13.0.2 ( #906 )
2019-07-15 16:54:31 +02:00
060d4ae5fc
Remove auth data from inspect and toJSON in connection class ( #887 )
...
* Remove auth data from inspect and toJSON in connection class
* Updated test
2019-07-04 14:43:01 +02:00
bb0ff22fd2
Support for non-friendly chars in url username and password ( #858 )
...
* Support for non-friendly chars in url username and password
- Added auth option to Connection class
- Updated pool.addConnection
* Updated test
2019-05-20 17:10:17 +02:00
96a103b305
Added toJSON method to Connection class ( #849 )
...
* Added toJSON method to Connection class
* Updated test
* Updated typings
2019-05-14 12:01:21 -04:00
064807c5a9
Fix 843 ( #845 )
...
* Fix #843
* Updated test
2019-05-10 10:56:06 +02:00
907f9d085c
Added User-Agent header ( #807 )
...
* Added User-Agent header
* Updated test
* Updated user-agent format
* Updated test
2019-05-06 09:59:55 +02:00
132072b8ab
Simplify API wrappers ( #839 )
...
* Updated code generation
* API generation
* Updated test
* Updated code generation
* API generation
* API generation
2019-05-03 19:03:09 +02:00
b1458e3511
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:25:25 +02:00
9dacd9d9ee
Better handling of hostname/ip:port format ( #837 )
...
* Better handling of hostname/ip:port format
* Updated test
2019-05-03 17:25:04 +02:00
ef3126b361
Custom http agent support ( #810 )
2019-04-10 11:42:51 +02:00
02c656c364
Support for publish_address as hostname/ip:port ( #804 )
2019-04-09 12:06:22 +02:00
46bd14a36c
Better api error handling ( #790 )
...
* API generation
* Updated code generation
* Updated test
2019-03-26 12:04:44 +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
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
c990ed43d4
Updated test
2019-03-11 17:12:53 +01:00
cae38e6b2b
License ( #773 )
...
- Added license header
- Added license checker
- Fixed tap
2019-03-08 07:47:24 +01:00
fe3c48e83e
Updated test
2019-02-28 10:57:48 +01:00