Skip to content

v151

Compare
Choose a tag to compare
@datenreisender datenreisender released this 23 Jan 15:00
· 216 commits to main since this release
1d8f67e

Changed

  • Renamed exported object usageData to telemetry and type
    UsageDataMetadata to TelemetryMetadata.
  • Renamed several function in the telemetry object:
    • enable()setUsersAgreedToTelemetry(true)
    • disable()setUsersAgreedToTelemetry(false)
    • reset()setUsersWithdrewTelemetryAgreement()
    • isEnabled()getIsSendingTelemetry() (which now does not log
      anymore)
    • sendUsageData()sendEvent()
  • In the component ErrorBoundary the property sendUsageData is renamed to
    sendTelemetryEvent.

Steps to upgrade when using this package

  • If they are imported from shared, rename usageData and UsageDataMetadata
    as well as the renamed functions mentioned above.
  • In usages of the component ErrorBoundary, rename the property
    sendUsageData to sendTelemetryEvent.