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
8 stars 4 forks source link

Bump github.com/openfga/go-sdk from 0.2.2 to 0.3.3 #36

Closed dependabot[bot] closed 8 months ago

dependabot[bot] commented 8 months ago

⚠️ Dependabot is rebasing this PR ⚠️

Rebasing might not happen immediately, so don't worry if this takes some time.

Note: if you make any changes to this PR yourself, they will take precedence over the rebase.


Bumps github.com/openfga/go-sdk from 0.2.2 to 0.3.3.

Release notes

Sourced from github.com/openfga/go-sdk's releases.

v0.3.3

0.3.3 (2023-12-21)

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

v0.3.2

0.3.2 (2023-12-20)

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

v0.3.1

0.3.1 (2023-12-19)

  • feat: oauth2 client credentials support (#62), thanks @​le-yams
  • fix: remove canonical import path from oauth2 packages (#64), thanks @​bketelsen

v0.3.1-go1.20

0.3.1-go1.20 (2023-12-19)

Same as v0.3.1, but with the target go version set to 1.20 (see lxc/incus#315)

v0.3.0

0.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) - thanks @​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 openfga 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
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
</tr></table> 

... (truncated)

Changelog

Sourced from github.com/openfga/go-sdk's changelog.

v0.3.3

0.3.3 (2023-12-21)

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

v0.3.2

0.3.2 (2023-12-20)

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

v0.3.1

0.3.1 (2023-12-19)

  • feat: oauth2 client credentials support (#62), thanks @​le-yams
  • fix: remove canonical import path from oauth2 packages (#64), thanks @​bketelsen

v0.3.0

0.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) - thanks @​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
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
})
</tr></table> 

... (truncated)

Commits
  • fc519d8 release(v0.3.3): with WriteAuthorizationModel fix (#69)
  • 41a7183 chore: change owner team to dx (#68)
  • 59f76ea release(v0.3.2): listobjects fix + downgrade target go to 1.20 (#67)
  • 121eae9 release(v0.3.1): support oauth2 client creds & fix oauth2 pkgs import path (#65)
  • 7e4ec4e fix: remove canonical import path from oauth2 packages (#64)
  • 2ce2077 feat: oauth2 client credentials support (#62)
  • 6d03bf4 release(v0.3.0): with conditions support and several breaking changes (#61)
  • 81d11d5 fix: resolve a bug in NewCredentials (#60)
  • dd92162 chore(deps): bump the dependencies group with 1 update (#59)
  • 3c51f82 feat(config): allow specifying api url with port and path (#57)
  • Additional commits viewable in compare view


Dependabot compatibility score

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR: - `@dependabot rebase` will rebase this PR - `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it - `@dependabot merge` will merge this PR after your CI passes on it - `@dependabot squash and merge` will squash and merge this PR after your CI passes on it - `@dependabot cancel merge` will cancel a previously requested merge and block automerging - `@dependabot reopen` will reopen this PR if it is closed - `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually - `@dependabot show ignore conditions` will show all of the ignore conditions of the specified dependency - `@dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
dependabot[bot] commented 8 months ago

OK, I won't notify you again about this release, but will get in touch when a new version is available. If you'd rather skip all updates until the next major or minor version, let me know by commenting @dependabot ignore this major version or @dependabot ignore this minor version. You can also ignore all major, minor, or patch releases for a dependency by adding an ignore condition with the desired update_types to your config file.

If you change your mind, just re-open this PR and I'll resolve any conflicts on it.