Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Deprecate createPromiseClient in favor of createClient #1235

Merged
merged 2 commits into from
Sep 18, 2024

Conversation

srikrsna-buf
Copy link
Member

Deprecate createPromiseClient in favor of createClient. Promises are more widely adopted than ever before, this change will mark the promise variant as the default.

This is effectively just a rename, but to keep backward compatibility we keep the existing signature and mark it as deprecated. createPromiseClient will be removed in v2.

Signed-off-by: Sri Krishna Paritala <skrishna@buf.build>
Signed-off-by: Sri Krishna Paritala <skrishna@buf.build>
Copy link
Member

@timostamm timostamm left a comment

Choose a reason for hiding this comment

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

Looks good to me. Can we add a migration so that npx @connectrpc/connect-migrate will update imports and calls to use the renamed function and type?

@srikrsna-buf srikrsna-buf merged commit fd7b7ca into main Sep 18, 2024
46 checks passed
@srikrsna-buf srikrsna-buf deleted the sk/rename-promise-client branch September 18, 2024 11:39
@timostamm timostamm mentioned this pull request Oct 9, 2024
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