You're Invited:Meet the Socket Team at BlackHat and DEF CON in Las Vegas, Aug 4-6.RSVP
Socket
Book a DemoInstallSign in
Socket

@optimizely/optimizely-sdk

Package Overview
Dependencies
Maintainers
1
Versions
87
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@optimizely/optimizely-sdk - npm Package Versions

1
46
9

4.3.3

Diff
o
optimizely-fullstack
published 4.3.3 •

Changelog

Source

[4.3.3] - October 7, 2020

Bug fixes

  • Exported OptimizelyVariable, OptimizelyVariation, OptimizelyExperiment, OptimizelyFeature, UserProfileService, and UserProfile types from TypeScript type definitions (#594)
o
optimizely-fullstack
published 4.3.2 •

Changelog

Source

[4.3.2] - October 6, 2020

Bug fixes

  • Fixed return type of getAllFeatureVariables method and dispatchEvent method signature of EventDispatcher interface in TypeScript type definitions (#576)
  • Don't log an error message when initialized with sdkKey, but no datafile (#589)
o
optimizely-fullstack
published 4.3.1 •

Changelog

Source

[4.3.1] - October 5, 2020

Bug fixes

  • Exported OptimizelyConfig and UserAttributes type in TypeScript type definitions (#587)
o
optimizely-fullstack
published 4.3.0 •

Changelog

Source

[4.3.0] - October 1, 2020

New Features

  • Added support for version audience evaluation (#517)
  • Add datafile accessor (#564)
o
optimizely-fullstack
published 4.2.1 •

Changelog

Source

[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)
o
optimizely-fullstack
published 4.2.0 •

Changelog

Source

[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)
o
optimizely-fullstack
published 4.1.0 •

Changelog

Source

[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)
o
optimizely-fullstack
published 4.1.0-beta •

Changelog

Source

[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)
o
optimizely-fullstack
published 4.0.0 •

Changelog

Source

[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)
o
optimizely-fullstack
published 4.0.0-rc.2 •

Changelog

Source

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

Bug fixes

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