Skip to content

Latest commit

 

History

History
226 lines (198 loc) · 16 KB

CHANGELOG.md

File metadata and controls

226 lines (198 loc) · 16 KB

Changelog

All notable changes to this project will be documented in this file.

3.3.0 - 2024-06-21

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).

3.2.0 - 2024-06-10

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

3.1.0 - 2024-02-29

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.

3.0.3 - 2023-12-06

Bug fixes

  • Stability and performance improvements

3.0.2 - 2023-11-27

Bug fixes

  • Stability and performance improvements

3.0.1 - 2023-11-24

Bug fixes

  • Stability and performance improvements

3.0.0 - 2023-11-24

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

2.3.1 - 2023-10-03

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).

2.3.0 - 2023-09-12

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

2.2.0 - 2023-08-20

  • Stability and performance improvements

2.1.1 - 2023-06-28

2.1.0 - 2023-04-05

2.0.6 - 2023-03-24

  • Minor bug fixing for is among the values operator for CustomData.
  • Renaming of methods:

2.0.5 - 2023-03-13

  • Added possibility for CustomData to use variable argument list of values
  • Fixed issue with TriggerExperiment returning wrong error for client with no experiments
  • Fixed issue with provided Config with not specified values; related to initialization

2.0.4 - 2023-03-07

2.0.3 - 2023-02-27

  • Minor bug fixing

2.0.2 - 2023-01-02

  • Removed dependency on first version

2.0.1 - 2023-01-02

  • Fixed issue with distribution of v2

2.0.0 - 2023-01-02

1.0.6 - 2022-04-12

1.0.5 - 2022-02-28

1.0.4 - 2021-12-10

1.0.3 - 2021-12-06

  • GraphQL API is using now instead of REST
  • Improved SDK stability

1.0.2 - 2021-12-03

1.0.1 - 2021-11-30

  • Improved SDK stability

1.0.0 - 2021-06-24

  • Added Fasthttp