You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* Clean up deprecation formatting
Didn't realize multiline worked here, but should make it easier to read
without word wrap
* Update Sources/ComposableArchitecture/Internal/Deprecations.swift
* Update Sources/ComposableArchitecture/Internal/Deprecations.swift
Copy file name to clipboardExpand all lines: Sources/ComposableArchitecture/Internal/Deprecations.swift
+36-8Lines changed: 36 additions & 8 deletions
Original file line number
Diff line number
Diff line change
@@ -63,7 +63,10 @@ extension Effect {
63
63
*,
64
64
deprecated,
65
65
message:
66
-
"Using a variadic list is no longer supported. Use an array of identifiers instead. For more on this change, see: https://github.com/pointfreeco/swift-composable-architecture/pull/1041"
66
+
"""
67
+
Using a variadic list is no longer supported. Use an array of identifiers instead. For more \
68
+
on this change, see: https://github.com/pointfreeco/swift-composable-architecture/pull/1041
"If you use this method, please open a discussion on GitHub and let us know how: https://github.com/pointfreeco/swift-composable-architecture/discussions/new"
362
+
"""
363
+
If you use this method, please open a discussion on GitHub and let us know how: \
state toLocalState:@escaping(AnyPublisher<State,Never>)->P,
@@ -396,7 +402,10 @@ extension Store {
396
402
@available(
397
403
*, deprecated,
398
404
message:
399
-
"If you use this method, please open a discussion on GitHub and let us know how: https://github.com/pointfreeco/swift-composable-architecture/discussions/new"
405
+
"""
406
+
If you use this method, please open a discussion on GitHub and let us know how: \
state toLocalState:@escaping(AnyPublisher<State,Never>)->P
@@ -410,7 +419,12 @@ extension ViewStore where Action: BindableAction, Action.State == State {
410
419
@available(
411
420
*, deprecated,
412
421
message:
413
-
"Dynamic member lookup is no longer supported for bindable state. Instead of dot-chaining on the view store, e.g. 'viewStore.$value', invoke the 'binding' method on view store with a key path to the value, e.g. 'viewStore.binding(\\.$value)'. For more on this change, see: https://github.com/pointfreeco/swift-composable-architecture/pull/810"
422
+
"""
423
+
Dynamic member lookup is no longer supported for bindable state. Instead of dot-chaining on \
424
+
the view store, e.g. 'viewStore.$value', invoke the 'binding' method on view store with a \
425
+
key path to the value, e.g. 'viewStore.binding(\\.$value)'. For more on this change, see: \
"For improved safety, bindable properties must now be wrapped explicitly in 'BindableState', and accessed via key paths to that 'BindableState', like '\\.$value'"
445
+
"""
446
+
For improved safety, bindable properties must now be wrapped explicitly in 'BindableState', \
447
+
and accessed via key paths to that 'BindableState', like '\\.$value'
448
+
"""
432
449
)
433
450
publicstaticfunc set<Value:Equatable>(
434
451
_ keyPath:WritableKeyPath<Root,Value>,
@@ -445,7 +462,10 @@ extension BindingAction {
445
462
@available(
446
463
*, deprecated,
447
464
message:
448
-
"For improved safety, bindable properties must now be wrapped explicitly in 'BindableState', and accessed via key paths to that 'BindableState', like '\\.$value'"
465
+
"""
466
+
For improved safety, bindable properties must now be wrapped explicitly in 'BindableState', \
467
+
and accessed via key paths to that 'BindableState', like '\\.$value'
468
+
"""
449
469
)
450
470
publicstaticfunc~=<Value>(
451
471
keyPath:WritableKeyPath<Root,Value>,
@@ -459,7 +479,10 @@ extension Reducer {
459
479
@available(
460
480
*, deprecated,
461
481
message:
462
-
"'Reducer.binding()' no longer takes an explicit extract function and instead the reducer's 'Action' type must conform to 'BindableAction'"
482
+
"""
483
+
'Reducer.binding()' no longer takes an explicit extract function and instead the reducer's \
"For improved safety, bindable properties must now be wrapped explicitly in 'BindableState'. Bindings are now derived via 'ViewStore.binding' with a key path to that 'BindableState' (for example, 'viewStore.binding(\\.$value)'). For dynamic member lookup to be available, the view store's 'Action' type must also conform to 'BindableAction'."
499
+
"""
500
+
For improved safety, bindable properties must now be wrapped explicitly in 'BindableState'. \
501
+
Bindings are now derived via 'ViewStore.binding' with a key path to that 'BindableState' \
502
+
(for example, 'viewStore.binding(\\.$value)'). For dynamic member lookup to be available, \
503
+
the view store's 'Action' type must also conform to 'BindableAction'.
0 commit comments