Skip to content

Commit d32c80f

Browse files
authored
feat(OptimizelyConfig): Add new fields to OptimizelyConfig (#698)
## Summary The following new public properties are added to OptimizelyConfig: - sdkKey - environmentKey - attributes - audiences - events - experimentRules and deliveryRules to OptimizelyFeature - audiences to OptimizelyExperiment ## Test plan All FSC tests OPTIMIZELY_CONFIG_V2 tests should pass. FSC OptimizelyConfig [link](https://app.travis-ci.com/github/optimizely/fullstack-sdk-compatibility-suite/builds/235034135)
1 parent a37cfb2 commit d32c80f

File tree

6 files changed

+1513
-160
lines changed

6 files changed

+1513
-160
lines changed

packages/optimizely-sdk/lib/core/condition_tree_evaluator/index.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/****************************************************************************
2-
* Copyright 2018, 2020, Optimizely, Inc. and contributors *
2+
* Copyright 2018, 2021, Optimizely, Inc. and contributors *
33
* *
44
* Licensed under the Apache License, Version 2.0 (the "License"); *
55
* you may not use this file except in compliance with the License. *
@@ -18,7 +18,7 @@ const AND_CONDITION = 'and';
1818
const OR_CONDITION = 'or';
1919
const NOT_CONDITION = 'not';
2020

21-
const DEFAULT_OPERATOR_TYPES = [AND_CONDITION, OR_CONDITION, NOT_CONDITION];
21+
export const DEFAULT_OPERATOR_TYPES = [AND_CONDITION, OR_CONDITION, NOT_CONDITION];
2222
export type ConditionTree<Leaf> = Leaf | unknown[];
2323

2424
type LeafEvaluator<Leaf> = (leaf: Leaf) => boolean | null;

0 commit comments

Comments
 (0)