Skip to content
This repository has been archived by the owner on Dec 16, 2021. It is now read-only.

feat: use protocol version interceptor in clients #63

Merged
merged 13 commits into from
May 12, 2020
Merged

Conversation

shuplenkov
Copy link
Member

@shuplenkov shuplenkov commented May 8, 2020

BREAKING_CHANGE: you have to set up protocol version via setProtocolVersion method when using promise clients

* @param {?Object} credentials
* @param {?Object} options
*/
constructor(hostname, credentials = grpc.credentials.createInsecure(), options = {}) {
constructor(hostname, version, credentials = grpc.credentials.createInsecure(), options = {}) {
Copy link
Member

Choose a reason for hiding this comment

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

set version via setter

* @param {?Object} credentials
* @param {?Object} options
*/
constructor(hostname, credentials = grpc.credentials.createInsecure(), options = {}) {
constructor(hostname, version, credentials = grpc.credentials.createInsecure(), options = {}) {
Copy link
Member

Choose a reason for hiding this comment

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

Still version here

@jawid-h jawid-h changed the title feat: pass version feat: use protocol version interceptor in clients May 12, 2020
@jawid-h jawid-h requested a review from shumkov May 12, 2020 08:52
Copy link
Contributor

@jawid-h jawid-h left a comment

Choose a reason for hiding this comment

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

We should update grpc-common here after we merge all PRs there.

package.json Outdated
@@ -1,6 +1,6 @@
{
"name": "@dashevo/dapi-grpc",
"version": "0.12.1",
"version": "0.13.0-dev.1",
Copy link
Member

Choose a reason for hiding this comment

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

We need to bump the version in a separate PR (chore) due to conventional changelog flow.

Copy link
Member

@shumkov shumkov left a comment

Choose a reason for hiding this comment

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

👍

Copy link
Contributor

@jawid-h jawid-h left a comment

Choose a reason for hiding this comment

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

Cool

@shuplenkov shuplenkov merged commit 0665f41 into v0.13-dev May 12, 2020
@shuplenkov shuplenkov deleted the metadata branch May 12, 2020 14:29
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Development

Successfully merging this pull request may close these issues.

3 participants