github openfga/go-sdk v0.7.4

9 hours ago

0.7.4 (2026-01-21)

  • fix: ListRelations now surfaces errors instead of treating them as false (#267)
  • feat: add a generic API Executor fgaClient.GetAPIExecutor() to allow calling any OpenFGA API method. See Calling Other Endpoints for more.
  • feat: add generic ToPtr[T any](v T) *T function for creating pointers to any type
  • deprecation: PtrBool, PtrInt, PtrInt32, PtrInt64, PtrFloat32, PtrFloat64, PtrString, and PtrTime are now deprecated in favor of the generic ToPtr function
  • chore: add a top-level makefile in go-sdk to simplify running tests and linters: (#250)
  • feat: add fga-client.http_request.duration metric (#266)
  • feat: add support for StreamedListObjects endpoint (#271)

What's Changed

  • feat: add generic ToPtr function with deprecation notice by @SoulPancake in #244
  • chore: reduce generated files by @rhamzeh in #248
  • feat: added makefile for easier handling of tests by @donbachi in #254
  • chore(deps): bump actions/upload-artifact from 4.6.2 to 5.0.0 in the dependencies group by @dependabot[bot] in #253
  • feat: streamed list objects endpoint by @SoulPancake in #252
  • chore(deps): bump golang.org/x/net from 0.29.0 to 0.38.0 in /example/streamed_list_objects in the go_modules group across 1 directory by @dependabot[bot] in #257
  • chore(deps): bump golang.org/x/sync from 0.17.0 to 0.18.0 in the dependencies group by @dependabot[bot] in #256
  • chore(deps): bump toolchain to go1.25.4 & update deps by @rhamzeh in #260
  • fix: lint fixes, sync with generator, use common streaming interface for streamed list objects by @SoulPancake in #259
  • chore: add lint/format workflows by @SoulPancake in #262
  • chore(deps): bump the dependencies group with 2 updates by @dependabot[bot] in #261
  • chore: make streamed list objects client methods private by @SoulPancake in #264
  • chore(deps): bump the dependencies group with 2 updates by @dependabot[bot] in #265
  • feat: add APIExecutor for raw HTTP calls to OpenFGA endpoints by @rhamzeh in #258
  • fix: list relations should not swallow errors by @SoulPancake in #267
  • feat: add fga-client.http_request.duration metric by @aryabyte21 in #266
  • chore(deps): bump the dependencies group with 2 updates by @dependabot[bot] in #269
  • chore(deps): bump the dependencies group with 3 updates by @dependabot[bot] in #268
  • fix: Stop retrying context cancellation by @aryabyte21 in #270
  • chore: make streamed list objects client methods public by @SoulPancake in #271
  • release: v0.7.4 by @SoulPancake in #273

New Contributors

Full Changelog: v0.7.3...v0.7.4

Don't miss a new go-sdk release

NewReleases is sending notifications on new releases.