From 3b40f9eaad2d1beb4b28404b252b54694f78d05b Mon Sep 17 00:00:00 2001 From: Jim Anderson Date: Wed, 28 Aug 2024 10:41:30 -0500 Subject: [PATCH] release: v0.7.0 --- CHANGELOG.md | 8 ++++++++ README.md | 12 ++++++------ build.gradle | 2 +- example/example1/build.gradle | 2 +- publish.gradle | 2 +- .../openfga/sdk/api/configuration/Configuration.java | 4 ++-- src/main/java/dev/openfga/sdk/telemetry/Metrics.java | 4 ++-- .../sdk/api/configuration/ConfigurationTest.java | 2 +- 8 files changed, 22 insertions(+), 14 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 940f00d..9dde37d 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,13 @@ # Changelog +## v0.7.0 + +### [0.7.0](https://github.com/openfga/java-sdk/compare/v0.6.1...v0.7.0) (2024-08-28) + +- feat: support consistency parameter [\#107](https://github.com/openfga/java-sdk/pull/107) +Note: To use this feature, you need to be running OpenFGA v1.5.7+ with the experimental flag `enable-consistency-params` enabled. +See the [v1.5.7 release notes](https://github.com/openfga/openfga/releases/tag/v1.5.7) for details. + ## v0.6.1 - fix: Maven build issue diff --git a/README.md b/README.md index 341fde5..865f66c 100644 --- a/README.md +++ b/README.md @@ -77,13 +77,13 @@ It can be used with the following: * Gradle (Groovy) ```groovy -implementation 'dev.openfga:openfga-sdk:0.6.1' +implementation 'dev.openfga:openfga-sdk:0.7.0' ``` * Gradle (Kotlin) ```kotlin -implementation("dev.openfga:openfga-sdk:0.6.1") +implementation("dev.openfga:openfga-sdk:0.7.0") ``` * Apache Maven @@ -92,26 +92,26 @@ implementation("dev.openfga:openfga-sdk:0.6.1") dev.openfga openfga-sdk - 0.6.1 + 0.7.0 ``` * Ivy ```xml - + ``` * SBT ```scala -libraryDependencies += "dev.openfga" % "openfga-sdk" % "0.6.1" +libraryDependencies += "dev.openfga" % "openfga-sdk" % "0.7.0" ``` * Leiningen ```edn -[dev.openfga/openfga-sdk "0.6.1"] +[dev.openfga/openfga-sdk "0.7.0"] ``` diff --git a/build.gradle b/build.gradle index 13f5bdc..5375275 100644 --- a/build.gradle +++ b/build.gradle @@ -19,7 +19,7 @@ plugins { apply from: 'publish.gradle' group = 'dev.openfga' -version = '0.6.1' +version = '0.7.0' repositories { mavenCentral() diff --git a/example/example1/build.gradle b/example/example1/build.gradle index 06af6b7..90ad1ca 100644 --- a/example/example1/build.gradle +++ b/example/example1/build.gradle @@ -23,7 +23,7 @@ ext { } dependencies { - implementation("dev.openfga:openfga-sdk:0.6.1") + implementation("dev.openfga:openfga-sdk:0.7.0") // Serialization implementation("com.fasterxml.jackson.core:jackson-core:$jacksonVersion") diff --git a/publish.gradle b/publish.gradle index 246a123..d225f82 100644 --- a/publish.gradle +++ b/publish.gradle @@ -6,7 +6,7 @@ publishing { pom { group = 'dev.openfga' name = 'openfga-sdk' - version = '0.6.1' + version = '0.7.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 b599546..3de0106 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.6.1"; + public static final String VERSION = "0.7.0"; private static final String DEFAULT_API_URL = "http://localhost:8080"; - private static final String DEFAULT_USER_AGENT = "openfga-sdk java/0.6.1"; + private static final String DEFAULT_USER_AGENT = "openfga-sdk java/0.7.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/main/java/dev/openfga/sdk/telemetry/Metrics.java b/src/main/java/dev/openfga/sdk/telemetry/Metrics.java index 6ca6a22..9e4e3d4 100644 --- a/src/main/java/dev/openfga/sdk/telemetry/Metrics.java +++ b/src/main/java/dev/openfga/sdk/telemetry/Metrics.java @@ -19,14 +19,14 @@ public class Metrics { private final Configuration configuration; public Metrics() { - this.meter = OpenTelemetry.noop().getMeterProvider().get("openfga-sdk/0.6.1"); + this.meter = OpenTelemetry.noop().getMeterProvider().get("openfga-sdk/0.7.0"); this.counters = new HashMap<>(); this.histograms = new HashMap<>(); this.configuration = new Configuration(); } public Metrics(Configuration configuration) { - this.meter = OpenTelemetry.noop().getMeterProvider().get("openfga-sdk/0.6.1"); + this.meter = OpenTelemetry.noop().getMeterProvider().get("openfga-sdk/0.7.0"); this.counters = new HashMap<>(); this.histograms = new HashMap<>(); this.configuration = configuration; 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 a5317b1..e65eac8 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.6.1"; + private static final String DEFAULT_USER_AGENT = "openfga-sdk java/0.7.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();