pinojs / pino-elasticsearch

🌲 load pino logs into Elasticsearch
MIT License
179 stars 67 forks source link

Bump @elastic/elasticsearch from 7.17.0 to 8.0.0 #130

Closed dependabot[bot] closed 2 years ago

dependabot[bot] commented 2 years ago

Bumps @elastic/elasticsearch from 7.17.0 to 8.0.0.

Release notes

Sourced from @​elastic/elasticsearch's releases.

v8.0.0

Changelog

Changelog

Sourced from @​elastic/elasticsearch's changelog.

=== 8.0.0

[discrete] ==== Features

[discrete] [discrete] ===== Support for Elasticsearch v8.0

You can find all the API changes https://www.elastic.co/guide/en/elasticsearch/reference/8.0/release-notes-8.0.0.html[here].

[discrete] ===== Drop old typescript definitions

Breaking: Yes | Migration effort: Medium

The current TypeScript definitions will be removed from the client, and the new definitions, which contain request and response definitions as well will be shipped by default.

[discrete] ===== Drop callback-style API

Breaking: Yes | Migration effort: Large

Maintaining both API styles is not a problem per se, but it makes error handling more convoluted due to async stack traces. Moving to a full-promise API will solve this issue.

[source,js]

// callback-style api client.search({ params }, { options }, (err, result) => { console.log(err || result) })

// promise-style api client.search({ params }, { options }) .then(console.log) .catch(console.log)

// async-style (sugar syntax on top of promises) const response = await client.search({ params }, { options }) console.log(response)

If you are already using the promise-style API, this won't be a breaking change for you.

[discrete] ===== Remove the current abort API and use the new AbortController standard

Breaking: Yes | Migration effort: Small

... (truncated)

Commits


Dependabot compatibility score

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR: - `@dependabot rebase` will rebase this PR - `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it - `@dependabot merge` will merge this PR after your CI passes on it - `@dependabot squash and merge` will squash and merge this PR after your CI passes on it - `@dependabot cancel merge` will cancel a previously requested merge and block automerging - `@dependabot reopen` will reopen this PR if it is closed - `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually - `@dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
dependabot[bot] commented 2 years ago

Superseded by #136.