Skip to content

2.0.0

Compare
Choose a tag to compare
@github-actions github-actions released this 21 Mar 21:31
· 55 commits to main since this release

Breaking Changes Alert

Fix:

  • Fixed the issue that identify call right after sdk init reports incorrect user info #21
  • Update the SDK to follow .net/c# standard naming conventions (see a list of breaking changes below) #26

Feature:

  • Added Page call for server use case #32
  • Enhanced ContextPlugin to capture os and platform info #32
  • Smart defaults on storage data path #25
    • Now you don’t have to explicitly provide a persistDataPath anymore, the SDK recognizes the platform and defaults it for you.
  • Customizable storage strategy #23
    • By default SDK stores data to disk
    • User now can config analytics to be completely in-memory (stateless) by providing an InMemoryStorageProvider
    • User can customize their own storage strategy by implementing IStorage and IStorageProvider

Breaking changes:

  • Analytics

    • Timeline capitalized
    • UserIdAsync removed, use UserId instead
    • AnonymousIdAsync removed, use AnonymousId instead
    • TraitsAsync removed, use Traits instead
  • Configuration

    • WriteKey capitalized
    • FlushAt capitalized
    • FlushInterval capitalized
    • AutoAddSegmentDestination capitalized
    • ApiHost capitalized
    • CdnHost capitalized
    • DefaultSettings capitalized
    • UseSynchronizeDispatcher capitalized
    • ExceptionHandler capitalized
    • persistentDataPath removed
    • Configuration() parameters changes - removed persistentDataPath removed, storageProvider added
  • Plugin

    • Type capitalized
    • Analytics capitalized
  • DestinationPlugin

    • Type capitalized
    • Key capitalized
  • ContextPlugin

    • Type capitalized
  • SegmentDestination

    • Key capitalized
  • Settings

    • Integrations capitalized
    • Plan capitalized
    • EdgeFunctions capitalized
  • UserInfo

    • IsNull capitalized
  • RawEvent

    • Type capitalized
    • AnonymousId capitalized
    • MessageId capitalized
    • UserId capitalized
    • Timestamp capitalized
    • Context capitalized
    • Integrations capitalized
    • Metrics capitalized
  • TrackEvent

    • All changes from RawEvent
    • Type capitalized
    • Event capitalized
    • Properties capitalized
  • IdentifyEvent

    • All changes from RawEvent
    • Type capitalized
    • Traits capitalized
  • ScreenEvent

    • All changes from RawEvent
    • Type capitalized
    • Name capitalized
    • Category capitalized
    • Properties capitalized
  • GroupEvent:

    • All changes from RawEvent
    • Type capitalized
    • GroupId capitalized
    • Traits capitalized
  • AliasEvent

    • All changes from RawEvent
    • Type capitalized
    • PreviousId capitalized
  • StorageConstants

    • Value capitalized