Skip to content

Commit

Permalink
3.25.0 (#2466)
Browse files Browse the repository at this point in the history
Also, bump to latest ES client canary release and update tests for it.
  • Loading branch information
trentm authored Nov 24, 2021
1 parent 225627b commit 832c285
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 12 deletions.
9 changes: 2 additions & 7 deletions CHANGELOG.asciidoc
Original file line number Diff line number Diff line change
Expand Up @@ -29,13 +29,8 @@ Notes:
=== Node.js Agent version 3.x
==== Unreleased
[float]
===== Breaking changes
[float]
===== Features
[[release-notes-3.25.0]]
==== 3.25.0 2021/11/24
[float]
===== Bug fixes
Expand Down
1 change: 1 addition & 0 deletions docs/upgrading.asciidoc
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ The table below is a simplified description of this policy.
[options="header"]
|====
|Agent version |EOL Date |Maintained until
|3.25.x |2023-05-24 |3.26.0
|3.24.x |2023-05-09 |3.25.0
|3.23.x |2023-04-25 |3.24.0
|3.22.x |2023-04-21 |3.23.0
Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "elastic-apm-node",
"version": "3.24.0",
"version": "3.25.0",
"description": "The official Elastic APM agent for Node.js",
"main": "index.js",
"types": "index.d.ts",
Expand Down Expand Up @@ -118,7 +118,7 @@
"@babel/core": "^7.8.4",
"@babel/preset-env": "^7.8.4",
"@elastic/elasticsearch": "^7.15.0",
"@elastic/elasticsearch-canary": "^8.0.0-canary.35",
"@elastic/elasticsearch-canary": "^8.0.0-canary.37",
"@hapi/hapi": "^20.1.2",
"@koa/router": "^9.0.1",
"@types/node": "^13.7.4",
Expand Down
8 changes: 5 additions & 3 deletions test/instrumentation/modules/@elastic/elasticsearch.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -209,10 +209,12 @@ if (semver.gte(process.version, '10.0.0')) {
sort: 'myField:asc'
}
let statement
// ES client version 8 merges options for *most* APIs into a single body
// object, instead of separate query params and body.
// ES client version 8 merges options into `body` differently from earlier
// versions.
if (semver.satisfies(esVersion, '>=8', { includePrerelease: true })) {
statement = '{"query":{"match":{"request":"bar"}},"size":2,"sort":"myField:asc"}'
statement = `sort=myField%3Aasc
{"query":{"match":{"request":"bar"}},"size":2}`
} else {
statement = `size=2&sort=myField%3Aasc
Expand Down

0 comments on commit 832c285

Please sign in to comment.