Skip to content

Commit dbe0acb

Browse files
authored
chore: Prepare for 4.1.0 release (#519)
* Prepare for 4.1.0 release * Include all changes from 4.1.0-beta to 4.1.0
1 parent 8ca4242 commit dbe0acb

File tree

7 files changed

+35
-6
lines changed

7 files changed

+35
-6
lines changed

packages/optimizely-sdk/CHANGELOG.MD

+29
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,32 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.
77

88
## [Unreleased]
99

10+
## [4.1.0] - July 7, 2020
11+
12+
### New Features
13+
14+
- Added support for JSON feature variables: new methods `getFeatureVariableJSON` and `getAllFeatureVariables` ([#467](https://github.com/optimizely/javascript-sdk/pull/467), [#470](https://github.com/optimizely/javascript-sdk/pull/470))
15+
- Added support for authenticated datafiles when running in Node.js. Pass `datafileAccessToken` within `datafileOptions` to request an authenticated datafile using the token ([#498](https://github.com/optimizely/javascript-sdk/pull/498), [#502](https://github.com/optimizely/javascript-sdk/pull/502)):
16+
```js
17+
const optimizelySDK = require('@optimizely/optimizely-sdk');
18+
var optimizelyClientInstance = optimizely.createInstance({
19+
sdkKey: '<Your SDK key>',
20+
datafileOptions: {
21+
datafileAccessToken: '<Your datafile access token>',
22+
}
23+
});
24+
```
25+
26+
### Bug fixes
27+
28+
- Fixed audience evaluation log level: changed from `INFO` to `DEBUG` ([#496](https://github.com/optimizely/javascript-sdk/pull/496))
29+
- Temporarily disabled React Native FSC tests ([#514](https://github.com/optimizely/javascript-sdk/pull/514))
30+
- Changed `getFeatureVariableJson` to `getFeatureVariableJSON` ([#516](https://github.com/optimizely/javascript-sdk/pull/516))
31+
1032
## [4.1.0-beta] - June 16, 2020
1133

1234
### New Features
35+
1336
- Added support for JSON feature variables: new methods `getFeatureVariableJSON` and `getAllFeatureVariables` ([#467](https://github.com/optimizely/javascript-sdk/pull/467), [#470](https://github.com/optimizely/javascript-sdk/pull/470))
1437
- Added support for authenticated datafiles when running in Node.js. Pass `datafileAccessToken` within `datafileOptions` to request an authenticated datafile using the token ([#498](https://github.com/optimizely/javascript-sdk/pull/498), [#502](https://github.com/optimizely/javascript-sdk/pull/502)):
1538
```js
@@ -23,6 +46,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.
2346
```
2447

2548
### Bug fixes
49+
2650
- Fixed audience evaluation log level: changed from `INFO` to `DEBUG` ([#496](https://github.com/optimizely/javascript-sdk/pull/496))
2751

2852
## [4.0.0] - April 30, 2020
@@ -59,22 +83,27 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.
5983
## [4.0.0-rc.2] - April 24, 2020
6084

6185
### Bug fixes
86+
6287
- Allow multiple instances to be created from the same datafile object ([#462](https://github.com/optimizely/javascript-sdk/pull/462))
6388

6489
## [4.0.0-rc.1] - April 17, 2020
6590

6691
### New Features
92+
6793
- ES module entry point for the browser - `"module"` property of `package.json` points to `dist/optimizely.browser.es.min.js` ([#445](https://github.com/optimizely/javascript-sdk/pull/445))
6894

6995
### Breaking Changes:
96+
7097
- Dropped support for Node.js version <8 ([#456](https://github.com/optimizely/javascript-sdk/pull/456))
7198

7299
### Bug fixes
100+
73101
- Node.js datafile manager uses gzip,deflate compression for requests ([#456](https://github.com/optimizely/javascript-sdk/pull/456))
74102

75103
## [4.0.0-alpha.1] - March 4, 2020
76104

77105
### Breaking Changes:
106+
78107
- Removed `Promise` polyfill from browser entry point ([417](https://github.com/optimizely/javascript-sdk/pull/417)).
79108
- Changed functionality of JSON schema validation in all entry points ([442](https://github.com/optimizely/javascript-sdk/pull/442)).
80109
- Previously, `skipJSONValidation` flag was used by the user to specify whether the JSON object should be validated.

packages/optimizely-sdk/lib/index.browser.tests.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,7 @@ describe('javascript-sdk', function() {
148148
optlyInstance.onReady().catch(function() {});
149149

150150
assert.instanceOf(optlyInstance, Optimizely);
151-
assert.equal(optlyInstance.clientVersion, '4.1.0-beta');
151+
assert.equal(optlyInstance.clientVersion, '4.1.0');
152152
});
153153

154154
it('should set the JavaScript client engine and version', function() {

packages/optimizely-sdk/lib/index.node.tests.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ describe('optimizelyFactory', function() {
9090
optlyInstance.onReady().catch(function() {});
9191

9292
assert.instanceOf(optlyInstance, Optimizely);
93-
assert.equal(optlyInstance.clientVersion, '4.1.0-beta');
93+
assert.equal(optlyInstance.clientVersion, '4.1.0');
9494
});
9595

9696
describe('event processor configuration', function() {

packages/optimizely-sdk/lib/index.react_native.tests.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ describe('javascript-sdk/react-native', function() {
8989
optlyInstance.onReady().catch(function() {});
9090

9191
assert.instanceOf(optlyInstance, Optimizely);
92-
assert.equal(optlyInstance.clientVersion, '4.1.0-beta');
92+
assert.equal(optlyInstance.clientVersion, '4.1.0');
9393
});
9494

9595
it('should set the Javascript client engine and version', function() {

packages/optimizely-sdk/lib/utils/enums/index.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -173,7 +173,7 @@ export var CONTROL_ATTRIBUTES = {
173173
export var JAVASCRIPT_CLIENT_ENGINE = 'javascript-sdk';
174174
export var NODE_CLIENT_ENGINE = 'node-sdk';
175175
export var REACT_CLIENT_ENGINE = 'react-sdk';
176-
export var NODE_CLIENT_VERSION = '4.1.0-beta';
176+
export var NODE_CLIENT_VERSION = '4.1.0';
177177

178178
export var VALID_CLIENT_ENGINES = [
179179
NODE_CLIENT_ENGINE,

packages/optimizely-sdk/package-lock.json

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

packages/optimizely-sdk/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@optimizely/optimizely-sdk",
3-
"version": "4.1.0-beta",
3+
"version": "4.1.0",
44
"description": "JavaScript SDK for Optimizely X Full Stack",
55
"module": "dist/optimizely.browser.es.min.js",
66
"main": "dist/optimizely.node.min.js",

0 commit comments

Comments
 (0)