Releases: microsoft/applicationinsights-react-js
Release list
19.4.0
Breaking Changes
TThis release bumps the Application Insights dependency from ^3.3.10 to ^3.4.1., which contains potential breaking changes:
The 3.4.x release of Application Insights includes significant changes that may affect your application. Please review the following before upgrading.
This version is NOT supported on any eariler versions of Application Insights.
Type Signature Compatibility
- Fixed:
ReactPlugin.initializemethod signature now properly matchesITelemetryPlugininterface requirements- Changed from
IConfiguration & IConfigtoIConfigurationto follow TypeScript contravariance rules - Impact: Should resolve "Type 'ReactPlugin' is not assignable to type 'ITelemetryPlugin'" errors that users encountered in previous releases
- Fixes parameter type compatibility issues when passing ReactPlugin instance to SDK initialization
- Changed from
Application Insights 3.4.1 Breaking Changes
-
Distributed Tracing Refactoring (Details):
- The
TelemetryTraceclass has been removed; functionality integrated into W3C trace state implementation appInsights.context.telemetryTraceis now deprecated (adapter tocore.getTraceCtx())- Core instance now always has a valid
traceId(either generated or inherited from parent trace context)
- The
-
Flush Method Signature: Parameter renamed from
asynctoisAsyncinIChannelControlsinterface- Only affects code using named parameters
Package Deprecation Notice
@microsoft/applicationinsights-common is now DEPRECATED and will be removed in Application Insights 4.0.0:
- All exports from
applicationinsights-commonhave been merged into@microsoft/applicationinsights-core-js - The common package continues to work as a compatibility shim (re-exports from Core)
- Action Required: Update imports from
@microsoft/applicationinsights-commonto@microsoft/applicationinsights-core-js - See the Migration Guide for details
- This version of the plugin now only uses
@microsoft/applicationinsights-core-jsand therefore will no longer work with older releases.
Significant Changes
- Update to Application Insights 3.4.1 (from 3.3.10):
- Enhanced W3C trace state support and distributed tracing improvements
- Enhanced cookie management with memory caching when cookies are disabled
- OsPlugin reliability improvements with proactive OS retrieval
- URL redaction enhancements for improved flexibility
- Better handling of dependency tracking with W3C trace state
Security Updates
- #169: Upgrade React and react-dom to 19.1.2 to address CVE-2025-55182 (CVSS 10.0)
- Critical security vulnerability: unauthenticated remote code execution in React Server Components
- Action Required: All users should update immediately
Changelog
- #135: Enhance AppInsightsErrorBoundary to Pass Error Details to onError Component
- #156: Fix: use
React.ReactNodefor children prop type (improved TypeScript compatibility) - #171: Fix vulnerable dependencies
- Updated multiple package dependencies to address security vulnerabilities
- Updated npm version in rush config
- #169: Fix security vulnerability CVE-2025-55182 in React 19.1.2
- Fixed:
ReactPluginfunction signatures now properly matchBaseTelemetryPlugininterface- Corrected
initializemethod parameter types for TypeScript compatibility - Fixed
processTelemetryto ensure valid context handling
- Corrected
- Updated to Application Insights Core 3.4.1 and Properties 3.4.1
Migration Notes
If you've encountered TypeScript errors like "Type 'ReactPlugin' is not assignable to type 'ITelemetryPlugin'", this release resolves those issues. No code changes should be required in your application.
For the Application Insights common package deprecation, you should begin migrating your imports:
// Before (deprecated)
import { IConfig, ContextTagKeys } from "@microsoft/applicationinsights-common";
// After (recommended)
import { IConfig, ContextTagKeys } from "@microsoft/applicationinsights-core-js";For full details see the Application Insights JS 3.4.1 release notes.
What's Changed
- fix(security): upgrade react and react-dom to 19.1.2 for CVE-2025-55182 by Trask Stalnaker (@trask) in #169
- Fix vulnerable dependencies by Hector Hernandez (@hectorhdzg) in #171
- Update Error Boundary component
childrenprop to acceptReactNodeby Tima Gixe (@timagixe) in #156 - Enhance AppInsightsErrorBoundary to Pass Error Details to onError Component by Giovanni (@floccini) in #135
- [Release] Increase version to 19.4.0 by Nev (@MSNev) in #172
New Contributors
- Trask Stalnaker (@trask) made their first contribution in #169
- Tima Gixe (@timagixe) made their first contribution in #156
- Giovanni (@floccini) made their first contribution in #135
Full Changelog: 19.3.8...19.4.0
19.3.8
Changelog
- #167: Update to ApplicationInsights 3.3.10
What's Changed
- [Pre-Release] Update Application Insights dependencies to v3.3.10 by Karlie-777 in #167
- [Release] Increase version to 19.3.8 by Karlie-777 in #168
Full Changelog: 19.3.7...19.3.8
19.3.7
Changelog
- #139: Update to ApplicationInsights 3.3.9
- #160: Update Components to address Component Governance issues
- #164: Removing jquery reference
- #158: Fix for IAppInsights is incomplete
What's Changed
- Update Components to address governance issues by Nev (@MSNev) in #159
- Update Components to address Component Governance issues by Nev (@MSNev) in #160
- Updated react-js package in sample app to match the release by Radhika Gupta (@rads-1996) in #161
- Removing jquery reference by Hector Hernandez (@hectorhdzg) in #164
- [Pre-Release] Update Application Insights dependencies to v3.3.9 by Karlie-777 in #165
- [Release] Increase version to 19.3.7 by Karlie-777 in #166
New Contributors
- Hector Hernandez (@hectorhdzg) made their first contribution in #164
Full Changelog: 19.3.6...19.3.7
19.3.6
What's Changed
- [main] Update v18.3.6 branch link in the read to identify the new branch by Nev (@MSNev) in #152
- [main] Prepare main to support react 19 by siyuniu-ms in #153
- Fix for BUG(#19) - IAppInsights is incomplete by Radhika Gupta (@rads-1996) in #158
- [Release] Increase version to 19.3.6 by siyuniu-ms in #154
New Contributors
- Radhika Gupta (@rads-1996) made their first contribution in #158
Full Changelog: 18.3.6...19.3.6
18.3.6
17.3.6
What's Changed
- [Pre-Release] Update Application Insights dependencies to v3.3.6 by siyuniu-ms in #144
- [Release] Increase version to 17.3.6 by siyuniu-ms in #145
Full Changelog: 17.3.5...17.3.6
17.3.5
What's Changed
- Add AI version update script to assist with automated integration testing by Nev (@MSNev) in #127
- Update Stale Issue action by Nev (@MSNev) in #130
- Update Lock Issue action by Nev (@MSNev) in #131
- Add GitHub Action to Detect TypeScript Version Conflicts by siyuniu-ms in #128
- Update rush.json version by Nev (@MSNev) in #138
- Temporarily Disable NodeJS with Grunt Actions for Pull Requests by Karlie-777 in #140
- Update to ApplicationInsights 3.3.5 by Karlie-777 in #139
- [Release] Increase version to 17.3.5 by Karlie-777 in #141
Full Changelog: 17.3.4...17.3.5
17.3.4
What's Changed
- Bump http-proxy-middleware from 2.0.6 to 2.0.7 in /sample/applicationinsights-react-sample by Dependabot (@dependabot) in #122
- Bump micromatch from 4.0.5 to 4.0.8 in /sample/applicationinsights-react-sample by Dependabot (@dependabot) in #123
- [Pre-Release] Update Application Insights dependencies to v3.3.4 by siyuniu-ms in #124
- [Release] Increase version to 17.3.4 by siyuniu-ms in #126
Full Changelog: 17.3.3...17.3.4
17.3.3
What's Changed
- [Pre-Release] Update Application Insights dependencies to v3.3.3 by siyuniu-ms in #118
- Bump serve-static from 1.15.0 to 1.16.2 by Dependabot (@dependabot) in #115
- Bump express from 4.19.2 to 4.21.0 in /sample/applicationinsights-react-sample by Dependabot (@dependabot) in #116
- Bump micromatch from 4.0.5 to 4.0.8 by Dependabot (@dependabot) in #112
- [Release] Increase version to 17.3.3 by siyuniu-ms in #120
Full Changelog: 17.3.2...17.3.3
17.3.2
This release contains a potential type break change due to the definition of the expCfg in IConfiguration
What's Changed
- Bump webpack from 5.89.0 to 5.94.0 in /sample/applicationinsights-react-sample by Dependabot (@dependabot) in #111
- [doc] add document for how to fix type error in extensions for #95 by siyuniu-ms in #107
- Bump braces from 3.0.2 to 3.0.3 by Dependabot (@dependabot) in #109
- [Pre-Release] Update Application Insights dependencies to v3.3.2 by siyuniu-ms in #113
- [Release] Increase version to 17.3.2 by siyuniu-ms in #114
Full Changelog: 17.3.1...17.3.2