Skip to content

Commit

Permalink
Merge pull request #45 from openfga/chore/0.3.1-release
Browse files Browse the repository at this point in the history
release: bump version to 0.3.1
  • Loading branch information
rhamzeh authored Jan 22, 2024
2 parents f83e631 + 5cfd124 commit 2b4dec3
Show file tree
Hide file tree
Showing 7 changed files with 22 additions and 14 deletions.
12 changes: 10 additions & 2 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,15 +1,23 @@
# Changelog

## v0.3.1

### [0.3.1](https://github.com/openfga/java-sdk/compare/v0.3.0...v0.3.1) (2024-01-22)

- feat: oauth2 client credentials support - thanks @le-yams
- fix: add context to ClientCheckRequest
- fix incorrect check for whether transactionChunkSize is not set

## v0.3.0

### [0.3.0](https://github.com/openfga/java-sdk/compare/v0.2.3...v0.3.0) (2023-12-13)

- feat: support for Conditions
- feat: support for [conditions](https://openfga.dev/blog/conditional-tuples-announcement)
- feat: standard OpenFGA headers have been added to Write, BatchCheck, and ListRelations calls
- feat: apiTokenIssuer has been expanded to support arbitrary http and https URLs. previously it supported
only configuring a hostname - thanks @le-yams
- feat: allow setting and overriding http headers
- [BREAKING] chore: use latest API interfaces
- [BREAKING] chore!: use latest API interfaces
- chore: dependency updates
- refactor: abstract common functionality; update validation and exception types

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

```groovy
implementation 'dev.openfga:openfga-sdk:0.3.0'
implementation 'dev.openfga:openfga-sdk:0.3.1'
```

* Gradle (Kotlin)

```kotlin
implementation("dev.openfga:openfga-sdk:0.3.0")
implementation("dev.openfga:openfga-sdk:0.3.1")
```

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

* Ivy

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

* SBT

```scala
libraryDependencies += "dev.openfga" % "openfga-sdk" % "0.3.0"
libraryDependencies += "dev.openfga" % "openfga-sdk" % "0.3.1"
```

* Leiningen

```edn
[dev.openfga/openfga-sdk "0.3.0"]
[dev.openfga/openfga-sdk "0.3.1"]
```


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.3.0'
version = '0.3.1'

repositories {
mavenCentral()
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.3.0'
version = '0.3.1'
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 @@ -54,6 +54,6 @@ public ClientWriteOptions transactionChunkSize(int transactionChunkSize) {
}

public int getTransactionChunkSize() {
return transactionChunkSize >= 0 ? transactionChunkSize : 1;
return transactionChunkSize > 0 ? transactionChunkSize : 1;
}
}
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.3.0";
public static final String VERSION = "0.3.1";

private static final String DEFAULT_API_URL = "http://localhost:8080";
private static final String DEFAULT_USER_AGENT = "openfga-sdk java/0.3.0";
private static final String DEFAULT_USER_AGENT = "openfga-sdk java/0.3.1";
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.3.0";
private static final String DEFAULT_USER_AGENT = "openfga-sdk java/0.3.1";
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

0 comments on commit 2b4dec3

Please sign in to comment.