From 892fa523ec013ecc2c727c10f97bf296f2b2f17b Mon Sep 17 00:00:00 2001 From: Nev <54870357+MSNev@users.noreply.github.com> Date: Tue, 21 Apr 2026 14:31:56 -0700 Subject: [PATCH 1/3] Potential fix for code scanning alert no. 4240: Semicolon insertion Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com> --- channels/applicationinsights-channel-js/src/Sender.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/channels/applicationinsights-channel-js/src/Sender.ts b/channels/applicationinsights-channel-js/src/Sender.ts index cd0546c03..2d2b83bcc 100644 --- a/channels/applicationinsights-channel-js/src/Sender.ts +++ b/channels/applicationinsights-channel-js/src/Sender.ts @@ -1014,7 +1014,7 @@ export class Sender extends BaseTelemetryPlugin implements IChannelControls { // } return _getOnComplete(payload, status, headers, response); - } + }; let payloadData = _getPayload(payload); // if (payloadData) { // payloadData.statsBeatData = {startTime: dateNow()}; From 360db0ce624ca8182435999c273e7b3055d4aa1a Mon Sep 17 00:00:00 2001 From: Nev <54870357+MSNev@users.noreply.github.com> Date: Tue, 21 Apr 2026 14:33:06 -0700 Subject: [PATCH 2/3] Potential fix for code scanning alert no. 5402: Semicolon insertion Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com> --- shared/AppInsightsCore/src/diagnostics/DiagnosticLogger.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/shared/AppInsightsCore/src/diagnostics/DiagnosticLogger.ts b/shared/AppInsightsCore/src/diagnostics/DiagnosticLogger.ts index b2a7fc9b7..5af3018d8 100644 --- a/shared/AppInsightsCore/src/diagnostics/DiagnosticLogger.ts +++ b/shared/AppInsightsCore/src/diagnostics/DiagnosticLogger.ts @@ -167,7 +167,7 @@ export class DiagnosticLogger implements IDiagnosticLogger { _debugExtMsg("throw" + (severity === eLoggingSeverity.CRITICAL ? "Critical" : "Warning"), message); } } - } + }; _self.debugToConsole = (message: string) => { _logToConsole("debug", message); From 09fe57cc297c678d82e59beeb40345b4dc8ef31c Mon Sep 17 00:00:00 2001 From: Copilot <198982749+Copilot@users.noreply.github.com> Date: Thu, 23 Apr 2026 14:51:51 -0700 Subject: [PATCH 3/3] Drop Node.js 16 from CI matrix; add Node.js 22 and 24 (#2731) * Initial plan * Drop Node 16 from CI matrix, add Node 22 and 24; update RELEASES.md Agent-Logs-Url: https://github.com/microsoft/ApplicationInsights-JS/sessions/496718a3-d402-48f7-9625-67f74b12449e Co-authored-by: MSNev <54870357+MSNev@users.noreply.github.com> --------- Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com> Co-authored-by: MSNev <54870357+MSNev@users.noreply.github.com> --- .github/workflows/ci.yml | 2 +- RELEASES.md | 7 ++++++- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 3254835bd..eca02d95b 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -18,7 +18,7 @@ jobs: strategy: matrix: - node-version: [ 16, 18, 20 ] + node-version: [ 18, 20, 22, 24 ] steps: - uses: actions/checkout@v4 diff --git a/RELEASES.md b/RELEASES.md index 026b08385..6c9eedc8e 100644 --- a/RELEASES.md +++ b/RELEASES.md @@ -2,7 +2,12 @@ > Note: ES3/IE8 compatibility will be removed in the future v3.x.x releases (scheduled for mid-late 2022), so if you need to retain ES3 compatibility you will need to remain on the 2.x.x versions of the SDK or your runtime will need install polyfill's to your ES3 environment before loading / initializing the SDK. - +## Unreleased Changes + +### CI / Tooling + +- **Dropped Node.js 16 from CI matrix**: Node.js 16 is End-of-Life and several dependencies (e.g. `puppeteer`, `@pnpm/error`) now require Node.js 18 or later. The CI pipeline no longer runs against Node.js 16. +- **Added Node.js 22 and 24 to CI matrix**: The CI pipeline now tests against Node.js 18, 20, 22, and 24. ## 3.4.1 (April 7th, 2026)