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

V2: Replace MethodInfo with Descriptor Types #1255

Merged
merged 2 commits into from
Oct 3, 2024
Merged

Conversation

srikrsna-buf
Copy link
Member

@srikrsna-buf srikrsna-buf commented Oct 3, 2024

Replace MethodInfo with Descriptor Types. We plan on adding these types to @bufbuild/protobuf. We can remove the types once that is done.

This also makes the types stricter, transport will now only accept unary descriptors for unary and streaming descriptors for stream methods. Likewise the interceptor types are also stricter.

Signed-off-by: Sri Krishna Paritala <skrishna@buf.build>
@srikrsna-buf srikrsna-buf requested a review from timostamm October 3, 2024 10:53
Signed-off-by: Sri Krishna Paritala <skrishna@buf.build>
@srikrsna-buf srikrsna-buf requested a review from timostamm October 3, 2024 13:42
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.

LGTM!

What do you think about calling this change "Replace MethodInfo with Descriptor Types"? Would probably provide a bit more context for users reading through the changelog.

@srikrsna-buf srikrsna-buf changed the title V2: Switch to Descriptor Types V2: Replace MethodInfo with Descriptor Types Oct 3, 2024
@srikrsna-buf srikrsna-buf merged commit f8fc90e into v2 Oct 3, 2024
47 checks passed
@srikrsna-buf srikrsna-buf deleted the sk/method-info branch October 3, 2024 14:53
@srikrsna-buf srikrsna-buf mentioned this pull request Nov 19, 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