Skip to content

Releases: optimizely/javascript-sdk

Release 4.3.1

05 Oct 18:20
405bdd0
Compare
Choose a tag to compare

[4.3.1] - October 5, 2020

Bug fixes

  • Exported OptimizelyConfig and UserAttributes type in TypeScript type definitions (#587)

Release 4.3.0

01 Oct 22:55
4e790fd
Compare
Choose a tag to compare

[4.3.0] - October 1, 2020

New Features

  • Added support for version audience evaluation (#517)
  • Add datafile accessor (#564)

Release 4.2.1

10 Aug 22:48
d64a344
Compare
Choose a tag to compare

[4.2.1] - August 10, 2020

Bug fixes

  • Remove incorrect warning about invalid variation ID when user not bucketed into experiment or feature rollout (#549)

Release 4.2.0

31 Jul 18:52
0427cdd
Compare
Choose a tag to compare

[4.2.0] - July 31, 2020

New Features

  • Better offline support in React Native apps:
    • Persist downloaded datafiles in local storage for use in subsequent SDK initializations (#430)
    • Persist pending impression & conversion events in local storage (#517, #532)

Bug fixes

  • Fixed log messages for Targeted Rollouts (#515)

Release 4.1.0

07 Jul 22:12
dbe0acb
Compare
Choose a tag to compare

[4.1.0] - July 7, 2020

New Features

  • Added support for JSON feature variables: new methods getFeatureVariableJSON and getAllFeatureVariables (#467, #470)
  • Added support for authenticated datafiles when running in Node.js. Pass datafileAccessToken within datafileOptions to request an authenticated datafile using the token (#498, #502):
    const optimizelySDK = require('@optimizely/optimizely-sdk');
    var optimizelyClientInstance = optimizely.createInstance({
      sdkKey: '<Your SDK key>',
      datafileOptions: {
        datafileAccessToken: '<Your datafile access token>',
      }
    });

Bug fixes

  • Fixed audience evaluation log level: changed from INFO to DEBUG (#496)
  • Temporarily disabled React Native FSC tests (#514)
  • Changed getFeatureVariableJson to getFeatureVariableJSON (#516)

Release 4.1.0-beta

16 Jun 18:49
0e67f1c
Compare
Choose a tag to compare
Release 4.1.0-beta Pre-release
Pre-release

[4.1.0-beta] - June 16, 2020

New Features

  • Added support for JSON feature variables: new methods getFeatureVariableJson and getAllFeatureVariables (#467, #470)
  • Added support for authenticated datafiles when running in Node.js. Pass datafileAccessToken within datafileOptions to request an authenticated datafile using the token (#498, #502):
    const optimizelySDK = require('@optimizely/optimizely-sdk');
    var optimizelyClientInstance = optimizely.createInstance({
      sdkKey: '<Your SDK key>',
      datafileOptions: {
        datafileAccessToken: '<Your datafile access token>',
      }
    });

Bug fixes

  • Fixed audience evaluation log level: changed from INFO to DEBUG (#496)

Release 4.0.0

30 Apr 20:56
619dfbc
Compare
Choose a tag to compare

[4.0.0] - April 30, 2020

New Features

  • Removed lodash dependency
  • ES module entry point for the browser - "module" property of package.json points to dist/optimizely.browser.es.min.js (#445)

Breaking Changes

  • Removed Promise polyfill from browser entry point (417).
  • Changed functionality of JSON schema validation in all entry points (442).
    • Previously, skipJSONValidation flag was used by the user to specify whether the JSON object should be validated.
    • Now, skipJSONValidation has been removed entirely from all entry points. Instead, a user will need to import jsonSchemaValidator from @optimizely/optimizely-sdk/dist/optimizely.json_schema_validator.min.js and pass it to createInstance to perform validation as shown below:
    const optimizelySDK = require('@optimizely/optimizely-sdk');
    const jsonSchemaValidator = require('@optimizely/optimizely-sdk/dist/optimizely.json_schema_validator.min');
    
    // Require JSON schema validation for the datafile
    var optimizelyClientInstance = optimizely.createInstance({
      datafile: datafile,
      jsonSchemaValidator: jsonSchemaValidator,
    });
  • Dropped support for Node.js version <8 (#456)

Bug fixes

  • Changed track() to log a warning instead of an error when the event isn't in the datafile (#418)
  • Fixed return type for close method in TypeScript type definitions (#410)
  • Node.js datafile manager uses gzip,deflate compression for requests (#456)

Release 4.0.0-rc.2

24 Apr 19:12
6876656
Compare
Choose a tag to compare
Release 4.0.0-rc.2 Pre-release
Pre-release

[4.0.0-rc.2] - April 24, 2020

Bug fixes

  • Allow multiple instances to be created from the same datafile object (#462)

Release 4.0.0-rc.1

17 Apr 21:53
a093132
Compare
Choose a tag to compare
Release 4.0.0-rc.1 Pre-release
Pre-release

[4.0.0-rc.1] - April 17, 2020

New Features

  • ES module entry point for the browser - "module" property of package.json points to dist/optimizely.browser.es.min.js (#445)

Breaking Changes:

  • Dropped support for Node.js version <8 (#456)

Bug fixes

  • Node.js datafile manager uses gzip,deflate compression for requests (#456)

Release 4.0.0-alpha.1

02 Apr 17:16
babe5d7
Compare
Choose a tag to compare
Release 4.0.0-alpha.1 Pre-release
Pre-release

[4.0.0-alpha.1] - April 2, 2020

Breaking Changes:

  • Removed Promise polyfill from browser entry point (417)