Skip to content

Releases: microsoft/applicationinsights-react-js

19.4.0

Choose a tag to compare

@MSNev MSNev released this 08 Apr 20:15
fafc408

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.initialize method signature now properly matches ITelemetryPlugin interface requirements
    • Changed from IConfiguration & IConfig to IConfiguration to 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

Application Insights 3.4.1 Breaking Changes

  • Distributed Tracing Refactoring (Details):

    • The TelemetryTrace class has been removed; functionality integrated into W3C trace state implementation
    • appInsights.context.telemetryTrace is now deprecated (adapter to core.getTraceCtx())
    • Core instance now always has a valid traceId (either generated or inherited from parent trace context)
  • Flush Method Signature: Parameter renamed from async to isAsync in IChannelControls interface

    • 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-common have 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-common to @microsoft/applicationinsights-core-js
  • See the Migration Guide for details
  • This version of the plugin now only uses @microsoft/applicationinsights-core-js and 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.ReactNode for 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: ReactPlugin function signatures now properly match BaseTelemetryPlugin interface
    • Corrected initialize method parameter types for TypeScript compatibility
    • Fixed processTelemetry to ensure valid context handling
  • 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

New Contributors

Full Changelog: 19.3.8...19.4.0

19.3.8

Choose a tag to compare

@Karlie-777 Karlie-777 released this 24 Sep 19:37
2292faf

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

Choose a tag to compare

@Karlie-777 Karlie-777 released this 18 Jul 19:02
af21b05

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

New Contributors

Full Changelog: 19.3.6...19.3.7

19.3.6

Choose a tag to compare

@siyuniu-ms siyuniu-ms released this 30 Apr 20:25
907b2b6

What's Changed

New Contributors

Full Changelog: 18.3.6...19.3.6

18.3.6

Choose a tag to compare

@siyuniu-ms siyuniu-ms released this 13 Mar 23:45
4fcb9e2

What's Changed

Full Changelog: 17.3.6...18.3.6

17.3.6

Choose a tag to compare

@siyuniu-ms siyuniu-ms released this 07 Mar 22:02
de46dd3

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

Choose a tag to compare

@siyuniu-ms siyuniu-ms released this 07 Mar 20:25
4053902

What's Changed

Full Changelog: 17.3.4...17.3.5

17.3.4

Choose a tag to compare

@siyuniu-ms siyuniu-ms released this 31 Oct 20:18
4c71fff

What's Changed

Full Changelog: 17.3.3...17.3.4

17.3.3

Choose a tag to compare

@siyuniu-ms siyuniu-ms released this 30 Sep 17:02
a2bbef6

What's Changed

Full Changelog: 17.3.2...17.3.3

17.3.2

Choose a tag to compare

@siyuniu-ms siyuniu-ms released this 03 Sep 23:00
4f67921

This release contains a potential type break change due to the definition of the expCfg in IConfiguration

What's Changed

Full Changelog: 17.3.1...17.3.2