Skip to content

Commit 0c1bfae

Browse files
authored
Merge pull request #63 from openfga/release/v0.4.0
release: v0.4.0
2 parents 8b76145 + 1f0799b commit 0c1bfae

File tree

10 files changed

+25
-16
lines changed

10 files changed

+25
-16
lines changed

.github/CODEOWNERS

+1
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
11
* @openfga/dx
2+
README.md @openfga/product @openfga/community

CHANGELOG.md

+8
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,13 @@
11
# Changelog
22

3+
## v0.4.0
4+
5+
### [0.4.0](https://github.com/openfga/java-sdk/compare/v0.3.2...v0.4.0) (2024-03-04)
6+
7+
- fix!: reverse the transaction behaviour when `disableTransactions` is set on `Write`
8+
⚠️ This is a behavioral breaking change!
9+
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).
10+
311
## v0.3.2
412

513
### [0.3.2](https://github.com/openfga/java-sdk/compare/v0.3.1...v0.3.2) (2024-01-26)

README.md

+6-6
Original file line numberDiff line numberDiff line change
@@ -74,13 +74,13 @@ It can be used with the following:
7474
* Gradle (Groovy)
7575

7676
```groovy
77-
implementation 'dev.openfga:openfga-sdk:0.3.2'
77+
implementation 'dev.openfga:openfga-sdk:0.4.0'
7878
```
7979

8080
* Gradle (Kotlin)
8181

8282
```kotlin
83-
implementation("dev.openfga:openfga-sdk:0.3.2")
83+
implementation("dev.openfga:openfga-sdk:0.4.0")
8484
```
8585

8686
* Apache Maven
@@ -89,26 +89,26 @@ implementation("dev.openfga:openfga-sdk:0.3.2")
8989
<dependency>
9090
<groupId>dev.openfga</groupId>
9191
<artifactId>openfga-sdk</artifactId>
92-
<version>0.3.2</version>
92+
<version>0.4.0</version>
9393
</dependency>
9494
```
9595

9696
* Ivy
9797

9898
```xml
99-
<dependency org="dev.openfga" name="openfga-sdk" rev="0.3.2"/>
99+
<dependency org="dev.openfga" name="openfga-sdk" rev="0.4.0"/>
100100
```
101101

102102
* SBT
103103

104104
```scala
105-
libraryDependencies += "dev.openfga" % "openfga-sdk" % "0.3.2"
105+
libraryDependencies += "dev.openfga" % "openfga-sdk" % "0.4.0"
106106
```
107107

108108
* Leiningen
109109

110110
```edn
111-
[dev.openfga/openfga-sdk "0.3.2"]
111+
[dev.openfga/openfga-sdk "0.4.0"]
112112
```
113113

114114

build.gradle

+1-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ plugins {
1919
apply from: 'publish.gradle'
2020

2121
group = 'dev.openfga'
22-
version = '0.3.2'
22+
version = '0.4.0'
2323

2424
repositories {
2525
mavenCentral()

example/README.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -30,15 +30,15 @@ Steps
3030
2. In the Example project file (e.g. `build.gradle`), comment out the part that specifies the remote SDK, e.g.
3131
```groovy
3232
dependencies {
33-
implementation("dev.openfga:openfga-sdk:0.3.+")
33+
implementation("dev.openfga:openfga-sdk:0.4.+")
3434
3535
// ...etc
3636
}
3737
```
3838
and replace it with one pointing to the local gradle project, e.g.
3939
```groovy
4040
dependencies {
41-
// implementation("dev.openfga:openfga-sdk:0.3.+")
41+
// implementation("dev.openfga:openfga-sdk:0.4.+")
4242
implementation project(path: ':')
4343
4444
// ...etc

example/example1/README.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -31,15 +31,15 @@ Steps
3131
2. In the Example project file (e.g. `build.gradle`), comment out the part that specifies the remote SDK, e.g.
3232
```groovy
3333
dependencies {
34-
implementation("dev.openfga:openfga-sdk:0.3.+")
34+
implementation("dev.openfga:openfga-sdk:0.4.+")
3535
3636
// ...etc
3737
}
3838
```
3939
and replace it with one pointing to the local gradle project, e.g.
4040
```groovy
4141
dependencies {
42-
// implementation("dev.openfga:openfga-sdk:0.3.+")
42+
// implementation("dev.openfga:openfga-sdk:0.4.+")
4343
implementation project(path: ':')
4444
4545
// ...etc

example/example1/build.gradle

+1-1
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ ext {
2323
}
2424

2525
dependencies {
26-
implementation("dev.openfga:openfga-sdk:0.3.+")
26+
implementation("dev.openfga:openfga-sdk:0.4.+")
2727

2828
// Serialization
2929
implementation("com.fasterxml.jackson.core:jackson-core:$jacksonVersion")

publish.gradle

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ publishing {
66
pom {
77
group = 'dev.openfga'
88
name = 'openfga-sdk'
9-
version = '0.3.2'
9+
version = '0.4.0'
1010
description = 'This is an autogenerated Java SDK for OpenFGA. It provides a wrapper around the [OpenFGA API definition](https://openfga.dev/api).'
1111
url = 'https://openfga.dev'
1212
licenses {

src/main/java/dev/openfga/sdk/api/configuration/Configuration.java

+2-2
Original file line numberDiff line numberDiff line change
@@ -30,10 +30,10 @@
3030
* Configurations for an api client.
3131
*/
3232
public class Configuration implements BaseConfiguration {
33-
public static final String VERSION = "0.3.2";
33+
public static final String VERSION = "0.4.0";
3434

3535
private static final String DEFAULT_API_URL = "http://localhost:8080";
36-
private static final String DEFAULT_USER_AGENT = "openfga-sdk java/0.3.2";
36+
private static final String DEFAULT_USER_AGENT = "openfga-sdk java/0.4.0";
3737
private static final Duration DEFAULT_READ_TIMEOUT = Duration.ofSeconds(10);
3838
private static final Duration DEFAULT_CONNECT_TIMEOUT = Duration.ofSeconds(10);
3939

src/test/java/dev/openfga/sdk/api/configuration/ConfigurationTest.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222

2323
class ConfigurationTest {
2424
private static final String DEFAULT_API_URL = "http://localhost:8080";
25-
private static final String DEFAULT_USER_AGENT = "openfga-sdk java/0.3.2";
25+
private static final String DEFAULT_USER_AGENT = "openfga-sdk java/0.4.0";
2626
private static final Duration DEFAULT_READ_TIMEOUT = Duration.ofSeconds(10);
2727
private static final Duration DEFAULT_CONNECT_TIMEOUT = Duration.ofSeconds(10);
2828
private static final Map<String, String> DEFAULT_HEADERS = Map.of();

0 commit comments

Comments
 (0)