|
1 | 1 | # Changelog
|
2 | 2 |
|
| 3 | +## v0.4.0 |
| 4 | + |
| 5 | +### [0.4.0](https://github.com/openfga/python-sdk/compare/v0.3.4...v0.4.0) (2024-01-11) |
| 6 | + |
| 7 | +- feat: support for [conditions](https://openfga.dev/blog/conditional-tuples-announcement) |
| 8 | +- chore!: use latest API interfaces for type info |
| 9 | +- chore: add [example project](./example) |
| 10 | +- chore: dependency updates |
| 11 | + |
| 12 | +BREAKING CHANGES: |
| 13 | +Note: This release comes with substantial breaking changes, especially to the interfaces due to the protobuf changes in the last release. |
| 14 | + |
| 15 | +While the http interfaces did not break (you can still use `v0.3.3` SDK with a `v1.3.8+` server), |
| 16 | +the grpc interface did and this caused a few changes in the interfaces of the SDK. |
| 17 | + |
| 18 | +If you are using `OpenFgaClient`, the changes required should be smaller, if you are using `OpenFgaApi` a bit more changes will be needed. |
| 19 | + |
| 20 | +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, |
| 21 | +and so the Pointer-to-String conversion is no longer needed. |
| 22 | + |
| 23 | +Some of the changes to expect: |
| 24 | +- The following request interfaces changed: |
| 25 | + - `CheckRequest`: the `TupleKey` field is now of interface `CheckRequestTupleKey`, you can also now pass in `Context` |
| 26 | + - `ExpandRequest`: the `TupleKey` field is now of interface `ExpandRequestTupleKey` |
| 27 | + - `ReadRequest`: the `TupleKey` field is now of interface `ReadRequestTupleKey` |
| 28 | + - `WriteRequest`: now takes `WriteRequestWrites` and `WriteRequestDeletes`, the latter of which accepts `TupleKeyWithoutCondition` |
| 29 | + - And more |
| 30 | +- The following interfaces had fields that were optional are are now required: |
| 31 | + - `CreateStoreResponse` |
| 32 | + - `GetStoreResponse` |
| 33 | + - `ListStoresResponse` |
| 34 | + - `ListObjectsResponse` |
| 35 | + - `ReadChangesResponse` |
| 36 | + - `ReadResponse` |
| 37 | + - `AuthorizationModel` |
| 38 | + - And more |
| 39 | + |
| 40 | +Take a look at the changes in models in https://github.com/openfga/python-sdk/commit/9ed1f70d64db71451de2eb26e330bbd511625c5c and https://github.com/openfga/python-sdk/pull/59/files for more. |
| 41 | + |
| 42 | +## v0.3.4 |
| 43 | + |
| 44 | +### [0.3.4](https://github.com/openfga/python-sdk/compare/v0.3.3...v0.3.4) (2024-01-09) |
| 45 | + |
| 46 | +Note: `v0.3.4` has been re-released as `v0.4.0` due to breaking changes |
| 47 | + |
3 | 48 | ## v0.3.3
|
4 | 49 |
|
5 | 50 | ### [0.3.3](https://github.com/openfga/python-sdk/compare/v0.3.2...v0.3.3) (2024-01-02)
|
|
0 commit comments