Skip to content

Releases: Kameleoon/client-go

GO SDK 3.3.0

21 Jun 11:05
Compare
Choose a tag to compare

Features

Bug fixes

  • The SDK no longer logs failed tracking requests to the Data API when the user agent is identified as a bot (i.e., when the status code is 403).

GO SDK 3.2.0

10 Jun 05:04
Compare
Choose a tag to compare

Features

  • New targeting conditions are now available (some of them may require GetRemoteVisitorData pre-loaded data)
    • Browser Cookie
    • Operating System
    • IP Geolocation
    • Kameleoon Segment
    • Target Feature Flag
    • Previous Page
    • Number of Page Views
    • Time since First Visit
    • Time since Last Visit
    • Number of Visits Today
    • Total Number of Visits
    • New or Returning Visitor
    • Likelihood to convert
  • New Kameleoon Data types were introduced:

Bug fixes

  • Stability and performance improvements

GO SDK 3.1.0

29 Feb 12:24
Compare
Choose a tag to compare

Features

  • Added support for additional Data API servers across the world for even faster network requests.
  • Increased limit for requests to Data API: rate limits
  • Added GetVisitorWarehouseAudience method to retrieve all data associated with a visitor's warehouse audiences and adds it to the visitor.

GO SDK 3.0.3

06 Dec 09:24
Compare
Choose a tag to compare

Bug fixes

  • Stability and performance improvements

GO SDK 3.0.2

27 Nov 12:58
Compare
Choose a tag to compare

Bug fixes

  • Stability and performance improvements

GO SDK 3.0.1

24 Nov 11:57
Compare
Choose a tag to compare

Bug fixes

  • Stability and performance improvements

GO SDK 3.0.0

24 Nov 10:00
Compare
Choose a tag to compare

Breaking changes

  • Increased the minimum required version of the Go language to 1.18.
  • Renamed Client to KameleoonClient
  • Removed NewClient function. Instead, use KameleoonClientFactory
  • Removed RunWhenReady method. Instead, use WaitInit
  • Changed Config:
    • Renamed Config to KameleoonClientConfig
    • Changed the default request timeout to 10 seconds
    • Renamed the Timeout and timeout configuration fields to DefaultTimeout and default_timeout, respectively)
    • Renamed the ConfigUpdateInterval and config_update_interval configuration fields to RefreshInterval and refresh_interval, respectively.)
    • LoadConfig function and KameleoonClientConfig.Load can now return an error.
  • The Cfg field is no longer accessible.
  • Renamed GetFeatureAllVariables method to GetFeatureVariationVariables(https://developers.kameleoon.com/feature-management-and-experimentation/web-sdks/go-sdk/#getfeaturevariationvariables)
  • Removed all methods and errors related to experiments:
    • Methods:
      • TriggerExperiment
      • GetVariationAssociatedData
      • GetExperimentList
      • GetExperimentListForVisitor
    • Error types:
      • ErrExperimentConfigNotFound
      • ErrNotTargeted
      • ErrNotAllocated
      • ErrSiteCodeDisabled
  • Changed errors:
    • Moved error types into errs package
    • Added UnexpectedStatusCode error, which can be thrown by the following methods:
    • Renamed the following errors:
      • ErrFeatureConfigNotFound to FeatureNotFound
      • ErrFeatureVariableNotFound to FeatureVariableNotFound
      • ErrVariationNotFound to FeatureVariationNotFound
      • ErrCredentialsNotFound to ConfigCredentialsInvalid
      • ErrVisitorCodeNotValid to VisitorCodeInvalid
  • The new error FeatureEnvironmentDisabled may be returned by the following methods:
  • Changed Data types:
    • Browser:
      • Added constructor NewBrowser
      • Hid the Type and Version fields and replaced them with getter methods
    • Conversion:
    • CustomData:
      • Changed the data type of the ID field to int
      • Hid the ID field and replaced with a getter method
      • Renamed GetValues to Values
    • Device:
      • Added constructor NewDevice
      • Hid the Type field and replaced with a getter method
    • PageView:
      • Added constructors NewPageView, NewPageViewWithTitle
      • Hid the URL, Title, and Referrers fields and replaced with the getters
      • Changed url from optional to a required parameter
    • UserAgent:
      • Added constructor NewUserAgent
      • Hid Value field and replaced with the getter
  • Reworked cookies:
    • Removed SetVisitorCode method
    • Removed ObtainVisitorCode method
    • Removed parameter topLevelDomain from GetVisitorCode. Instead, use the top_level_domain parameter in the configuration
    • Made GetVisitorCode return (string, error) pair.
  • Removed methods that were deprecated in 2.x versions:
    • RetrieveDataFromRemoteSource
  • Removed visitor data max size:
    • Removed visitor_data_max_size configuration field
    • Removed VisitorDataMaxSize field from Config

Features

Bug fixes

  • Stability and performance improvements

GO SDK 2.3.1

03 Oct 13:52
Compare
Choose a tag to compare

Features

  • Added support for older versions of the Go language. You can now use version 1.12 or later (previously, the minimum version was 1.16).

GO SDK 2.3.0

12 Sep 09:36
Compare
Choose a tag to compare

Features

  • Added GetRemoteVisitorData method to fetch a visitor's remote data (with an optional capability to add the fetched data to the visitor).

Bug fixes

  • Stability and performance improvements

GO SDK 2.2.0

20 Aug 07:46
Compare
Choose a tag to compare
  • Stability and performance improvements
  • internal Migration to a new Data API (data.kameleoon.io)