Skip to content

Releases: openfga/go-sdk

v0.6.1

23 Sep 16:13
v0.6.1
f9c1c96
Compare
Choose a tag to compare

0.6.1 (2024-09-23)

  • refactor(OpenTelemetry): move configuration API into public package namespace (#122)
  • docs(OpenTelemetry): initial documentation and example (#123)

v0.6.0

29 Aug 22:13
v0.6.0
2694fb9
Compare
Choose a tag to compare

0.6.0 (2024-08-29)

  • feat: support OpenTelemetry metrics reporting (#115)
  • feat!: support for sending the consistency parameter to the read, check, list users, list objects, and expand endpoints (#117)
  • chore(docs): update stale README (#113) - thanks @Code2Life

BREAKING CHANGE:

When the generator converts enums in the open API definition, by default it removes the type prefix. For example, TYPE_NAME_UNSPECIFIED is converted to a const named UNSPECIFIED. This leads to potential collisions with other enums, and as the consistency type is a new enum, we finally got a collision (it was just a matter of time).

The fix for this is to specify "enumClassPrefix": true in the generation config. This will then include the class name on the const name, which resolves collision issues. This means any enum value, such as INT now becomes TYPENAME_INT. The main impact of this is the TypeName const and error codes. The fix is to add the class name prefix, as discussed above.

v0.5.0

17 Jun 11:02
v0.5.0
8d3cee7
Compare
Choose a tag to compare

0.5.0 (2024-06-14)

  • fix: correctly set HTTPClient - thanks @wonyx
  • chore!: remove excluded users from ListUsers response

⚠️ BREAKING CHANGE ⚠️

This version removes the ExcludedUsers field from the ListUsersResponse and ClientListUsersResponse structs, for more details see the associated API change.

v0.4.0

30 May 22:14
v0.4.0
0b68a06
Compare
Choose a tag to compare

0.4.0 (2024-05-30)

  • feat!: remove store ID from API config, allow store ID override per-request (see README for additional documentation and examples)
  • fix: only retry on client credential requests that are 429 or 5xx

⚠️ BREAKING CHANGE: ⚠️

This version removes the StoreId from the API client configuration. Instead, the StoreId parameter must now be passed to each of the API methods that require a store ID.

If you are using api_open_fga.go directly, you will now need to pass the StoreId parameter.

v0.3.7

08 May 17:30
v0.3.7
80ffe43
Compare
Choose a tag to compare

0.3.7 (2024-05-08)

  • feat: Add MaxParallelRequests option in ListRelations (#93) - thanks @gurleensethi
  • chore: lower required go version to 1.21 (fixes #94)

v0.3.6

30 Apr 19:58
v0.3.6
39b578f
Compare
Choose a tag to compare

0.3.6 (2024-04-30)

  • feat: support the ListUsers endpoint (#81)
  • fix: do not call ReadAuthorizationModel on BatchCheck or non-Transactional Write (#78)
  • chore: fix typos in the readme (#91) - thanks @balaji-dongare

v0.3.5

13 Feb 17:33
v0.3.5
0059bef
Compare
Choose a tag to compare

0.3.5 (2024-02-13)

  • fix: don't escape HTML characters in conditions when marshalling a model

v0.3.4

22 Jan 20:40
v0.3.4
f50d59c
Compare
Choose a tag to compare

0.3.4 (2024-01-22)

  • feat: configurable client credentials token url - thanks @le-yams
  • fix: WriteAuthorizationModel was not passing conditions to API

v0.3.3

21 Dec 16:57
v0.3.3
fc519d8
Compare
Choose a tag to compare

0.3.3 (2023-12-21)

  • fix: WriteAuthorizationModel was not passing conditions to API
  • chore: add example project

v0.3.2

20 Dec 14:51
v0.3.2
59f76ea
Compare
Choose a tag to compare

0.3.2 (2023-12-20)

  • fix: ListObjects was not passing context to API
  • chore: downgrade target go version to 1.20