Skip to content

Commit

Permalink
release: v0.4.0
Browse files Browse the repository at this point in the history
  • Loading branch information
rhamzeh committed Mar 4, 2024
1 parent 12dbcb1 commit 1f0799b
Show file tree
Hide file tree
Showing 9 changed files with 24 additions and 16 deletions.
8 changes: 8 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,13 @@
# Changelog

## v0.4.0

### [0.4.0](https://github.com/openfga/java-sdk/compare/v0.3.2...v0.4.0) (2024-03-04)

- fix!: reverse the transaction behaviour when `disableTransactions` is set on `Write`
⚠️ This is a behavioral breaking change!
Previously, the `OpenFgaClient` reversed the behavior of write transactions based on the `disableTransactions` flag. This has been fixed so that batched writes are sent if `disableTransactions == true` and a single transactional write if it is false (default).

## v0.3.2

### [0.3.2](https://github.com/openfga/java-sdk/compare/v0.3.1...v0.3.2) (2024-01-26)
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.2'
implementation 'dev.openfga:openfga-sdk:0.4.0'
```

* Gradle (Kotlin)

```kotlin
implementation("dev.openfga:openfga-sdk:0.3.2")
implementation("dev.openfga:openfga-sdk:0.4.0")
```

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

* Ivy

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

* SBT

```scala
libraryDependencies += "dev.openfga" % "openfga-sdk" % "0.3.2"
libraryDependencies += "dev.openfga" % "openfga-sdk" % "0.4.0"
```

* Leiningen

```edn
[dev.openfga/openfga-sdk "0.3.2"]
[dev.openfga/openfga-sdk "0.4.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.3.2'
version = '0.4.0'

repositories {
mavenCentral()
Expand Down
4 changes: 2 additions & 2 deletions example/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,15 +30,15 @@ Steps
2. In the Example project file (e.g. `build.gradle`), comment out the part that specifies the remote SDK, e.g.
```groovy
dependencies {
implementation("dev.openfga:openfga-sdk:0.3.+")
implementation("dev.openfga:openfga-sdk:0.4.+")
// ...etc
}
```
and replace it with one pointing to the local gradle project, e.g.
```groovy
dependencies {
// implementation("dev.openfga:openfga-sdk:0.3.+")
// implementation("dev.openfga:openfga-sdk:0.4.+")
implementation project(path: ':')
// ...etc
Expand Down
4 changes: 2 additions & 2 deletions example/example1/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,15 +31,15 @@ Steps
2. In the Example project file (e.g. `build.gradle`), comment out the part that specifies the remote SDK, e.g.
```groovy
dependencies {
implementation("dev.openfga:openfga-sdk:0.3.+")
implementation("dev.openfga:openfga-sdk:0.4.+")
// ...etc
}
```
and replace it with one pointing to the local gradle project, e.g.
```groovy
dependencies {
// implementation("dev.openfga:openfga-sdk:0.3.+")
// implementation("dev.openfga:openfga-sdk:0.4.+")
implementation project(path: ':')
// ...etc
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.3.+")
implementation("dev.openfga:openfga-sdk:0.4.+")

// 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.3.2'
version = '0.4.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.3.2";
public static final String VERSION = "0.4.0";

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

0 comments on commit 1f0799b

Please sign in to comment.