Skip to content
This repository was archived by the owner on Jun 21, 2023. It is now read-only.

Commit f0d256f

Browse files
authored
Update CHANGELOG.MD
1 parent 1b71750 commit f0d256f

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed

packages/optimizely-sdk/CHANGELOG.MD

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,23 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.
1212
### Breaking Changes:
1313
- Removed `Promise` polyfill from browser entry point ([417](https://github.com/optimizely/javascript-sdk/pull/417))
1414

15+
### New Features
16+
17+
- Changed functionality of JSON schema validation in React Native, Node, and Browser entry points ([442](https://github.com/optimizely/javascript-sdk/pull/442))
18+
- Previosly, `skipJSONValidation` flag was used by the user to specify whether the JSON object should be validated
19+
- Now, `skipJSONValidation` has been removed entirely from all three entry points. Instead, a user will need to import `jsonSchemaValidator` from `@optimizely/optimizely-sdk/lib/utils/json_schema_validator` and pass it to `createInstance` to perform validation as shown below:
20+
21+
```js
22+
const optimizelySDK = require('@optimizely/optimizely-sdk');
23+
const jsonSchemaValidator = require('@optimizely/optimizely-sdk/lib/utils/json_schema_validator');
24+
25+
// Require JSON schema validation for the datafile
26+
var optimizelyClientInstance = optimizely.createInstance({
27+
datafile: datafile,
28+
jsonSchemaValidator: jsonSchemaValidator,
29+
});
30+
```
31+
1532
## [3.6.0-alpha.1] - March 4, 2020
1633

1734
### New Features

0 commit comments

Comments
 (0)