From 8ee61818519e258fc77a7beb8e06a3201fa228be Mon Sep 17 00:00:00 2001 From: Fabrizio Demaria Date: Tue, 3 Dec 2024 16:38:52 +0100 Subject: [PATCH] feat!: Commit public API breaking changes --- api/Confidence_public_api.json | 48 ++++++++++++++++++---------------- 1 file changed, 26 insertions(+), 22 deletions(-) diff --git a/api/Confidence_public_api.json b/api/Confidence_public_api.json index da5e3e39..1403b9e0 100644 --- a/api/Confidence_public_api.json +++ b/api/Confidence_public_api.json @@ -12,7 +12,11 @@ }, { "name": "asyncFetch()", - "declaration": "public func asyncFetch()" + "declaration": "public func asyncFetch() async" + }, + { + "name": "isStorageEmpty()", + "declaration": "public func isStorageEmpty() -> Bool" }, { "name": "getEvaluation(key:defaultValue:)", @@ -23,44 +27,44 @@ "declaration": "public func getValue(key: String, defaultValue: T) -> T" }, { - "name": "contextChanges()", - "declaration": "public func contextChanges() -> AnyPublisher" + "name": "getContext()", + "declaration": "public func getContext() -> ConfidenceStruct" }, { - "name": "track(eventName:data:)", - "declaration": "public func track(eventName: String, data: ConfidenceStruct) throws" + "name": "putContext(key:value:)", + "declaration": "public func putContext(key: String, value: ConfidenceValue) async" }, { - "name": "track(producer:)", - "declaration": "public func track(producer: ConfidenceProducer)" + "name": "putContext(context:removedKeys:)", + "declaration": "public func putContext(context: ConfidenceStruct, removedKeys: [String] = []) async" }, { - "name": "flush()", - "declaration": "public func flush()" + "name": "putContext(context:)", + "declaration": "public func putContext(context: ConfidenceStruct) async" }, { - "name": "getContext()", - "declaration": "public func getContext() -> ConfidenceStruct" + "name": "putContextLocal(context:removeKeys:)", + "declaration": "public func putContextLocal(context: ConfidenceStruct, removeKeys removedKeys: [String] = [])" }, { - "name": "putContext(key:value:)", - "declaration": "public func putContext(key: String, value: ConfidenceValue)" + "name": "removeContext(key:)", + "declaration": "public func removeContext(key: String) async" }, { - "name": "putContext(context:)", - "declaration": "public func putContext(context: ConfidenceStruct)" + "name": "withContext(_:)", + "declaration": "public func withContext(_ context: ConfidenceStruct) -> ConfidenceEventSender" }, { - "name": "putContext(context:removeKeys:)", - "declaration": "public func putContext(context: ConfidenceStruct, removeKeys removedKeys: [String] = [])" + "name": "track(producer:)", + "declaration": "public func track(producer: ConfidenceProducer)" }, { - "name": "removeContext(key:)", - "declaration": "public func removeContext(key: String)" + "name": "track(eventName:data:)", + "declaration": "public func track(eventName: String, data: ConfidenceStruct) throws" }, { - "name": "withContext(_:)", - "declaration": "public func withContext(_ context: ConfidenceStruct) -> ConfidenceEventSender" + "name": "flush()", + "declaration": "public func flush()" } ] }, @@ -245,4 +249,4 @@ } ] } -] +] \ No newline at end of file