11/**
2- * Copyright 2025, Optimizely
2+ * Copyright 2025-2026 , Optimizely
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.
@@ -22,7 +22,7 @@ import { extractOdpManager } from "./odp/odp_manager_factory";
2222import { extractVuidManager } from "./vuid/vuid_manager_factory" ;
2323import { RequestHandler } from "./utils/http_request_handler/http" ;
2424import { CLIENT_VERSION , DEFAULT_CMAB_BACKOFF_MS , DEFAULT_CMAB_CACHE_SIZE , DEFAULT_CMAB_CACHE_TIMEOUT_MS , DEFAULT_CMAB_RETRIES , JAVASCRIPT_CLIENT_ENGINE } from "./utils/enums" ;
25- import Optimizely from "./optimizely" ;
25+ import Optimizely , { OptimizelyOptions } from "./optimizely" ;
2626import { DefaultCmabClient } from "./core/decision_service/cmab/cmab_client" ;
2727import { CmabCacheValue , DefaultCmabService } from "./core/decision_service/cmab/cmab_service" ;
2828import { InMemoryLruCache } from "./utils/cache/in_memory_lru_cache" ;
@@ -76,7 +76,7 @@ export const getOptimizelyInstance = (config: OptimizelyFactoryConfig): Optimize
7676 logger : logger ?. child ( )
7777 } ) ;
7878
79- const optimizelyOptions = {
79+ const optimizelyOptions : OptimizelyOptions = {
8080 cmabService,
8181 clientEngine : clientEngine || JAVASCRIPT_CLIENT_ENGINE ,
8282 clientVersion : clientVersion || CLIENT_VERSION ,
@@ -91,6 +91,9 @@ export const getOptimizelyInstance = (config: OptimizelyFactoryConfig): Optimize
9191 eventProcessor,
9292 odpManager,
9393 vuidManager,
94+ // UNSTABLE_conditionEvaluators is not exposed in the public types, but we want to pass it through
95+ // for internal use cases.
96+ UNSTABLE_conditionEvaluators : ( config as any ) . UNSTABLE_conditionEvaluators ,
9497 } ;
9598
9699 return new Optimizely ( optimizelyOptions ) ;
0 commit comments