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

Move RpcRequest and RpcResponse types to rpc-spec-types #3393

Merged
merged 1 commit into from
Oct 23, 2024

Conversation

lorisleiva
Copy link
Collaborator

@lorisleiva lorisleiva commented Oct 17, 2024

One of the goals of this stack is to eventually make RpcRequestTransformers and RpcResponseTransformers usable on both RPC and RPC Subscriptions architectures. This was the original intention of the rpc-transformers package which already hosts request and response transformers for both but with inconsistent types.

As such, this PR aims to get closer to this goal by moving the RpcRequest, RpcResponse, RpcRequestTransformer and RpcResponseTransformer types from the rpc-spec package to the rpc-spec-types package.

As a reminder the rpc-spec and rpc-subscriptions-spec packages define the interfaces of the RPC and RPC Subscriptions architectures respectively, whereas, the rpc-spec-types package is a utility package that is imported by both of the former packages.

Note that, the rpc-spec-types package is now being exported from the main library because re-exporting that package in both rpc and rpc-subscriptions would be problematic for the main library that re-exports both.

Addresses #2983.

Copy link

changeset-bot bot commented Oct 17, 2024

🦋 Changeset detected

Latest commit: dccdeba

The changes in this PR will be included in the next version bump.

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@lorisleiva lorisleiva force-pushed the loris/move-rpc-request-response branch from 164e37c to ba813b0 Compare October 18, 2024 08:33
@lorisleiva lorisleiva force-pushed the loris/remove-unused-rpcs-type branch 3 times, most recently from 1c68cd2 to 601d031 Compare October 18, 2024 09:20
@lorisleiva lorisleiva force-pushed the loris/move-rpc-request-response branch from ba813b0 to a9597b9 Compare October 18, 2024 09:20
@lorisleiva lorisleiva force-pushed the loris/move-rpc-request-response branch 2 times, most recently from f1cee41 to 580ac5d Compare October 18, 2024 13:12
@lorisleiva lorisleiva force-pushed the loris/move-rpc-request-response branch from 580ac5d to b965d83 Compare October 21, 2024 11:11
@lorisleiva lorisleiva marked this pull request as ready for review October 22, 2024 08:30
Copy link
Collaborator

@steveluscher steveluscher left a comment

Choose a reason for hiding this comment

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

Added via Giphy

Copy link
Collaborator Author

lorisleiva commented Oct 23, 2024

Merge activity

  • Oct 23, 4:43 AM EDT: A user started a stack merge that includes this pull request via Graphite.
  • Oct 23, 4:47 AM EDT: Graphite rebased this pull request as part of a merge.
  • Oct 23, 4:48 AM EDT: A user merged this pull request with Graphite.

@lorisleiva lorisleiva changed the base branch from loris/remove-unused-rpcs-type to graphite-base/3393 October 23, 2024 08:43
@lorisleiva lorisleiva changed the base branch from graphite-base/3393 to master October 23, 2024 08:45
@lorisleiva lorisleiva force-pushed the loris/move-rpc-request-response branch from b965d83 to dccdeba Compare October 23, 2024 08:46
@lorisleiva lorisleiva merged commit 3c02c35 into master Oct 23, 2024
6 checks passed
@lorisleiva lorisleiva deleted the loris/move-rpc-request-response branch October 23, 2024 08:48
Copy link
Contributor

github-actions bot commented Nov 7, 2024

Because there has been no activity on this PR for 14 days since it was merged, it has been automatically locked. Please open a new issue if it requires a follow up.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Nov 7, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants