diff --git a/flagsmith-core.ts b/flagsmith-core.ts index 73ddec7..88d6cc2 100644 --- a/flagsmith-core.ts +++ b/flagsmith-core.ts @@ -273,7 +273,7 @@ const Flagsmith = class { withTraits?: ITraits|null= null cacheOptions = {ttl:0, skipAPI: false, loadStale: false} async init(config: IInitConfig) { - const evaluationContext = toEvaluationContext(config.evaluationContext || {}); + const evaluationContext = toEvaluationContext(config.evaluationContext || this.evaluationContext); try { const { environmentID, diff --git a/lib/flagsmith-es/package.json b/lib/flagsmith-es/package.json index 6187eaf..befb15e 100644 --- a/lib/flagsmith-es/package.json +++ b/lib/flagsmith-es/package.json @@ -1,6 +1,6 @@ { "name": "flagsmith-es", - "version": "7.0.0", + "version": "7.0.1", "description": "Feature flagging to support continuous development. This is an esm equivalent of the standard flagsmith npm module.", "main": "./index.js", "type": "module", diff --git a/lib/flagsmith/package.json b/lib/flagsmith/package.json index 9d16522..4bfdf3e 100644 --- a/lib/flagsmith/package.json +++ b/lib/flagsmith/package.json @@ -1,6 +1,6 @@ { "name": "flagsmith", - "version": "7.0.0", + "version": "7.0.1", "description": "Feature flagging to support continuous development", "main": "./index.js", "repository": { diff --git a/lib/react-native-flagsmith/package.json b/lib/react-native-flagsmith/package.json index 2c7c84a..4b3cf7c 100644 --- a/lib/react-native-flagsmith/package.json +++ b/lib/react-native-flagsmith/package.json @@ -1,6 +1,6 @@ { "name": "react-native-flagsmith", - "version": "7.0.0", + "version": "7.0.1", "description": "Feature flagging to support continuous development", "main": "./index.js", "repository": {