diff --git a/.github/workflows/merge.yml b/.github/workflows/merge.yml
index 6a8a4be7..04b20128 100644
--- a/.github/workflows/merge.yml
+++ b/.github/workflows/merge.yml
@@ -22,7 +22,7 @@ jobs:
steps:
- uses: actions/checkout@96f53100ba2a5449eb71d2e6604bbcd94b9449b5
- name: Set up JDK 8
- uses: actions/setup-java@75c6561172d237e514a15dfd831cb331e5506d5e
+ uses: actions/setup-java@cd89f46ac9d01407894225f350157564c9c7cee2
with:
java-version: '8'
distribution: 'temurin'
diff --git a/.github/workflows/pullrequest.yml b/.github/workflows/pullrequest.yml
index f3db5d6a..3c3ae95f 100644
--- a/.github/workflows/pullrequest.yml
+++ b/.github/workflows/pullrequest.yml
@@ -19,14 +19,14 @@ jobs:
uses: actions/checkout@96f53100ba2a5449eb71d2e6604bbcd94b9449b5
- name: Set up JDK 8
- uses: actions/setup-java@75c6561172d237e514a15dfd831cb331e5506d5e
+ uses: actions/setup-java@cd89f46ac9d01407894225f350157564c9c7cee2
with:
java-version: '8'
distribution: 'temurin'
cache: maven
- name: Initialize CodeQL
- uses: github/codeql-action/init@c5526174a564f5a5444d71884af87163f19cf394
+ uses: github/codeql-action/init@7b6664fa89524ee6e3c3e9749402d5afd69b3cd8
with:
languages: java
@@ -51,4 +51,4 @@ jobs:
verbose: true # optional (default = false)
- name: Perform CodeQL Analysis
- uses: github/codeql-action/analyze@c5526174a564f5a5444d71884af87163f19cf394
+ uses: github/codeql-action/analyze@7b6664fa89524ee6e3c3e9749402d5afd69b3cd8
diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml
index 611e7952..3c9bef90 100644
--- a/.github/workflows/release.yml
+++ b/.github/workflows/release.yml
@@ -19,7 +19,7 @@ jobs:
# Release-please creates a PR that tracks all changes
steps:
- - uses: google-github-actions/release-please-action@01f98cb9de537919302b1694069728b853c652ea
+ - uses: google-github-actions/release-please-action@ca6063f4ed81b55db15b8c42d1b6f7925866342d
id: release
with:
command: manifest
@@ -32,7 +32,7 @@ jobs:
uses: actions/checkout@96f53100ba2a5449eb71d2e6604bbcd94b9449b5
- name: Set up JDK 8
if: ${{ steps.release.outputs.releases_created }}
- uses: actions/setup-java@75c6561172d237e514a15dfd831cb331e5506d5e
+ uses: actions/setup-java@cd89f46ac9d01407894225f350157564c9c7cee2
with:
java-version: '8'
distribution: 'temurin'
diff --git a/.github/workflows/static-code-scanning.yaml b/.github/workflows/static-code-scanning.yaml
index ffcf6db1..114343a6 100644
--- a/.github/workflows/static-code-scanning.yaml
+++ b/.github/workflows/static-code-scanning.yaml
@@ -33,12 +33,12 @@ jobs:
# Initializes the CodeQL tools for scanning.
- name: Initialize CodeQL
- uses: github/codeql-action/init@c5526174a564f5a5444d71884af87163f19cf394
+ uses: github/codeql-action/init@7b6664fa89524ee6e3c3e9749402d5afd69b3cd8
with:
languages: java
- name: Autobuild
- uses: github/codeql-action/autobuild@c5526174a564f5a5444d71884af87163f19cf394
+ uses: github/codeql-action/autobuild@7b6664fa89524ee6e3c3e9749402d5afd69b3cd8
- name: Perform CodeQL Analysis
- uses: github/codeql-action/analyze@c5526174a564f5a5444d71884af87163f19cf394
+ uses: github/codeql-action/analyze@7b6664fa89524ee6e3c3e9749402d5afd69b3cd8
diff --git a/.release-please-manifest.json b/.release-please-manifest.json
index 802de1e8..c9735194 100644
--- a/.release-please-manifest.json
+++ b/.release-please-manifest.json
@@ -1 +1 @@
-{".":"1.4.0"}
\ No newline at end of file
+{".":"1.4.1"}
\ No newline at end of file
diff --git a/CHANGELOG.md b/CHANGELOG.md
index 3b72181f..64cba4e5 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -1,5 +1,29 @@
# Changelog
+## [1.4.1](https://github.com/open-feature/java-sdk/compare/v1.4.0...v1.4.1) (2023-07-24)
+
+
+### ๐ Bug Fixes
+
+* **deps:** update junit5 monorepo ([#524](https://github.com/open-feature/java-sdk/issues/524)) ([a2ee70e](https://github.com/open-feature/java-sdk/commit/a2ee70e8d66d8af0a7de8d7c6a477257de566df8))
+* Implement equals for the ImmutableMetadata object ([#512](https://github.com/open-feature/java-sdk/issues/512)) ([6253aee](https://github.com/open-feature/java-sdk/commit/6253aee3b3ae58309e328dcc1816dbbdba86f35f))
+
+
+### ๐งน Chore
+
+* **deps:** update actions/setup-java digest to 4fb3975 ([#516](https://github.com/open-feature/java-sdk/issues/516)) ([fd2262f](https://github.com/open-feature/java-sdk/commit/fd2262f0584fed4d3130427a8b271b88d241ff71))
+* **deps:** update actions/setup-java digest to cd89f46 ([#522](https://github.com/open-feature/java-sdk/issues/522)) ([965bb19](https://github.com/open-feature/java-sdk/commit/965bb1941047e71c49cfafa625d6db9fecc08d92))
+* **deps:** update github/codeql-action digest to 013a1d0 ([#510](https://github.com/open-feature/java-sdk/issues/510)) ([bbb4008](https://github.com/open-feature/java-sdk/commit/bbb4008b381cd01719c880aa358eb055e0ac0cd4))
+* **deps:** update github/codeql-action digest to 262017a ([#514](https://github.com/open-feature/java-sdk/issues/514)) ([e9044af](https://github.com/open-feature/java-sdk/commit/e9044af48e520c1165cb6cdec6f683aac4b8d37e))
+* **deps:** update github/codeql-action digest to 6ae46f7 ([#518](https://github.com/open-feature/java-sdk/issues/518)) ([fe3be7d](https://github.com/open-feature/java-sdk/commit/fe3be7df73217bc9dcc29427f7676f05ac41a200))
+* **deps:** update github/codeql-action digest to 7b6664f ([#525](https://github.com/open-feature/java-sdk/issues/525)) ([b208c23](https://github.com/open-feature/java-sdk/commit/b208c233621c03f3330ffd1ec60f1ee87826a6dc))
+* **deps:** update github/codeql-action digest to 942acab ([#515](https://github.com/open-feature/java-sdk/issues/515)) ([ef199b9](https://github.com/open-feature/java-sdk/commit/ef199b94fd8ecd866893168f06717c1de2ee2fda))
+* **deps:** update github/codeql-action digest to a148c58 ([#508](https://github.com/open-feature/java-sdk/issues/508)) ([4e1675d](https://github.com/open-feature/java-sdk/commit/4e1675d9c321c8a980b9a2021b52419683c3730f))
+* **deps:** update github/codeql-action digest to ce84bed ([#520](https://github.com/open-feature/java-sdk/issues/520)) ([d159692](https://github.com/open-feature/java-sdk/commit/d1596924f0992c5fbdc270f567f19973d3fc1276))
+* **deps:** update github/codeql-action digest to d0dd7d7 ([#519](https://github.com/open-feature/java-sdk/issues/519)) ([b4bae84](https://github.com/open-feature/java-sdk/commit/b4bae84bc1202f7e15c399a5cf7128a4b067bf0b))
+* **deps:** update github/codeql-action digest to d2ed0a0 ([#517](https://github.com/open-feature/java-sdk/issues/517)) ([7993c36](https://github.com/open-feature/java-sdk/commit/7993c360d679a2a8715f1c43fd7b344ff357b2ef))
+* **deps:** update google-github-actions/release-please-action digest to ca6063f ([#521](https://github.com/open-feature/java-sdk/issues/521)) ([dd7d024](https://github.com/open-feature/java-sdk/commit/dd7d02466cdf96ed5595b63d34f1749629dfd01b))
+
## [1.4.0](https://github.com/open-feature/java-sdk/compare/v1.3.1...v1.4.0) (2023-07-13)
diff --git a/README.md b/README.md
index 8ef4a053..bc6dcd8c 100644
--- a/README.md
+++ b/README.md
@@ -43,7 +43,7 @@ Note that this library is intended to be used in server-side contexts and has no
dev.openfeature
sdk
- 1.4.0
+ 1.4.1
```
@@ -67,7 +67,7 @@ If you would like snapshot builds, this is the relevant repository information:
```groovy
dependencies {
- implementation 'dev.openfeature:sdk:1.4.0'
+ implementation 'dev.openfeature:sdk:1.4.1'
}
```
diff --git a/pom.xml b/pom.xml
index 3ec58097..e8761b9d 100644
--- a/pom.xml
+++ b/pom.xml
@@ -4,13 +4,13 @@
dev.openfeature
sdk
- 1.4.0
+ 1.4.1
UTF-8
1.8
${maven.compiler.source}
- 5.9.3
+ 5.10.0
**/e2e/*.java
${groupId}.${artifactId}
@@ -109,7 +109,7 @@
org.junit.platform
junit-platform-suite
- 1.9.3
+ 1.10.0
test
@@ -168,7 +168,7 @@
org.junit
junit-bom
- 5.9.3
+ 5.10.0
pom
import
diff --git a/src/main/java/dev/openfeature/sdk/ImmutableMetadata.java b/src/main/java/dev/openfeature/sdk/ImmutableMetadata.java
index 1bc130b4..75f89847 100644
--- a/src/main/java/dev/openfeature/sdk/ImmutableMetadata.java
+++ b/src/main/java/dev/openfeature/sdk/ImmutableMetadata.java
@@ -1,5 +1,6 @@
package dev.openfeature.sdk;
+import lombok.EqualsAndHashCode;
import lombok.extern.slf4j.Slf4j;
import java.util.HashMap;
@@ -10,6 +11,7 @@
* through builder and accessors.
*/
@Slf4j
+@EqualsAndHashCode
public class ImmutableMetadata {
private final Map metadata;
diff --git a/src/test/java/dev/openfeature/sdk/FlagEvaluationDetailsTest.java b/src/test/java/dev/openfeature/sdk/FlagEvaluationDetailsTest.java
index 9a6df1a6..dfa77274 100644
--- a/src/test/java/dev/openfeature/sdk/FlagEvaluationDetailsTest.java
+++ b/src/test/java/dev/openfeature/sdk/FlagEvaluationDetailsTest.java
@@ -45,4 +45,26 @@ public void sevenArgConstructor() {
assertEquals(errorMessage, details.getErrorMessage());
assertEquals(metadata, details.getFlagMetadata());
}
+
+ @Test
+ @DisplayName("should be able to compare 2 FlagEvaluationDetails")
+ public void compareFlagEvaluationDetails(){
+ FlagEvaluationDetails fed1 = FlagEvaluationDetails.builder()
+ .reason(Reason.ERROR.toString())
+ .value(false)
+ .errorCode(ErrorCode.GENERAL)
+ .errorMessage("error XXX")
+ .flagMetadata(ImmutableMetadata.builder().addString("metadata","1").build())
+ .build();
+
+ FlagEvaluationDetails fed2 = FlagEvaluationDetails.builder()
+ .reason(Reason.ERROR.toString())
+ .value(false)
+ .errorCode(ErrorCode.GENERAL)
+ .errorMessage("error XXX")
+ .flagMetadata(ImmutableMetadata.builder().addString("metadata","1").build())
+ .build();
+
+ assertEquals(fed1,fed2);
+ }
}
diff --git a/version.txt b/version.txt
index 88c5fb89..347f5833 100644
--- a/version.txt
+++ b/version.txt
@@ -1 +1 @@
-1.4.0
+1.4.1