-
Notifications
You must be signed in to change notification settings - Fork 33
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: maintain state in SDK, add RECONCILING (#795)
Implements the newest spec changes [here](open-feature/spec#241). - Provider state is deprecated (state is now maintained in the SDK itself). This is non-breaking, we just ignore the provider's own state now - add RECONCILING events and state, fire related events with provider's `on context change` - add FATAL state The new tests should help you understand the impact of the changes. --------- Signed-off-by: Todd Baert <[email protected]>
- Loading branch information
Showing
40 changed files
with
731 additions
and
372 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,11 @@ | ||
import { ClientMetadata, EvaluationLifeCycle, Eventing, ManageLogger, ProviderStatus } from '@openfeature/core'; | ||
import { ClientMetadata, EvaluationLifeCycle, Eventing, ManageLogger } from '@openfeature/core'; | ||
import { Features } from '../evaluation'; | ||
import { ProviderStatus } from '../provider'; | ||
|
||
export interface Client extends EvaluationLifeCycle<Client>, Features, ManageLogger<Client>, Eventing { | ||
readonly metadata: ClientMetadata; | ||
/** | ||
* Returns the status of the associated provider. | ||
*/ | ||
readonly providerStatus: ProviderStatus; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.