v11.0.0
New features and improvements:
- Add support for the new Config JSON v6 format: update the config model and implement new features in setting evaluation logic. (configcat/common-js#96)
- Overhaul setting evaluation-related logging and make it consistent across SDKs.
- Performance improvements to setting evaluation (building of evaluation log is expensive, so it is skipped when info level logging is turned off).
Bug fixes:
- Hook event handlers which close over the client instance should not prevent the client from being collected by the GC when user has no more references to the client instance. (configcat/common-js#97)
- Prevent potential issues with weak references when awaiting
IConfigCatClient.waitForReady. Also, make observable if the initial cache sync-up fails.
Breaking changes (listed in the order of expected impact):
- Rename the
matchedEvaluationRuleproperty tomatchedTargetingRuleand thematchedEvaluationPercentageRuleproperty tomatchedPercentageOptioninIEvaluationDetails. - Throw
Errorwhen the SDK key passed toConfigCatProvideris in invalid format (unless the client is set up to use local-only flag override behavior). - Remove the deprecated
ClientReadyStateenum (it was renamed toClientCacheState). - Change config model (
IConfigand related interfaces/enums). - Slightly change the behavior of the
ClientReadyhook in Auto Poll mode to fire after the completion of the first fetch operation - regardless of success or failure - to make the behavior consistent with other SDKs. (configcat/common-js#94)