Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

release!: release v0.8.0 #144

Merged
merged 2 commits into from
Feb 7, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 10 additions & 4 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,12 +1,18 @@
# Changelog

## [Unreleased](https://github.com/openfga/java-sdk/compare/v0.7.2...HEAD)
## [Unreleased](https://github.com/openfga/java-sdk/compare/v0.8.0...HEAD)

- feat!: add support for server-side `BatchCheck` method
- feat: add support for `start_time` parameter in `ReadChanges` endpoint
## v0.8.0

BREAKING CHANGES:
### [0.8.0](https://github.com/openfga/java-sdk/compare/v0.7.2...v0.8.0) (2025-02-07)

- feat!: add support for server-side [`batchCheck`](https://openfga.dev/docs/interacting/relationship-queries#batch-check) method (#141) - thanks @piotrooo!!
This is a more efficient way to check on multiple tuples than calling the existing client-side `batchCheck`. Using this method requires an OpenFGA [v1.8.0+](https://github.com/openfga/openfga/releases/tag/v1.8.0) server.
The existing `batchCheck` method has been renamed to `clientBatchCheck`.
The existing `BatchCheckResponse` has been renamed to `ClientBatchCheckResponse`.
- feat: add support for `start_time` parameter in `ReadChanges` endpoint (#137)

BREAKING CHANGES:
- Usage of the existing `batchCheck` method should now use the `clientBatchCheck` method.

## v0.7.2
Expand Down
12 changes: 6 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -79,13 +79,13 @@ It can be used with the following:
* Gradle (Groovy)

```groovy
implementation 'dev.openfga:openfga-sdk:0.7.2'
implementation 'dev.openfga:openfga-sdk:0.8.0'
```

* Gradle (Kotlin)

```kotlin
implementation("dev.openfga:openfga-sdk:0.7.2")
implementation("dev.openfga:openfga-sdk:0.8.0")
```

* Apache Maven
Expand All @@ -94,26 +94,26 @@ implementation("dev.openfga:openfga-sdk:0.7.2")
<dependency>
<groupId>dev.openfga</groupId>
<artifactId>openfga-sdk</artifactId>
<version>0.7.2</version>
<version>0.8.0</version>
</dependency>
```

* Ivy

```xml
<dependency org="dev.openfga" name="openfga-sdk" rev="0.7.2"/>
<dependency org="dev.openfga" name="openfga-sdk" rev="0.8.0"/>
```

* SBT

```scala
libraryDependencies += "dev.openfga" % "openfga-sdk" % "0.7.2"
libraryDependencies += "dev.openfga" % "openfga-sdk" % "0.8.0"
```

* Leiningen

```edn
[dev.openfga/openfga-sdk "0.7.2"]
[dev.openfga/openfga-sdk "0.8.0"]
```


Expand Down
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ plugins {
apply from: 'publish.gradle'

group = 'dev.openfga'
version = '0.7.2'
version = '0.8.0'

repositories {
mavenCentral()
Expand Down
2 changes: 1 addition & 1 deletion example/example1/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ ext {
}

dependencies {
implementation("dev.openfga:openfga-sdk:0.7.2")
implementation("dev.openfga:openfga-sdk:0.8.0")

// Serialization
implementation("com.fasterxml.jackson.core:jackson-core:$jacksonVersion")
Expand Down
2 changes: 1 addition & 1 deletion publish.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ publishing {
pom {
group = 'dev.openfga'
name = 'openfga-sdk'
version = '0.7.2'
version = '0.8.0'
description = 'This is an autogenerated Java SDK for OpenFGA. It provides a wrapper around the [OpenFGA API definition](https://openfga.dev/api).'
url = 'https://openfga.dev'
licenses {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,10 +30,10 @@
* Configurations for an api client.
*/
public class Configuration implements BaseConfiguration {
public static final String VERSION = "0.7.2";
public static final String VERSION = "0.8.0";

private static final String DEFAULT_API_URL = "http://localhost:8080";
private static final String DEFAULT_USER_AGENT = "openfga-sdk java/0.7.2";
private static final String DEFAULT_USER_AGENT = "openfga-sdk java/0.8.0";
private static final Duration DEFAULT_READ_TIMEOUT = Duration.ofSeconds(10);
private static final Duration DEFAULT_CONNECT_TIMEOUT = Duration.ofSeconds(10);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@

class ConfigurationTest {
private static final String DEFAULT_API_URL = "http://localhost:8080";
private static final String DEFAULT_USER_AGENT = "openfga-sdk java/0.7.2";
private static final String DEFAULT_USER_AGENT = "openfga-sdk java/0.8.0";
private static final Duration DEFAULT_READ_TIMEOUT = Duration.ofSeconds(10);
private static final Duration DEFAULT_CONNECT_TIMEOUT = Duration.ofSeconds(10);
private static final Map<String, String> DEFAULT_HEADERS = Map.of();
Expand Down