Skip to content

Commit

Permalink
Un-deprecate cursor protocols (#39)
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
gordonbrander authored Aug 31, 2023
1 parent d16c8e0 commit 85b7322
Showing 1 changed file with 0 additions and 10 deletions.
10 changes: 0 additions & 10 deletions Sources/ObservableStore/ObservableStore.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down Expand Up @@ -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,
Expand Down

0 comments on commit 85b7322

Please sign in to comment.