newrelic 13.3.0 → 13.3.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/NEWS.md CHANGED
@@ -1,3 +1,30 @@
1
+ ### v13.3.2 (2025-09-10)
2
+
3
+ #### Bug fixes
4
+
5
+ * Added defensive code for obtaining `protocol` in outbound http calls ([#3367](https://github.com/newrelic/node-newrelic/pull/3367)) ([ecda4e8](https://github.com/newrelic/node-newrelic/commit/ecda4e8fd3e2b4695bd900ba56f11babff186269))
6
+
7
+ #### Code refactoring
8
+
9
+ * Benchmark test names ([#3357](https://github.com/newrelic/node-newrelic/pull/3357)) ([229ff0d](https://github.com/newrelic/node-newrelic/commit/229ff0d1f1926ae937b8a1c54975c5ee8b1f0d2c))
10
+
11
+ #### Documentation
12
+
13
+ * Updated compatibility report ([#3351](https://github.com/newrelic/node-newrelic/pull/3351)) ([cf9f95d](https://github.com/newrelic/node-newrelic/commit/cf9f95db6339db793a15f9d19e2a29832bcb917e))
14
+
15
+ #### Continuous integration
16
+
17
+ * Benchmark tests run on push on main ([#3359](https://github.com/newrelic/node-newrelic/pull/3359)) ([c0f81c3](https://github.com/newrelic/node-newrelic/commit/c0f81c3562312c83330825c9c6fcdb969ab4da74))
18
+ * Changed NUGET_SOURCE workflow to variable ([#3364](https://github.com/newrelic/node-newrelic/pull/3364)) ([10692db](https://github.com/newrelic/node-newrelic/commit/10692db65ce0c3218d6ab2d494f0ab7f426ff817))
19
+ * Fix benchmark workflow ([#3365](https://github.com/newrelic/node-newrelic/pull/3365)) ([7da99b5](https://github.com/newrelic/node-newrelic/commit/7da99b5fd4c20d817222ffa66e08166f1c8a1785))
20
+ * Updated the `GH_RELEASE_TOKEN` to point to our bot user PAT instead of python agent ([#3363](https://github.com/newrelic/node-newrelic/pull/3363)) ([06eb5c1](https://github.com/newrelic/node-newrelic/commit/06eb5c1be0da5ffea4853e521223a711cc7b1805))
21
+
22
+ ### v13.3.1 (2025-09-09)
23
+
24
+ #### Bug fixes
25
+
26
+ * Default `requestParameters` to an object to avoid crash in `transaction.addRequestParameters` ([#3361](https://github.com/newrelic/node-newrelic/pull/3361)) ([ecd0d1d](https://github.com/newrelic/node-newrelic/commit/ecd0d1db70f9e9b3011af08ffe99ea3d6d56def9))
27
+
1
28
  ### v13.3.0 (2025-09-08)
2
29
 
3
30
  #### Features
@@ -7857,3 +7884,4 @@ Special thanks to Ryan Copley (@RyanCopley) for the contribution.
7857
7884
 
7858
7885
 
7859
7886
 
7887
+
@@ -269,7 +269,7 @@ function applySegment({ opts, makeRequest, host, port, hostname, segment, config
269
269
  obfuscatedPath = request.path
270
270
  }
271
271
 
272
- const proto = parsed.protocol || opts.protocol || 'http:'
272
+ const proto = parsed?.protocol || opts.protocol || 'http:'
273
273
 
274
274
  segment.captureExternalAttributes({
275
275
  protocol: proto,
@@ -62,7 +62,7 @@ function normalizeQueryStringParameters(event) {
62
62
  !event.multiValueQueryStringParameters ||
63
63
  Object.keys(event.multiValueQueryStringParameters).length === 0
64
64
  ) {
65
- return event.queryStringParameters
65
+ return event.queryStringParameters ?? {}
66
66
  }
67
67
  return Object.fromEntries(
68
68
  Object.entries(event.multiValueQueryStringParameters).map(([param, value]) => {
@@ -1452,6 +1452,7 @@ Transaction.prototype.addRequestParameters = addRequestParameters
1452
1452
  * @param {Object<string, string>} requestParameters of the request object
1453
1453
  */
1454
1454
  function addRequestParameters(requestParameters) {
1455
+ requestParameters ??= {}
1455
1456
  for (const [key, value] of Object.entries(requestParameters)) {
1456
1457
  this.trace.attributes.addAttribute(
1457
1458
  DESTS.NONE,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "newrelic",
3
- "version": "13.3.0",
3
+ "version": "13.3.2",
4
4
  "author": "New Relic Node.js agent team <nodejs@newrelic.com>",
5
5
  "license": "Apache-2.0",
6
6
  "contributors": [