From 85b73227e7bbee0d4e75f4087953f510287f6a6f Mon Sep 17 00:00:00 2001 From: Gordon Brander Date: Thu, 31 Aug 2023 18:27:28 -0400 Subject: [PATCH] Un-deprecate cursor protocols (#39) During discussion, it was determined that deprecating these protocols is too onerous at this time. We may re-introduce a deprecation at a later date, or provide some sort of compatibility layer between old and new update approaches. --- Sources/ObservableStore/ObservableStore.swift | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/Sources/ObservableStore/ObservableStore.swift b/Sources/ObservableStore/ObservableStore.swift index f5bab7d..f7ad0b6 100644 --- a/Sources/ObservableStore/ObservableStore.swift +++ b/Sources/ObservableStore/ObservableStore.swift @@ -429,11 +429,6 @@ extension CursorProtocol { /// - `action` the inner action /// - `environment` the environment for the update function /// - Returns a new outer state - @available( - *, - deprecated, - message: "CursorProtocol is depreacated and will be removed in a future update. Use ModelProtocol.update(get:set:tag:state:action:environment:) instead." - ) public static func update( state: Model, action viewAction: ViewModel.Action, @@ -477,11 +472,6 @@ extension KeyedCursorProtocol { /// - `environment` the environment for the update function /// - `key` a key uniquely representing this model in the parent domain /// - Returns an update for a new outer state or nil - @available( - *, - deprecated, - message: "KeyedCursorProtocol is depreacated and will be removed in a future update. Use ModelProtocol.update(get:set:tag:state:action:environment:) instead." - ) public static func update( state: Model, action viewAction: ViewModel.Action,