github microsoft/ApplicationInsights-JS 2.4.1

latest releases: nightly-240412-01, nightly-240410-01, nightly-240403-01...
4 years ago

v 2.4.1...2.4.0

ES3 Support (Complete)

With this release the source files can be loaded in an ES3 environment (IE7/8) and send requests to the server. As part of this change you will now receive requests from users using an older browser, prior to this version users using an ES3 base browser will (most likely) have been getting a javascript error, which would have caused no data to be sent.

Enable support for reusing plugins in multiple instances of AppInsights #1132

We have added upport to enable reusing the same plugin in different instances of AppInsights, owned by the same application (but using different Instrumentation keys) is required so that they can reuse a single Plugin instance for all instances.

This changes introduces a new IProcessTelemetryContext interface that is passed to the processTelemetry() method so that the plugins can use the current request context for the event rather than the context during initialization.

To assist with creating plugins we have also introduced a base class that you can use for creating new plugins BaseTelemetryPlugin, details are included on the Readme

Changelog

  • #1175 [BUG] Typescript build with 2.4.0 breaks #1173
  • #1174 Legacy Manage SameSite Cookie Settings #1126
  • #1172 Update SameSite logic to handle UserAgents that don't support the attribute
  • #1169 Fixup Rollup ES3 plugin package.json
  • #1167 Add better support for referencing global objects from a window and web workers
  • #1164 add null check for sessionManager
  • #1162 [BUG]AppInsights not working in IE7 #1142
  • #1161 include response error data
  • #1159 Export Common Telemetry classes in Snippet
  • #1157 fix: only change SameSite when secure
  • #1154 Queue events when track is called and not all extensions are initialized
  • #1153 Do not clean telemetryInitializers during initialization
  • #1150 Remove interface code from API reference and link
  • #1135 fix: dont block corr on empty location host
  • #1133 Enable support for reusing plugins in multiple instances of AppInsights #1132
  • #1129 fix: console logging not honoring setting
  • #1122 fix anchor link
  • #1116 Move tslib to sku dependencies
  • #1113 [Enhancement] AI is not catching all "Unload" dom events #1080
  • #1070 Added support for logging unhandled promise rejections (#1013)

Legacy 1.0.21

  • #1174 Legacy Manage SameSite Cookie Settings #1126 (UserAgent checks for unsupported SameSite issues)

Don't miss a new ApplicationInsights-JS release

NewReleases is sending notifications on new releases.