diff --git a/CHANGELOG.md b/CHANGELOG.md index 42862e2..7bbfe01 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,17 @@ # Changelog +## v0.3.0 + +### [0.3.0](https://github.com/openfga/java-sdk/compare/v0.2.3...v0.3.0) (2023-12-13) + +- feat: initial support for attribute-based access control (ABAC), introducing conditions +- [BREAKING] chore: use latest API interfaces +- chore: dependency updates +- 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 +- feat: standard OpenFGA headers have been added to Write, BatchCheck, and ListRelations calls + ## v0.2.3 ### [0.2.3](https://github.com/openfga/java-sdk/compare/v0.2.2...v0.2.3) (2023-11-21) diff --git a/README.md b/README.md index 770d214..b00b82d 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.2.3' +implementation 'dev.openfga:openfga-sdk:0.3.0' ``` * Gradle (Kotlin) ```kotlin -implementation("dev.openfga:openfga-sdk:0.2.3") +implementation("dev.openfga:openfga-sdk:0.3.0") ``` * Apache Maven @@ -89,26 +89,26 @@ implementation("dev.openfga:openfga-sdk:0.2.3") dev.openfga openfga-sdk - 0.2.3 + 0.3.0 ``` * Ivy ```xml - + ``` * SBT ```scala -libraryDependencies += "dev.openfga" % "openfga-sdk" % "0.2.3" +libraryDependencies += "dev.openfga" % "openfga-sdk" % "0.3.0" ``` * Leiningen ```edn -[dev.openfga/openfga-sdk "0.2.3"] +[dev.openfga/openfga-sdk "0.3.0"] ``` diff --git a/build.gradle b/build.gradle index 4b7325e..d9020df 100644 --- a/build.gradle +++ b/build.gradle @@ -19,7 +19,7 @@ plugins { apply from: 'publish.gradle' group = 'dev.openfga' -version = '0.2.3' +version = '0.3.0' repositories { mavenCentral() diff --git a/publish.gradle b/publish.gradle index ec416a1..0ef8074 100644 --- a/publish.gradle +++ b/publish.gradle @@ -6,7 +6,7 @@ publishing { pom { group = 'dev.openfga' name = 'openfga-sdk' - version = '0.2.3' + version = '0.3.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 040df1f..fdb6539 100644 --- a/src/main/java/dev/openfga/sdk/api/configuration/Configuration.java +++ b/src/main/java/dev/openfga/sdk/api/configuration/Configuration.java @@ -29,10 +29,10 @@ * Configurations for an api client. */ public class Configuration implements BaseConfiguration { - public static final String VERSION = "0.2.3"; + public static final String VERSION = "0.3.0"; private static final String DEFAULT_API_URL = "http://localhost:8080"; - private static final String DEFAULT_USER_AGENT = "openfga-sdk java/0.2.3"; + private static final String DEFAULT_USER_AGENT = "openfga-sdk java/0.3.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 9226713..c29ef65 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.2.3"; + private static final String DEFAULT_USER_AGENT = "openfga-sdk java/0.3.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();