From 1b24fc923a405b337634009831ef0b9792953ce5 Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Thu, 20 Apr 2023 00:37:21 +0000 Subject: [PATCH] fix(deps): update module github.com/bufbuild/connect-go to v1.7.0 (#625) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [![Mend Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Type | Update | Change | |---|---|---|---| | [github.com/bufbuild/connect-go](https://togithub.com/bufbuild/connect-go) | require | minor | `v1.6.0` -> `v1.7.0` | --- ### Release Notes
bufbuild/connect-go ### [`v1.7.0`](https://togithub.com/bufbuild/connect-go/releases/tag/v1.7.0) [Compare Source](https://togithub.com/bufbuild/connect-go/compare/v1.6.0...v1.7.0) #### What's Changed As of this release, the Connect protocol supports performing idempotent, side-effect free requests using HTTP GETs. This makes it easier to cache responses in the browser, on your CDN, or in proxies and other middleboxes. > **Note** > This functionality is *only* supported when using the Connect protocol—using a Connect client with a Connect server. When using `grpc-go` clients, or `connect-go` clients configured with the `WithGRPC` or `WithGRPCWeb` options, all requests will continue to be HTTP POSTs. To opt into GET support for a given Protobuf RPC, you must mark it as being side-effect free using the [MethodOptions.IdempotencyLevel](https://togithub.com/protocolbuffers/protobuf/blob/e5679c01e8f47e8a5e7172444676bda1c2ada875/src/google/protobuf/descriptor.proto#L795) option: ```proto service ElizaService { rpc Say(stream SayRequest) returns (SayResponse) { option idempotency_level = NO_SIDE_EFFECTS; } } ``` With this schema change, handlers will automatically support both GET and POST requests for this RPC. However, clients will continue to use POST requests by default, even when GETs are possible. To make clients use GETs for side effect free RPCs, use the `WithHTTPGet` option: ```go client := elizav1connect.NewElizaServiceClient( http.DefaultClient, connect.WithHTTPGet(), ) ``` This functionality is *not* yet supported by other Connect implementations (including `connect-es`), but hang tight! We're working on it. For more information, please check the [full documentation](https://connect.build/docs/go/get-requests-and-caching). ##### Enhancements - Connect HTTP Get support by [@​jchadwick-buf](https://togithub.com/jchadwick-buf) in [https://github.com/bufbuild/connect-go/pull/478](https://togithub.com/bufbuild/connect-go/pull/478) - Add APIs to make and handle conditional GETs by [@​akshayjshah](https://togithub.com/akshayjshah) in [https://github.com/bufbuild/connect-go/pull/494](https://togithub.com/bufbuild/connect-go/pull/494) ##### Bugfixes - Fix `WithCompression` to match docs by [@​jhump](https://togithub.com/jhump) in [https://github.com/bufbuild/connect-go/pull/493](https://togithub.com/bufbuild/connect-go/pull/493) **Full Changelog**: https://github.com/bufbuild/connect-go/compare/v1.6.0...v1.7.0
--- ### Configuration 📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined). 🚦 **Automerge**: Enabled. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, check this box --- This PR has been generated by [Mend Renovate](https://www.mend.io/free-developer-tools/renovate/). View repository job log [here](https://app.renovatebot.com/dashboard#github/open-feature/flagd). Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> --- core/go.mod | 2 +- core/go.sum | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/core/go.mod b/core/go.mod index b1dbb830f..d413c2860 100644 --- a/core/go.mod +++ b/core/go.mod @@ -6,7 +6,7 @@ require ( buf.build/gen/go/open-feature/flagd/bufbuild/connect-go v1.5.2-20230222100723-491ee098dd92.1 buf.build/gen/go/open-feature/flagd/grpc/go v1.3.0-20230317150644-afd1cc2ef580.1 buf.build/gen/go/open-feature/flagd/protocolbuffers/go v1.29.1-20230317150644-afd1cc2ef580.1 - github.com/bufbuild/connect-go v1.6.0 + github.com/bufbuild/connect-go v1.7.0 github.com/diegoholiveira/jsonlogic/v3 v3.2.7 github.com/fsnotify/fsnotify v1.6.0 github.com/golang/mock v1.6.0 diff --git a/core/go.sum b/core/go.sum index 48432dfde..5699b7df4 100644 --- a/core/go.sum +++ b/core/go.sum @@ -406,6 +406,8 @@ github.com/bufbuild/connect-go v1.5.2 h1:G4EZd5gF1U1ZhhbVJXplbuUnfKpBZ5j5izqIwu2 github.com/bufbuild/connect-go v1.5.2/go.mod h1:GmMJYR6orFqD0Y6ZgX8pwQ8j9baizDrIQMm1/a6LnHk= github.com/bufbuild/connect-go v1.6.0 h1:OCEB8JuEuvcY5lEKZCQE95CUscqkDtLnQceNhDgi92k= github.com/bufbuild/connect-go v1.6.0/go.mod h1:GmMJYR6orFqD0Y6ZgX8pwQ8j9baizDrIQMm1/a6LnHk= +github.com/bufbuild/connect-go v1.7.0 h1:MGp82v7SCza+3RhsVhV7aMikwxvI3ZfD72YiGt8FYJo= +github.com/bufbuild/connect-go v1.7.0/go.mod h1:GmMJYR6orFqD0Y6ZgX8pwQ8j9baizDrIQMm1/a6LnHk= github.com/buger/jsonparser v1.1.1/go.mod h1:6RYKKt7H4d4+iWqouImQ9R2FZql3VbhNgx27UK13J/0= github.com/cenkalti/backoff/v4 v4.2.0 h1:HN5dHm3WBOgndBH6E8V0q2jIYIR3s9yglV8k/+MN3u4= github.com/cenkalti/backoff/v4 v4.2.0/go.mod h1:Y3VNntkOUPxTVeUxJ/G5vcM//AlwfmyYozVcomhLiZE=