Skip to content
This repository has been archived by the owner on Feb 23, 2024. It is now read-only.

Commit

Permalink
release: v0.5.0
Browse files Browse the repository at this point in the history
  • Loading branch information
rhamzeh committed Oct 13, 2022
1 parent 90cdc5b commit 0ee0cf1
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 1 deletion.
27 changes: 27 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,32 @@
# Changelog

## v0.5.0

### [0.5.0](https://github.com/auth0-lab/fga-go-sdk/compare/v0.4.0...v0.5.0) (2022-10-13)
- BREAKING: exported type `TypeDefinitions` is now `WriteAuthorizationModelRequest`
Note: This is only a breaking change on the SDK, not the API.
- Support ListObjects
Support for [ListObjects API](https://docs.fga.dev/api/service#/Relationship%20Queries/ListObjects)

You call the API and receive the list of object ids from a particular type that the user has a certain relation with.

For example, to find the list of documents that Anne can read:

```golang
body := auth0fga.ListObjectsRequest{
AuthorizationModelId: PtrString(""),
User: PtrString("user:anne"),
Relation: PtrString("can_view"),
Type: PtrString("document"),
}
data, response, err := apiClient.Auth0FgaApi.ListObjects(context.Background()).Body(body).Execute()

// response.object_ids = ["roadmap"]
```
- Use [govulncheck](https://go.dev/blog/vuln) in CI to check for issues
- chore(deps): upgrade dependencies
- Target go 1.19

## v0.4.0

### [0.4.0](https://github.com/auth0-lab/fga-go-sdk/compare/v0.3.0...v0.4.0) (2022-06-07)
Expand Down
2 changes: 1 addition & 1 deletion configuration.go
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ func DefaultRetryParams() *RetryParams {

func GetSdkUserAgent() string {
userAgent := strings.Replace("auth0-fga-sdk {sdkId}/{packageVersion}", "{sdkId}", "go", -1)
userAgent = strings.Replace(userAgent, "{packageVersion}", "0.4.0", -1)
userAgent = strings.Replace(userAgent, "{packageVersion}", "0.5.0", -1)

return userAgent
}
Expand Down

0 comments on commit 0ee0cf1

Please sign in to comment.