Skip to content

feat: add async API compat layer for experimental migration#183

Merged
mfazekas merged 2 commits intomainfrom
feat/async-api-compat
Mar 25, 2026
Merged

feat: add async API compat layer for experimental migration#183
mfazekas merged 2 commits intomainfrom
feat/async-api-compat

Conversation

@mfazekas
Copy link
Collaborator

Adds async equivalents for all sync methods and marks the sync versions as @deprecated. This lets users migrate to the new async API while still on the legacy backend, before switching to experimental.

No behavior changes — all new async methods are thin Promise.async {} wrappers around existing sync calls.

…patibility

Add async equivalents for all sync ViewModel/RiveFile methods (createInstanceByNameAsync,
getValueAsync, viewModelByNameAsync, etc.) and mark legacy sync methods as @deprecated.
Native implementations wrap sync calls in Promise.async on both iOS and Android.
@mfazekas mfazekas force-pushed the feat/async-api-compat branch from 47a158b to bd05f51 Compare March 25, 2026 12:09
Copy link
Contributor

@HayesGordon HayesGordon left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@mfazekas mfazekas merged commit c788ad6 into main Mar 25, 2026
9 checks passed
@mfazekas mfazekas deleted the feat/async-api-compat branch March 25, 2026 13:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants