Skip to content

Commit 3abadd3

Browse files
authored
Merge pull request #65 from square/stromberg/gardening/render-workflow
Make RenderContext.render(workflow:key:outputMap:) internal
2 parents 17abde5 + 1739807 commit 3abadd3

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

MigrationGuide_v1.0.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
### Child `Workflow`s
1414

1515
`Workflow.rendered(with:key:)` was deprecated in Workflow v1.0α and has been removed in the beta. See details in the alpha migration guide, [below](#render-child-workflow).
16+
`RenderContext.render(workflow:key:outputMap:)` has been made `internal` instead of `public`. Child `Workflow`s should be rendered via `ChildWorkflow().rendered(in: context)` instead.
1617

1718
---
1819

Workflow/Sources/RenderContext.swift

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -63,8 +63,7 @@ public class RenderContext<WorkflowType: Workflow>: RenderContextType {
6363
/// - Parameter key: A string that uniquely identifies this child.
6464
///
6565
/// - Returns: The `Rendering` result of the child's `render` method.
66-
@available(*, deprecated, message: "Use `rendered(in:outputMap:)` on Workflow itself.") // To remove this deprecation, mark this method `internal`
67-
public func render<Child, Action>(workflow: Child, key: String, outputMap: @escaping (Child.Output) -> Action) -> Child.Rendering where Child: Workflow, Action: WorkflowAction, WorkflowType == Action.WorkflowType {
66+
func render<Child, Action>(workflow: Child, key: String, outputMap: @escaping (Child.Output) -> Action) -> Child.Rendering where Child: Workflow, Action: WorkflowAction, WorkflowType == Action.WorkflowType {
6867
fatalError()
6968
}
7069

0 commit comments

Comments
 (0)