Skip to content

Commit 0e249b1

Browse files
Merge branch 'newrelic:main' into main
2 parents 5e78f3f + c289fb5 commit 0e249b1

File tree

97 files changed

+2161
-1007
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

97 files changed

+2161
-1007
lines changed

.github/workflows/benchmark-tests.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ jobs:
1616
strategy:
1717
fail-fast: false
1818
matrix:
19-
node-version: [18.x, 20.x, 22.x, 24.x]
19+
node-version: [20.x, 22.x, 24.x]
2020

2121
steps:
2222
- uses: actions/checkout@v4

.github/workflows/ci-workflow.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ jobs:
103103
strategy:
104104
fail-fast: false
105105
matrix:
106-
node-version: [18.x, 20.x, 22.x, 24.x]
106+
node-version: [20.x, 22.x, 24.x]
107107

108108
steps:
109109
- uses: actions/checkout@v4
@@ -135,7 +135,7 @@ jobs:
135135
strategy:
136136
fail-fast: false
137137
matrix:
138-
node-version: [18.x, 20.x, 22.x, 24.x]
138+
node-version: [20.x, 22.x, 24.x]
139139

140140
steps:
141141
- uses: actions/checkout@v4
@@ -171,7 +171,7 @@ jobs:
171171
strategy:
172172
fail-fast: false
173173
matrix:
174-
node-version: [18.x, 20.x, 22.x, 24.x]
174+
node-version: [20.x, 22.x, 24.x]
175175

176176
steps:
177177
- uses: actions/checkout@v4
@@ -222,7 +222,7 @@ jobs:
222222
strategy:
223223
fail-fast: false
224224
matrix:
225-
node-version: [18.x, 20.x, 22.x, 24.x]
225+
node-version: [20.x, 22.x, 24.x]
226226

227227
steps:
228228
- uses: actions/checkout@v4
@@ -245,7 +245,7 @@ jobs:
245245

246246
strategy:
247247
matrix:
248-
node-version: [18.x, 20.x, 22.x, 24.x]
248+
node-version: [20.x, 22.x, 24.x]
249249

250250
steps:
251251
- uses: actions/checkout@v4

.github/workflows/smoke-test-workflow.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ jobs:
2424

2525
strategy:
2626
matrix:
27-
node-version: [18.x, 20.x, 22.x, 24.x]
27+
node-version: [20.x, 22.x, 24.x]
2828

2929
steps:
3030
- uses: actions/checkout@v4

.github/workflows/versioned-security-agent.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ jobs:
6666
strategy:
6767
fail-fast: false
6868
matrix:
69-
node-version: [18.x, 20.x, 22.x, 24.x]
69+
node-version: [20.x, 22.x, 24.x]
7070

7171
steps:
7272
- uses: actions/checkout@v4

NEWS.md

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,32 @@
1+
### v13.0.0 (2025-07-23)
2+
#### ⚠ BREAKING CHANGES
3+
4+
This version of the Node.js agent is a SemVer MAJOR update and contains the following breaking changes. MAJOR versions may drop support for language runtimes that have reached End-of-Life according to the maintainer. Additionally, MAJOR versions may drop support for and remove certain instrumentation. For more details on these changes please see the [migration guide](https://docs.newrelic.com/docs/apm/agents/nodejs-agent/installation-configuration/update-nodejs-agent/).
5+
6+
* Dropped support for Node.js 18
7+
* Updated min supported version for `fastify` to 3.0.0, `pino` to 8.0.0, and `koa-router` to 12.0.0
8+
9+
#### Features
10+
11+
* Dropped support for Node.js 18 ([#3097](https://github.com/newrelic/node-newrelic/pull/3097)) ([cb7c080](https://github.com/newrelic/node-newrelic/commit/cb7c080aadb0afbf6a894c1abbd1c77bd6b11e31))
12+
* Updated min supported version for `fastify`, `pino`, and `koa-router` ([#3108](https://github.com/newrelic/node-newrelic/pull/3108)) ([ae9e21d](https://github.com/newrelic/node-newrelic/commit/ae9e21d94896e5c540927477b91113b5a38dc31c))
13+
14+
#### Documentation
15+
16+
* Updated AI Monitoring compatibility docs with new AWS Bedrock APIs ([#3230](https://github.com/newrelic/node-newrelic/pull/3230)) ([e1ff0d3](https://github.com/newrelic/node-newrelic/commit/e1ff0d3e2b1d3481f0c85e5c0b7d32bacae332ab))
17+
* Updated compatibility report ([#3237](https://github.com/newrelic/node-newrelic/pull/3237)) ([dc85e4e](https://github.com/newrelic/node-newrelic/commit/dc85e4e196f67038492deb5c13ecf76cd8161025))
18+
19+
20+
#### Tests
21+
22+
* Fixed `assertSegments` to insert all expected segments ([#3239](https://github.com/newrelic/node-newrelic/pull/3239)) ([de183fb](https://github.com/newrelic/node-newrelic/commit/de183fbe608fbf6fb97ad3508f506957b784d868))
23+
* Updated tests to mock outgoing calls to avoid issues in CI ([#3234](https://github.com/newrelic/node-newrelic/pull/3234)) ([66694c6](https://github.com/newrelic/node-newrelic/commit/66694c6885cd384967d0402bf6a2cfe6910f3d95))
24+
25+
#### Continuous integration
26+
27+
* Updated prepare release to exclude semver major copy for repos other than `node-newrelic` ([#3242](https://github.com/newrelic/node-newrelic/pull/3242)) ([82d9689](https://github.com/newrelic/node-newrelic/commit/82d968921b5fa6e4e7b3961285237e60a69b4dee))
28+
* Updated release prep to add copy around breaking changes ([#3199](https://github.com/newrelic/node-newrelic/pull/3199)) ([ca1131c](https://github.com/newrelic/node-newrelic/commit/ca1131cb3b2cea27b91a7b76ddbe39484bf9e032))
29+
130
### v12.25.0 (2025-07-09)
231

332
#### Features

THIRD_PARTY_NOTICES.md

Lines changed: 423 additions & 3 deletions
Large diffs are not rendered by default.

bin/conventional-changelog.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -206,7 +206,8 @@ class ConventionalChangelog {
206206
owner: self.org,
207207
repository: self.repo,
208208
isPatch: false,
209-
version: self.newVersion
209+
version: self.newVersion,
210+
includeSemverCopy: self.repo === 'node-newrelic'
210211
}
211212

212213
const markdownFormatter = conventionalChangelogWriter(context, {

bin/templates/template.hbs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,9 @@
44
{{#each noteGroups}}
55
#### ⚠ {{title}}
66

7+
{{#if @root.includeSemverCopy}}
78
This version of the Node.js agent is a SemVer MAJOR update and contains the following breaking changes. MAJOR versions may drop support for language runtimes that have reached End-of-Life according to the maintainer. Additionally, MAJOR versions may drop support for and remove certain instrumentation. For more details on these changes please see the [migration guide](https://docs.newrelic.com/docs/apm/agents/nodejs-agent/installation-configuration/update-nodejs-agent/).
9+
{{/if}}
810

911
{{#each notes}}
1012
* {{#if commit.scope}}**{{commit.scope}}:** {{/if}}{{text}}

bin/test/conventional-changelog.test.js

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,18 @@ const exampleCommit = {
5252
}
5353
}
5454

55+
const exampleMarkdownNoSemverMajorCopy = `### v1.0.0 (2020-04-03)
56+
#### ⚠ BREAKING CHANGES
57+
58+
59+
* **thing:** updated Thing to prevent modifications to inputs
60+
61+
#### Bug fixes
62+
63+
* **thing:** updated Thing to prevent modifications to inputs ([#123](https://github.com/newrelic/node-newrelic/pull/123)), closes [1234](https://github.com/newrelic/testRepo/issues/1234)
64+
* Thing no longer mutates provided inputs, but instead clones inputs before performing modifications. Thing will now always return an entirely new output
65+
`
66+
5567
const exampleMarkdown = `### v1.0.0 (2020-04-03)
5668
#### ⚠ BREAKING CHANGES
5769
@@ -205,6 +217,16 @@ test('Conventional Changelog Class', async (t) => {
205217
}
206218
)
207219

220+
await t.test(
221+
'generateMarkdownChangelog - should create the new Markdown changelog entry, skip semver major copy',
222+
async (t) => {
223+
const { ConventionalChangelog } = t.nr
224+
const changelog = new ConventionalChangelog({ newVersion: '1.0.0', previousVersion: '0.9.0', repo: 'testRepo' })
225+
const markdown = await changelog.generateMarkdownChangelog([exampleCommit])
226+
assert.equal(markdown, exampleMarkdownNoSemverMajorCopy)
227+
}
228+
)
229+
208230
await t.test(
209231
'writeMarkdownChangelog - should not update the markdown file if notes already exist',
210232
async (t) => {

changelog.json

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,17 @@
11
{
22
"repository": "newrelic/node-newrelic",
33
"entries": [
4+
{
5+
"version": "13.0.0",
6+
"changes": {
7+
"security": [],
8+
"bugfixes": [],
9+
"features": [
10+
"Dropped support for Node.js 18",
11+
"Updated min supported version for `fastify` to 3.0.0, `pino` to 8.0.0, and `koa-router` to 12.0.0"
12+
]
13+
}
14+
},
415
{
516
"version": "12.25.0",
617
"changes": {
@@ -1003,4 +1014,4 @@
10031014
}
10041015
}
10051016
]
1006-
}
1017+
}

0 commit comments

Comments
 (0)