File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ # Upcoming
2+
3+ ** Breaking API Changes:**
4+ - Remove use of ` StandardAction ` and ` StandardActionConvertible ` (#82 ) - @hlineholm
5+
6+ - Removes the compatibility of this with ` ReSwift-Recorder ` , which itself is being deprecated.
7+ - Ensures compatibility with latest versions of ` ReSwift ` which have removed these types.
8+
19# 0.6.0
210
311* Released: 6/29/2017*
Original file line number Diff line number Diff line change 88
99import ReSwift
1010
11- /// Exports the type map needed for using ReSwiftRouter with a Recording Store
12- public let typeMap : [ String : StandardActionConvertible . Type ] =
13- [ " RE_SWIFT_ROUTER_SET_ROUTE " : SetRouteAction . self]
14-
15- public struct SetRouteAction : StandardActionConvertible {
11+ public struct SetRouteAction : Action {
1612
1713 let route : Route
1814 let animated : Bool
@@ -22,19 +18,6 @@ public struct SetRouteAction: StandardActionConvertible {
2218 self . route = route
2319 self . animated = animated
2420 }
25-
26- public init ( _ action: StandardAction ) {
27- self . route = action. payload![ " route " ] as! Route
28- self . animated = action. payload![ " animated " ] as! Bool
29- }
30-
31- public func toStandardAction( ) -> StandardAction {
32- return StandardAction (
33- type: SetRouteAction . type,
34- payload: [ " route " : route as AnyObject , " animated " : animated as AnyObject ] ,
35- isTypedAction: true
36- )
37- }
3821
3922}
4023
You can’t perform that action at this time.
0 commit comments