getProviderHooks() {
* if they have special initialization needed prior being called for flag
* evaluation.
*
- * It is ok, if the method is expensive as it is executed in the background. All
+ * It is ok if the method is expensive as it is executed in the background. All
* runtime exceptions will be
* caught and logged.
*
@@ -46,7 +46,7 @@ default void initialize(EvaluationContext evaluationContext) throws Exception {
* Providers can overwrite this method, if they have special shutdown actions
* needed.
*
- * It is ok, if the method is expensive as it is executed in the background. All
+ * It is ok if the method is expensive as it is executed in the background. All
* runtime exceptions will be
* caught and logged.
*
@@ -57,7 +57,11 @@ default void shutdown() {
/**
* Returns a representation of the current readiness of the provider.
- * Providers which do not implement this method are assumed to be ready immediately.
+ * If the provider needs to be initialized, it should return {@link ProviderState#NOT_READY}.
+ * If the provider is in an error state, it should return {@link ProviderState#ERROR}.
+ * If the provider is functioning normally, it should return {@link ProviderState#READY}.
+ *
+ * Providers which do not implement this method are assumed to be ready immediately.
*
* @return ProviderState
*/
diff --git a/src/test/java/dev/openfeature/sdk/EventProviderTest.java b/src/test/java/dev/openfeature/sdk/EventProviderTest.java
index cb73b529..3744682b 100644
--- a/src/test/java/dev/openfeature/sdk/EventProviderTest.java
+++ b/src/test/java/dev/openfeature/sdk/EventProviderTest.java
@@ -121,6 +121,11 @@ public ProviderEvaluation getObjectEvaluation(String key, Value defaultVa
// TODO Auto-generated method stub
throw new UnsupportedOperationException("Unimplemented method 'getObjectEvaluation'");
}
+
+ @Override
+ public ProviderState getState() {
+ return ProviderState.READY;
+ }
}
@SuppressWarnings("unchecked")
From 9f03c0ea32513e3559c18f346b4e7b56d9659501 Mon Sep 17 00:00:00 2001
From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com>
Date: Fri, 4 Aug 2023 21:35:32 +0000
Subject: [PATCH 18/24] chore(deps): update github/codeql-action digest to
1f63aba (#544)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
---
.github/workflows/pullrequest.yml | 4 ++--
.github/workflows/static-code-scanning.yaml | 6 +++---
2 files changed, 5 insertions(+), 5 deletions(-)
diff --git a/.github/workflows/pullrequest.yml b/.github/workflows/pullrequest.yml
index d737b3fd..f30513ac 100644
--- a/.github/workflows/pullrequest.yml
+++ b/.github/workflows/pullrequest.yml
@@ -27,7 +27,7 @@ jobs:
cache: maven
- name: Initialize CodeQL
- uses: github/codeql-action/init@2192e3432bb51d34f15316c22b18434771802d1f
+ uses: github/codeql-action/init@1f63aba6538de592cd34d1d957c965c1167673c2
with:
languages: java
@@ -52,4 +52,4 @@ jobs:
verbose: true # optional (default = false)
- name: Perform CodeQL Analysis
- uses: github/codeql-action/analyze@2192e3432bb51d34f15316c22b18434771802d1f
+ uses: github/codeql-action/analyze@1f63aba6538de592cd34d1d957c965c1167673c2
diff --git a/.github/workflows/static-code-scanning.yaml b/.github/workflows/static-code-scanning.yaml
index e45e46b0..ef1938fb 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@2192e3432bb51d34f15316c22b18434771802d1f
+ uses: github/codeql-action/init@1f63aba6538de592cd34d1d957c965c1167673c2
with:
languages: java
- name: Autobuild
- uses: github/codeql-action/autobuild@2192e3432bb51d34f15316c22b18434771802d1f
+ uses: github/codeql-action/autobuild@1f63aba6538de592cd34d1d957c965c1167673c2
- name: Perform CodeQL Analysis
- uses: github/codeql-action/analyze@2192e3432bb51d34f15316c22b18434771802d1f
+ uses: github/codeql-action/analyze@1f63aba6538de592cd34d1d957c965c1167673c2
From 0336c02eeba1df03182ebedca3ac2d19cb4ef77b Mon Sep 17 00:00:00 2001
From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com>
Date: Mon, 7 Aug 2023 23:01:41 +0000
Subject: [PATCH 19/24] chore(deps): update github/codeql-action digest to
878ae4a (#547)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
---
.github/workflows/pullrequest.yml | 4 ++--
.github/workflows/static-code-scanning.yaml | 6 +++---
2 files changed, 5 insertions(+), 5 deletions(-)
diff --git a/.github/workflows/pullrequest.yml b/.github/workflows/pullrequest.yml
index f30513ac..206eeb2f 100644
--- a/.github/workflows/pullrequest.yml
+++ b/.github/workflows/pullrequest.yml
@@ -27,7 +27,7 @@ jobs:
cache: maven
- name: Initialize CodeQL
- uses: github/codeql-action/init@1f63aba6538de592cd34d1d957c965c1167673c2
+ uses: github/codeql-action/init@878ae4a749eff2fd2a5789cd23ef5c39a4903cd1
with:
languages: java
@@ -52,4 +52,4 @@ jobs:
verbose: true # optional (default = false)
- name: Perform CodeQL Analysis
- uses: github/codeql-action/analyze@1f63aba6538de592cd34d1d957c965c1167673c2
+ uses: github/codeql-action/analyze@878ae4a749eff2fd2a5789cd23ef5c39a4903cd1
diff --git a/.github/workflows/static-code-scanning.yaml b/.github/workflows/static-code-scanning.yaml
index ef1938fb..e3c2e11e 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@1f63aba6538de592cd34d1d957c965c1167673c2
+ uses: github/codeql-action/init@878ae4a749eff2fd2a5789cd23ef5c39a4903cd1
with:
languages: java
- name: Autobuild
- uses: github/codeql-action/autobuild@1f63aba6538de592cd34d1d957c965c1167673c2
+ uses: github/codeql-action/autobuild@878ae4a749eff2fd2a5789cd23ef5c39a4903cd1
- name: Perform CodeQL Analysis
- uses: github/codeql-action/analyze@1f63aba6538de592cd34d1d957c965c1167673c2
+ uses: github/codeql-action/analyze@878ae4a749eff2fd2a5789cd23ef5c39a4903cd1
From 5985005ddad9d8cbd24a09c720f5ae9973508897 Mon Sep 17 00:00:00 2001
From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com>
Date: Tue, 8 Aug 2023 18:02:18 +0000
Subject: [PATCH 20/24] chore(deps): update github/codeql-action digest to
4e9f8a2 (#548)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
---
.github/workflows/pullrequest.yml | 4 ++--
.github/workflows/static-code-scanning.yaml | 6 +++---
2 files changed, 5 insertions(+), 5 deletions(-)
diff --git a/.github/workflows/pullrequest.yml b/.github/workflows/pullrequest.yml
index 206eeb2f..e2a7d0c8 100644
--- a/.github/workflows/pullrequest.yml
+++ b/.github/workflows/pullrequest.yml
@@ -27,7 +27,7 @@ jobs:
cache: maven
- name: Initialize CodeQL
- uses: github/codeql-action/init@878ae4a749eff2fd2a5789cd23ef5c39a4903cd1
+ uses: github/codeql-action/init@4e9f8a2be4662464ed5797a31234931fd2e51d94
with:
languages: java
@@ -52,4 +52,4 @@ jobs:
verbose: true # optional (default = false)
- name: Perform CodeQL Analysis
- uses: github/codeql-action/analyze@878ae4a749eff2fd2a5789cd23ef5c39a4903cd1
+ uses: github/codeql-action/analyze@4e9f8a2be4662464ed5797a31234931fd2e51d94
diff --git a/.github/workflows/static-code-scanning.yaml b/.github/workflows/static-code-scanning.yaml
index e3c2e11e..04a1de0e 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@878ae4a749eff2fd2a5789cd23ef5c39a4903cd1
+ uses: github/codeql-action/init@4e9f8a2be4662464ed5797a31234931fd2e51d94
with:
languages: java
- name: Autobuild
- uses: github/codeql-action/autobuild@878ae4a749eff2fd2a5789cd23ef5c39a4903cd1
+ uses: github/codeql-action/autobuild@4e9f8a2be4662464ed5797a31234931fd2e51d94
- name: Perform CodeQL Analysis
- uses: github/codeql-action/analyze@878ae4a749eff2fd2a5789cd23ef5c39a4903cd1
+ uses: github/codeql-action/analyze@4e9f8a2be4662464ed5797a31234931fd2e51d94
From a73083def4cc49a328d122b36323341e1f64d1cc Mon Sep 17 00:00:00 2001
From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com>
Date: Wed, 9 Aug 2023 19:06:33 +0000
Subject: [PATCH 21/24] chore(deps): update actions/cache digest to f7ebb81
(#549)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
---
.github/workflows/merge.yml | 2 +-
.github/workflows/pullrequest.yml | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/.github/workflows/merge.yml b/.github/workflows/merge.yml
index 16131ead..d82baeb3 100644
--- a/.github/workflows/merge.yml
+++ b/.github/workflows/merge.yml
@@ -32,7 +32,7 @@ jobs:
server-password: ${{ secrets.OSSRH_PASSWORD }}
- name: Cache local Maven repository
- uses: actions/cache@67b839edb68371cc5014f6cea11c9aa77238de78
+ uses: actions/cache@f7ebb81a3f195b4fb88dab7c14e2f7aff52045aa
with:
path: ~/.m2/repository
key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }}
diff --git a/.github/workflows/pullrequest.yml b/.github/workflows/pullrequest.yml
index e2a7d0c8..c465e533 100644
--- a/.github/workflows/pullrequest.yml
+++ b/.github/workflows/pullrequest.yml
@@ -32,7 +32,7 @@ jobs:
languages: java
- name: Cache local Maven repository
- uses: actions/cache@67b839edb68371cc5014f6cea11c9aa77238de78
+ uses: actions/cache@f7ebb81a3f195b4fb88dab7c14e2f7aff52045aa
with:
path: ~/.m2/repository
key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }}
From 6ce68de437e40bc0098480fb1f1900c5c3850a1e Mon Sep 17 00:00:00 2001
From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com>
Date: Wed, 9 Aug 2023 22:15:51 +0000
Subject: [PATCH 22/24] chore(deps): update github/codeql-action digest to
9e4932e (#550)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
---
.github/workflows/pullrequest.yml | 4 ++--
.github/workflows/static-code-scanning.yaml | 6 +++---
2 files changed, 5 insertions(+), 5 deletions(-)
diff --git a/.github/workflows/pullrequest.yml b/.github/workflows/pullrequest.yml
index c465e533..51d62680 100644
--- a/.github/workflows/pullrequest.yml
+++ b/.github/workflows/pullrequest.yml
@@ -27,7 +27,7 @@ jobs:
cache: maven
- name: Initialize CodeQL
- uses: github/codeql-action/init@4e9f8a2be4662464ed5797a31234931fd2e51d94
+ uses: github/codeql-action/init@9e4932e2919d7a061a0cb982d1f9d841120ea6df
with:
languages: java
@@ -52,4 +52,4 @@ jobs:
verbose: true # optional (default = false)
- name: Perform CodeQL Analysis
- uses: github/codeql-action/analyze@4e9f8a2be4662464ed5797a31234931fd2e51d94
+ uses: github/codeql-action/analyze@9e4932e2919d7a061a0cb982d1f9d841120ea6df
diff --git a/.github/workflows/static-code-scanning.yaml b/.github/workflows/static-code-scanning.yaml
index 04a1de0e..a6f3761f 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@4e9f8a2be4662464ed5797a31234931fd2e51d94
+ uses: github/codeql-action/init@9e4932e2919d7a061a0cb982d1f9d841120ea6df
with:
languages: java
- name: Autobuild
- uses: github/codeql-action/autobuild@4e9f8a2be4662464ed5797a31234931fd2e51d94
+ uses: github/codeql-action/autobuild@9e4932e2919d7a061a0cb982d1f9d841120ea6df
- name: Perform CodeQL Analysis
- uses: github/codeql-action/analyze@4e9f8a2be4662464ed5797a31234931fd2e51d94
+ uses: github/codeql-action/analyze@9e4932e2919d7a061a0cb982d1f9d841120ea6df
From 4d049965716cef005f96146eaa909e50fc2fe73e Mon Sep 17 00:00:00 2001
From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com>
Date: Thu, 10 Aug 2023 01:28:44 +0000
Subject: [PATCH 23/24] chore(deps): update google/clusterfuzzlite digest to
884713a (#551)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
---
.github/workflows/cflite_batch.yml | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/.github/workflows/cflite_batch.yml b/.github/workflows/cflite_batch.yml
index c4bceed0..790f7497 100644
--- a/.github/workflows/cflite_batch.yml
+++ b/.github/workflows/cflite_batch.yml
@@ -24,13 +24,13 @@ jobs:
steps:
- name: Build Fuzzers (${{ matrix.sanitizer }})
id: build
- uses: google/clusterfuzzlite/actions/build_fuzzers@1e163f06cba7820da5154ac9fe1a32d7fe6f73a3 # v1
+ uses: google/clusterfuzzlite/actions/build_fuzzers@884713a6c30a92e5e8544c39945cd7cb630abcd1 # v1
with:
language: jvm
sanitizer: ${{ matrix.sanitizer }}
- name: Run Fuzzers (${{ matrix.sanitizer }})
id: run
- uses: google/clusterfuzzlite/actions/run_fuzzers@1e163f06cba7820da5154ac9fe1a32d7fe6f73a3 # v1
+ uses: google/clusterfuzzlite/actions/run_fuzzers@884713a6c30a92e5e8544c39945cd7cb630abcd1 # v1
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
fuzz-seconds: 3600
From 644afb09c1ac107037b0c26d3f453f094913ada0 Mon Sep 17 00:00:00 2001
From: "github-actions[bot]"
<41898282+github-actions[bot]@users.noreply.github.com>
Date: Thu, 10 Aug 2023 11:38:53 -0700
Subject: [PATCH 24/24] chore(main): release 1.4.2 (#527)
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
---
.release-please-manifest.json | 2 +-
CHANGELOG.md | 33 +++++++++++++++++++++++++++++++++
README.md | 4 ++--
pom.xml | 2 +-
version.txt | 2 +-
5 files changed, 38 insertions(+), 5 deletions(-)
diff --git a/.release-please-manifest.json b/.release-please-manifest.json
index c9735194..9b090798 100644
--- a/.release-please-manifest.json
+++ b/.release-please-manifest.json
@@ -1 +1 @@
-{".":"1.4.1"}
\ No newline at end of file
+{".":"1.4.2"}
\ No newline at end of file
diff --git a/CHANGELOG.md b/CHANGELOG.md
index 64cba4e5..c5d0238b 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -1,5 +1,38 @@
# Changelog
+## [1.4.2](https://github.com/open-feature/java-sdk/compare/v1.4.1...v1.4.2) (2023-08-10)
+
+
+### ๐ Bug Fixes
+
+* getState now mandatory on EventProvider ([#531](https://github.com/open-feature/java-sdk/issues/531)) ([37fd2be](https://github.com/open-feature/java-sdk/commit/37fd2be673e1316ae05e5f36b49613cb61209fbc))
+
+
+### ๐งน Chore
+
+* add todos, fix submodule pull ([#543](https://github.com/open-feature/java-sdk/issues/543)) ([4972291](https://github.com/open-feature/java-sdk/commit/497229127668bd433ae0bd9e9bed3e75a4ef0d7d))
+* **deps:** update actions/cache digest to f7ebb81 ([#549](https://github.com/open-feature/java-sdk/issues/549)) ([a73083d](https://github.com/open-feature/java-sdk/commit/a73083def4cc49a328d122b36323341e1f64d1cc))
+* **deps:** update actions/setup-java digest to b943a4e ([#536](https://github.com/open-feature/java-sdk/issues/536)) ([90c931a](https://github.com/open-feature/java-sdk/commit/90c931acd9aab1f2b7c0cd85d851d82219852cb7))
+* **deps:** update actions/setup-java digest to c16064d ([#533](https://github.com/open-feature/java-sdk/issues/533)) ([fc034c3](https://github.com/open-feature/java-sdk/commit/fc034c328483735e7dbd973d2897af6f2ce8ef4a))
+* **deps:** update codecov/codecov-action digest to e1dd05c ([#540](https://github.com/open-feature/java-sdk/issues/540)) ([7d4981f](https://github.com/open-feature/java-sdk/commit/7d4981f429bc0107082fb84eec068c575d2645f6))
+* **deps:** update dependency com.google.guava:guava to v32.1.2-jre ([#538](https://github.com/open-feature/java-sdk/issues/538)) ([0676f4d](https://github.com/open-feature/java-sdk/commit/0676f4d24bcbde4ebcd0b284db00853778b1c892))
+* **deps:** update github/codeql-action digest to 055b396 ([#530](https://github.com/open-feature/java-sdk/issues/530)) ([5c4bc86](https://github.com/open-feature/java-sdk/commit/5c4bc86139f04a124b2d279def2348023188feac))
+* **deps:** update github/codeql-action digest to 1a48007 ([#529](https://github.com/open-feature/java-sdk/issues/529)) ([b8194ec](https://github.com/open-feature/java-sdk/commit/b8194ec13e09cfe71f01cb23de7e6a7f5b8ca262))
+* **deps:** update github/codeql-action digest to 1f63aba ([#544](https://github.com/open-feature/java-sdk/issues/544)) ([9f03c0e](https://github.com/open-feature/java-sdk/commit/9f03c0ea32513e3559c18f346b4e7b56d9659501))
+* **deps:** update github/codeql-action digest to 2192e34 ([#542](https://github.com/open-feature/java-sdk/issues/542)) ([c545ed5](https://github.com/open-feature/java-sdk/commit/c545ed568071348ab1826383059d2d6c925c846f))
+* **deps:** update github/codeql-action digest to 4e9f8a2 ([#548](https://github.com/open-feature/java-sdk/issues/548)) ([5985005](https://github.com/open-feature/java-sdk/commit/5985005ddad9d8cbd24a09c720f5ae9973508897))
+* **deps:** update github/codeql-action digest to 57a11be ([#526](https://github.com/open-feature/java-sdk/issues/526)) ([6590d84](https://github.com/open-feature/java-sdk/commit/6590d84f6e14ba82d137ad56d730fc3243ff0e4b))
+* **deps:** update github/codeql-action digest to 6276217 ([#532](https://github.com/open-feature/java-sdk/issues/532)) ([6ccefbb](https://github.com/open-feature/java-sdk/commit/6ccefbb8bc622b257e4701006ccfcc67f81bcea3))
+* **deps:** update github/codeql-action digest to 7b79062 ([#541](https://github.com/open-feature/java-sdk/issues/541)) ([0ecf7b5](https://github.com/open-feature/java-sdk/commit/0ecf7b598462b5bc068a228ce678a758f9461fe3))
+* **deps:** update github/codeql-action digest to 81ae676 ([#534](https://github.com/open-feature/java-sdk/issues/534)) ([323083d](https://github.com/open-feature/java-sdk/commit/323083d7e9789761ce18ac8c500346a8f632d235))
+* **deps:** update github/codeql-action digest to 878ae4a ([#547](https://github.com/open-feature/java-sdk/issues/547)) ([0336c02](https://github.com/open-feature/java-sdk/commit/0336c02eeba1df03182ebedca3ac2d19cb4ef77b))
+* **deps:** update github/codeql-action digest to 9e4932e ([#550](https://github.com/open-feature/java-sdk/issues/550)) ([6ce68de](https://github.com/open-feature/java-sdk/commit/6ce68de437e40bc0098480fb1f1900c5c3850a1e))
+* **deps:** update github/codeql-action digest to a6b0ced ([#537](https://github.com/open-feature/java-sdk/issues/537)) ([f012604](https://github.com/open-feature/java-sdk/commit/f0126043f20541af40d73b8a9b755a774358d4e8))
+* **deps:** update github/codeql-action digest to c57b27e ([#528](https://github.com/open-feature/java-sdk/issues/528)) ([3a8e262](https://github.com/open-feature/java-sdk/commit/3a8e262da4ecc08a377e69634b01d821abdd4fdc))
+* **deps:** update github/codeql-action digest to e7e35ba ([#539](https://github.com/open-feature/java-sdk/issues/539)) ([18b4fc0](https://github.com/open-feature/java-sdk/commit/18b4fc095851efb5351c1283f52a3d8f4407c5d2))
+* **deps:** update google/clusterfuzzlite digest to 884713a ([#551](https://github.com/open-feature/java-sdk/issues/551)) ([4d04996](https://github.com/open-feature/java-sdk/commit/4d049965716cef005f96146eaa909e50fc2fe73e))
+* fix race with events tests ([#545](https://github.com/open-feature/java-sdk/issues/545)) ([8789f90](https://github.com/open-feature/java-sdk/commit/8789f90d337bddd9c330a7291565d0f2dfc2761c))
+
## [1.4.1](https://github.com/open-feature/java-sdk/compare/v1.4.0...v1.4.1) (2023-07-24)
diff --git a/README.md b/README.md
index bc6dcd8c..3a48562a 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.1
+ 1.4.2
```
@@ -67,7 +67,7 @@ If you would like snapshot builds, this is the relevant repository information:
```groovy
dependencies {
- implementation 'dev.openfeature:sdk:1.4.1'
+ implementation 'dev.openfeature:sdk:1.4.2'
}
```
diff --git a/pom.xml b/pom.xml
index c8a8b0be..79d142df 100644
--- a/pom.xml
+++ b/pom.xml
@@ -4,7 +4,7 @@
dev.openfeature
sdk
- 1.4.1
+ 1.4.2
UTF-8
diff --git a/version.txt b/version.txt
index 347f5833..9df886c4 100644
--- a/version.txt
+++ b/version.txt
@@ -1 +1 @@
-1.4.1
+1.4.2