@atlaskit/tmp-editor-statsig 4.10.0 → 4.11.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,13 @@
1
1
  # @atlaskit/editor-statsig-tmp
2
2
 
3
+ ## 4.11.0
4
+
5
+ ### Minor Changes
6
+
7
+ - [#142717](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/pull-requests/142717)
8
+ [`d9c2b4afdc497`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/d9c2b4afdc497) -
9
+ Add a null check for experiment config default value
10
+
3
11
  ## 4.10.0
4
12
 
5
13
  ### Minor Changes
@@ -66,7 +66,7 @@ function editorExperiment(experimentName, expectedExperimentValue) {
66
66
  }
67
67
  if (!_setup._product) {
68
68
  // This will be hit in the case of a product not having setup the editor experiment tooling
69
- return experimentConfig.defaultValue === expectedExperimentValue;
69
+ return (experimentConfig === null || experimentConfig === void 0 ? void 0 : experimentConfig.defaultValue) === expectedExperimentValue;
70
70
  }
71
71
 
72
72
  // Typescript is complaining here about accessing the productKeys property
@@ -58,7 +58,7 @@ export function editorExperiment(experimentName, expectedExperimentValue, option
58
58
  }
59
59
  if (!_product) {
60
60
  // This will be hit in the case of a product not having setup the editor experiment tooling
61
- return experimentConfig.defaultValue === expectedExperimentValue;
61
+ return (experimentConfig === null || experimentConfig === void 0 ? void 0 : experimentConfig.defaultValue) === expectedExperimentValue;
62
62
  }
63
63
 
64
64
  // Typescript is complaining here about accessing the productKeys property
@@ -59,7 +59,7 @@ export function editorExperiment(experimentName, expectedExperimentValue) {
59
59
  }
60
60
  if (!_product) {
61
61
  // This will be hit in the case of a product not having setup the editor experiment tooling
62
- return experimentConfig.defaultValue === expectedExperimentValue;
62
+ return (experimentConfig === null || experimentConfig === void 0 ? void 0 : experimentConfig.defaultValue) === expectedExperimentValue;
63
63
  }
64
64
 
65
65
  // Typescript is complaining here about accessing the productKeys property
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/tmp-editor-statsig",
3
- "version": "4.10.0",
3
+ "version": "4.11.0",
4
4
  "description": "Temp plugin to ease use of statsig feature flags until platform feature flags are available",
5
5
  "author": "Atlassian Pty Ltd",
6
6
  "license": "Apache-2.0",
@@ -36,7 +36,7 @@
36
36
  "./editor-experiments-test-utils": "./src/editor-experiments-test-utils.ts"
37
37
  },
38
38
  "dependencies": {
39
- "@atlaskit/feature-gate-js-client": "^5.0.0",
39
+ "@atlaskit/feature-gate-js-client": "^5.1.0",
40
40
  "@babel/runtime": "^7.0.0"
41
41
  },
42
42
  "peerDependencies": {