@flags-sdk/openfeature@0.1.3
·
7 commits
to main
since this release
Patch Changes
-
#474
2dfc85cThanks @dferber90! - Retry initialization after a failed attemptPreviously a rejected
init()was cached forever, so a single transient failure (e.g. a connect error during a cold start) made every later flag evaluation replay that same error for the rest of the process' lifetime, without ever dialing the provider again.The rejected attempt is now discarded so the next evaluation retries, while concurrent callers still share a single in-flight attempt. Failures reported by the provider as
PROVIDER_FATAL— irrecoverable ones such as invalid credentials or configuration — remain cached, since retrying them cannot succeed.