From 12dbcb11964f9d36da0ef55d557d9287722939e4 Mon Sep 17 00:00:00 2001 From: Raghd Hamzeh Date: Sun, 3 Mar 2024 22:43:02 -0500 Subject: [PATCH 1/2] chore: allow approval of READNE updates by product and community --- .github/CODEOWNERS | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/CODEOWNERS b/.github/CODEOWNERS index a263714..2022d24 100644 --- a/.github/CODEOWNERS +++ b/.github/CODEOWNERS @@ -1 +1,2 @@ * @openfga/dx +README.md @openfga/product @openfga/community From 1f0799b7657cf16b9bfcfbfb224c0b833faae580 Mon Sep 17 00:00:00 2001 From: Raghd Hamzeh Date: Sun, 3 Mar 2024 22:58:02 -0500 Subject: [PATCH 2/2] release: v0.4.0 --- CHANGELOG.md | 8 ++++++++ README.md | 12 ++++++------ build.gradle | 2 +- example/README.md | 4 ++-- example/example1/README.md | 4 ++-- example/example1/build.gradle | 2 +- publish.gradle | 2 +- .../openfga/sdk/api/configuration/Configuration.java | 4 ++-- .../sdk/api/configuration/ConfigurationTest.java | 2 +- 9 files changed, 24 insertions(+), 16 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 70b88a5..f5ce880 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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) diff --git a/README.md b/README.md index 193e4bd..9d7bce5 100644 --- a/README.md +++ b/README.md @@ -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 @@ -89,26 +89,26 @@ implementation("dev.openfga:openfga-sdk:0.3.2") dev.openfga openfga-sdk - 0.3.2 + 0.4.0 ``` * Ivy ```xml - + ``` * 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"] ``` diff --git a/build.gradle b/build.gradle index 6062048..2303568 100644 --- a/build.gradle +++ b/build.gradle @@ -19,7 +19,7 @@ plugins { apply from: 'publish.gradle' group = 'dev.openfga' -version = '0.3.2' +version = '0.4.0' repositories { mavenCentral() diff --git a/example/README.md b/example/README.md index 023c55c..225a5ee 100644 --- a/example/README.md +++ b/example/README.md @@ -30,7 +30,7 @@ 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 } @@ -38,7 +38,7 @@ dependencies { 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 diff --git a/example/example1/README.md b/example/example1/README.md index b4f70a4..8a510b9 100644 --- a/example/example1/README.md +++ b/example/example1/README.md @@ -31,7 +31,7 @@ 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 } @@ -39,7 +39,7 @@ dependencies { 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 diff --git a/example/example1/build.gradle b/example/example1/build.gradle index 793cd3e..9ea6879 100644 --- a/example/example1/build.gradle +++ b/example/example1/build.gradle @@ -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") diff --git a/publish.gradle b/publish.gradle index 4f3f6ad..717320b 100644 --- a/publish.gradle +++ b/publish.gradle @@ -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 { diff --git a/src/main/java/dev/openfga/sdk/api/configuration/Configuration.java b/src/main/java/dev/openfga/sdk/api/configuration/Configuration.java index b7c48e5..03511ad 100644 --- a/src/main/java/dev/openfga/sdk/api/configuration/Configuration.java +++ b/src/main/java/dev/openfga/sdk/api/configuration/Configuration.java @@ -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); diff --git a/src/test/java/dev/openfga/sdk/api/configuration/ConfigurationTest.java b/src/test/java/dev/openfga/sdk/api/configuration/ConfigurationTest.java index 943bbb2..692887f 100644 --- a/src/test/java/dev/openfga/sdk/api/configuration/ConfigurationTest.java +++ b/src/test/java/dev/openfga/sdk/api/configuration/ConfigurationTest.java @@ -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 DEFAULT_HEADERS = Map.of();