Skip to content

Commit 347bc38

Browse files
dcalhounclaude
andauthored
feat: export PostUpdateParams in Swift public API (#1270)
* feat: export PostUpdateParams in Swift public API PostUpdateParams was already defined in Rust and available via uniffi bindings in WordPressAPIInternal, but was not re-exported in the public WordPressAPI module's Exports.swift. This prevents consumers like GutenbergKit from constructing params to call posts.updateCancellation() without also importing WordPressAPIInternal. Also adds a compatibility test following the existing pattern in native/swift/Tests/api-compatibility/ that validates the type is constructible from the public module. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com> * test: Remove rudimentary PostsCompatTests This test covers very little functionality directly. While there are other existing tests like it, we decided it is not worth adding. --------- Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent 302b03b commit 347bc38

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

native/swift/Sources/wordpress-api/Exports.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -134,6 +134,7 @@ public typealias AnyPostWithEditContext = WordPressAPIInternal.AnyPostWithEditCo
134134
public typealias AnyPostWithViewContext = WordPressAPIInternal.AnyPostWithViewContext
135135
public typealias AnyPostWithEmbedContext = WordPressAPIInternal.AnyPostWithEmbedContext
136136
public typealias PostListParams = WordPressAPIInternal.PostListParams
137+
public typealias PostUpdateParams = WordPressAPIInternal.PostUpdateParams
137138
public typealias PostsRequestExecutor = WordPressAPIInternal.PostsRequestExecutor
138139
public typealias PostEndpointType = WordPressAPIInternal.PostEndpointType
139140

0 commit comments

Comments
 (0)