Skip to content

Commit

Permalink
release: v0.6.0 (#118)
Browse files Browse the repository at this point in the history
  • Loading branch information
evansims authored Aug 29, 2024
1 parent 74964e8 commit 2694fb9
Show file tree
Hide file tree
Showing 4 changed files with 19 additions and 5 deletions.
14 changes: 14 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,19 @@
# Changelog

## v0.6.0

### [0.6.0](https://github.com/openfga/go-sdk/compare/v0.5.0...v0.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 (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 resoles collision issues. This means any enum value, such as `INT` now becomes `TYPENAME_INT`. The main impact of this is the `TypeName` consts and error codes. The fix is to add the class name prefix as discussed above.

## v0.5.0

### [0.5.0](https://github.com/openfga/go-sdk/compare/v0.4.0...v0.5.0) (2024-06-14)
Expand Down
4 changes: 2 additions & 2 deletions configuration.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,9 @@ import (
)

const (
SdkVersion = "0.5.0"
SdkVersion = "0.6.0"

defaultUserAgent = "openfga-sdk go/0.5.0"
defaultUserAgent = "openfga-sdk go/0.6.0"
)

// RetryParams configures configuration for retry in case of HTTP too many request
Expand Down
4 changes: 2 additions & 2 deletions example/example1/go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@ module example1

go 1.22.2

require github.com/openfga/go-sdk v0.5.0
require github.com/openfga/go-sdk v0.6.0

require golang.org/x/sync v0.8.0 // indirect

// To reference local build, uncomment below and run `go mod tidy`
replace github.com/openfga/go-sdk v0.5.0 => ../../
replace github.com/openfga/go-sdk v0.6.0 => ../../
2 changes: 1 addition & 1 deletion internal/telemetry/telemetry.go
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ var (
func Configure(configuration *Configuration) (*Telemetry, error) {
return &Telemetry{
Metrics: &Metrics{
Meter: otel.Meter("openfga-sdk/0.5.0"),
Meter: otel.Meter("openfga-sdk/0.6.0"),
Counters: make(map[string]metric.Int64Counter),
Histograms: make(map[string]metric.Float64Histogram),
Configuration: configuration.Metrics,
Expand Down

0 comments on commit 2694fb9

Please sign in to comment.