canonical / ofga

A wrapper library over the default OpenFGA client, packed with convenience methods for interacting with OpenFGA instances.
GNU Lesser General Public License v3.0
7 stars 3 forks source link

Update module github.com/openfga/go-sdk to v0.3.3 #31

Closed renovate[bot] closed 5 months ago

renovate[bot] commented 5 months ago

Mend Renovate

This PR contains the following updates:

Package Change Age Adoption Passing Confidence
github.com/openfga/go-sdk v0.2.2 -> v0.3.3 age adoption passing confidence

Release Notes

openfga/go-sdk (github.com/openfga/go-sdk) ### [`v0.3.3`](https://togithub.com/openfga/go-sdk/blob/HEAD/CHANGELOG.md#v033) [Compare Source](https://togithub.com/openfga/go-sdk/compare/v0.3.2...v0.3.3) ##### [0.3.3](https://togithub.com/openfga/go-sdk/compare/v0.3.2...v0.3.3) (2023-12-21) - fix: WriteAuthorizationModel was not passing conditions to API - chore: add example project ### [`v0.3.2`](https://togithub.com/openfga/go-sdk/blob/HEAD/CHANGELOG.md#v032) [Compare Source](https://togithub.com/openfga/go-sdk/compare/v0.3.1...v0.3.2) ##### [0.3.2](https://togithub.com/openfga/go-sdk/compare/v0.3.1...v0.3.2) (2023-12-20) - fix: ListObjects was not passing context to API - chore: downgrade target go version to 1.20 ### [`v0.3.1`](https://togithub.com/openfga/go-sdk/blob/HEAD/CHANGELOG.md#v031) [Compare Source](https://togithub.com/openfga/go-sdk/compare/v0.3.0...v0.3.1) ##### [0.3.1](https://togithub.com/openfga/go-sdk/compare/v0.3.0...v0.3.1) (2023-12-19) - feat: oauth2 client credentials support ([#​62](https://togithub.com/openfga/go-sdk/issues/62)), thanks [@​le-yams](https://togithub.com/le-yams) - fix: remove canonical import path from oauth2 packages ([#​64](https://togithub.com/openfga/go-sdk/issues/64)), thanks [@​bketelsen](https://togithub.com/bketelsen) ### [`v0.3.0`](https://togithub.com/openfga/go-sdk/blob/HEAD/CHANGELOG.md#v030) [Compare Source](https://togithub.com/openfga/go-sdk/compare/v0.2.3...v0.3.0) ##### [0.3.0](https://togithub.com/openfga/go-sdk/compare/v0.2.3...v0.3.0) (2023-12-11) - feat!: initial support for conditions - feat: support specifying a port and path for the API (You can now set the `ApiUrl` to something like: `https://api.fga.exampleL8080/some_path`) - fix: resolve a bug in `NewCredentials` ([#​60](https://togithub.com/openfga/go-sdk/issues/60)) - thanks [@​harper](https://togithub.com/harper) - chore!: use latest API interfaces - chore: dependency updates BREAKING CHANGES: Note: This release comes with substantial breaking changes, especially to the interfaces due to the protobuf changes in the last release. While the http interfaces did not break (you can still use `v0.2.3` SDK with a `v1.3.8+` server), the grpc interface did and this caused a few changes in the interfaces of the SDK. You will have to modify some parts of your code, but we hope this will be to the better as a lot of the parameters are now correctly marked as required, and so the Pointer-to-String conversion is no longer needed. Some of the changes to expect: - When initializing a client, please use `ApiUrl`. The separate `ApiScheme` and `ApiHost` fields have been deprecated ```go fgaClient, err := NewSdkClient(&ClientConfiguration{ ApiUrl: os.Getenv("FGA_API_URL"), // required, e.g. https://api.fga.example StoreId: os.Getenv("FGA_STORE_ID"), // not needed when calling `CreateStore` or `ListStores` AuthorizationModelId: os.Getenv("FGA_AUTHORIZATION_MODEL_ID"), // optional, recommended to be set for production }) ``` - When initializing a client, `AuthorizationModelId` is no longer a pointer, and you can just pass the string directly - The `OpenFgaClient` now has methods to get and set the model ID `GetAuthorizationModelId` and `SetAuthorizationModelId` - The following request interfaces changed: - `CheckRequest`: the `TupleKey` field is now of interface `CheckRequestTupleKey`, you can also now pass in `Context` - `ExpandRequest`: the `TupleKey` field is now of interface `ExpandRequestTupleKey` - `ReadRequest`: the `TupleKey` field is now of interface `ReadRequestTupleKey` - `WriteRequest`: now takes `WriteRequestWrites` and `WriteRequestDeletes` - And more - The following interfaces had fields that were pointers are are now the direct value: - `CreateStoreResponse` - `GetStoreResponse` - `ListStoresResponse` - `ListObjectsResponse` - `ReadChangesResponse` - `ReadResponse` - `AuthorizationModel` and several interfaces under it - And more ### [`v0.2.3`](https://togithub.com/openfga/go-sdk/blob/HEAD/CHANGELOG.md#v023) [Compare Source](https://togithub.com/openfga/go-sdk/compare/v0.2.2...v0.2.3) ##### [0.2.3](https://togithub.com/openfga/go-sdk/compare/v0.2.2...v0.2.3) (2023-10-13) - fix: allow setting user agent - fix(client): resolve null pointer exceptions when getting auth model id - fix(client): allow read to contain empty fields - fix(client): require auth model id and store id to be ulids - fix(client): resolve cases where req options was not respected - fix: add retry logic to oauth - chore: target go1.21.3 and upgrade dependencies

Configuration

📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).

🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.

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.



This PR has been generated by Mend Renovate. View repository job log here.

renovate[bot] commented 5 months ago

Renovate Ignore Notification

Because you closed this PR without merging, Renovate will ignore this update (v0.3.3). You will get a PR once a newer version is released. To ignore this dependency forever, add it to the ignoreDeps array of your Renovate config.

If you accidentally closed this PR, or if you changed your mind: rename this PR to get a fresh replacement PR.