Skip to content

Commit

Permalink
gRPC related changelogs
Browse files Browse the repository at this point in the history
  • Loading branch information
olegbespalov committed Sep 25, 2023
1 parent f2a2eb1 commit 3ac4078
Showing 1 changed file with 18 additions and 2 deletions.
20 changes: 18 additions & 2 deletions release notes/v0.47.0.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,23 +23,39 @@ _what, why, and what this means for the user_

_what, why, and what this means for the user_

### Add gRPC's binary metadata support [#3234](https://github.com/grafana/k6/pull/3234), [xk6-grpc#46](https://github.com/grafana/xk6-grpc/pull/46)

By specification gRPC metadata with the `-bin` postfix should be treated as binary data. These PRs add the support of such metadata to the `k6/net/grpc` and `k6/experimental/grpc` modules.

```js
let resp = client.invoke("grpc.testing.TestService/EmptyCall", {}, { metadata: { "X-Load-Tester-bin": new Uint8Array([2, 200]) } })
```

Thanks, @sapphire-janrain, for contribution!

### Add the reflection metadata [#3343](https://github.com/grafana/k6/pull/3343), [xk6-grpc#46](https://github.com/grafana/xk6-grpc/pull/46)

In some workflows the reflection call should also include some metadata. This PR adds [a new connection parameter `reflectMetadata`](https://k6.io/docs/javascript-api/k6-net-grpc/client/client-connect/#connectparams) that allows to specify the metadata to be sent with the reflection call.

### UX improvements and enhancements

_Format as `<number> <present_verb> <object>. <credit>`_:

- [#3338](https://github.com/grafana/k6/pull/3338) and [xk6-grpc#48](https://github.com/grafana/xk6-grpc/pull/48). Adds a support of the v1 of the gRPC reflection protocol.
- _`#999` Gives terminal output prettier printing. Thanks to `@person` for the help!_
- `#pr` `<description>`
- `#pr` `<description>`

## Bug fixes

_Format as `<number> <present_verb> <object>. <credit>`_:
- _`#111` fixes race condition in runtime_
- [xk6-grpc#47](https://github.com/grafana/xk6-grpc/pull/47) fix the premature closing of the stream when a stream's client has finished sending. Thanks, @thiagodpf, for reporting!
- [#3344](https://github.com/grafana/k6/pull/3344) and [xk6-grpc#49](https://github.com/grafana/xk6-grpc/pull/49) adds (fixes) the support of google protobuf wrappers. Thanks, @zibul444, for reporting!

## Maintenance and internal improvements

_Format as `<number> <present_verb> <object>. <credit>`_:
- _`#2770` Refactors parts of the JS module._
- [#3342](https://github.com/grafana/k6/pull/3342). Updates xk6-grpc to the latest version. This change brings all the latest fixes and improvements to the experimental gRPC module.

## _Optional_ Roadmap

Expand Down

0 comments on commit 3ac4078

Please sign in to comment.