diff --git a/CHANGELOG.md b/CHANGELOG.md index 61c54fbf..70b88a58 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,13 @@ # Changelog +## v0.3.2 + +### [0.3.2](https://github.com/openfga/java-sdk/compare/v0.3.1...v0.3.2) (2024-01-26) + +- fix: fix token validity check for expiry (#48) +- fix: send OAuth2 credentials request as form-urlencoded post (#47) - thanks @le-yams +- fix: do not create new http client on every request (#46) + ## v0.3.1 ### [0.3.1](https://github.com/openfga/java-sdk/compare/v0.3.0...v0.3.1) (2024-01-22) diff --git a/README.md b/README.md index 54af6db7..05a4e9a8 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.1' +implementation 'dev.openfga:openfga-sdk:0.3.2' ``` * Gradle (Kotlin) ```kotlin -implementation("dev.openfga:openfga-sdk:0.3.1") +implementation("dev.openfga:openfga-sdk:0.3.2") ``` * Apache Maven @@ -89,26 +89,26 @@ implementation("dev.openfga:openfga-sdk:0.3.1") dev.openfga openfga-sdk - 0.3.1 + 0.3.2 ``` * Ivy ```xml - + ``` * SBT ```scala -libraryDependencies += "dev.openfga" % "openfga-sdk" % "0.3.1" +libraryDependencies += "dev.openfga" % "openfga-sdk" % "0.3.2" ``` * Leiningen ```edn -[dev.openfga/openfga-sdk "0.3.1"] +[dev.openfga/openfga-sdk "0.3.2"] ``` diff --git a/build.gradle b/build.gradle index 9b1f4a60..e17982e2 100644 --- a/build.gradle +++ b/build.gradle @@ -19,7 +19,7 @@ plugins { apply from: 'publish.gradle' group = 'dev.openfga' -version = '0.3.1' +version = '0.3.2' repositories { mavenCentral() diff --git a/publish.gradle b/publish.gradle index 14b32285..4f3f6ad0 100644 --- a/publish.gradle +++ b/publish.gradle @@ -6,7 +6,7 @@ publishing { pom { group = 'dev.openfga' name = 'openfga-sdk' - version = '0.3.1' + version = '0.3.2' 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 cba92b8e..b7c48e5b 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.1"; + public static final String VERSION = "0.3.2"; private static final String DEFAULT_API_URL = "http://localhost:8080"; - private static final String DEFAULT_USER_AGENT = "openfga-sdk java/0.3.1"; + private static final String DEFAULT_USER_AGENT = "openfga-sdk java/0.3.2"; 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 142f981f..943bbb29 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.1"; + private static final String DEFAULT_USER_AGENT = "openfga-sdk java/0.3.2"; 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();