You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This commit was created on github.com and signed with GitHub’s verified signature.
The key has expired.
[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:
constoptimizelySDK=require('@optimizely/optimizely-sdk');constjsonSchemaValidator=require('@optimizely/optimizely-sdk/dist/optimizely.json_schema_validator.min');// Require JSON schema validation for the datafilevaroptimizelyClientInstance=optimizely.createInstance({datafile: datafile,jsonSchemaValidator: jsonSchemaValidator,});