Skip to content

Commit 62ac471

Browse files
feat: deprecate dedicated flagd in-process provider (#396)
Signed-off-by: Kavindu Dodanduwa <[email protected]> Signed-off-by: Kavindu Dodanduwa <[email protected]> Co-authored-by: Giovanni Liva <[email protected]>
1 parent f417648 commit 62ac471

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

providers/flagd-in-process/README.md

+5-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,8 @@
1-
# In-process Flagd Provider
1+
# DEPRECATED - In-process Flagd Provider
2+
3+
> [!IMPORTANT]
4+
> This provider is DEPRECATED and will be removed soon.
5+
> [flagd provider](../flagd/README.md) now supports in-process flag evaluation and it will be maintained as a single package.
26
37
This provider implements parts of the functionality of [Flagd](https://github.com/open-feature/flagd), and follows its
48
specification for [in-process providers](https://flagd.dev/reference/specifications/in-process-providers/).

providers/flagd-in-process/pkg/provider.go

+2
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,7 @@ type connectionInfo struct {
5959

6060
type connectionState int
6161

62+
// Deprecated: Please use flagd with WithInProcessResolver option instead of this dedicated provider
6263
type Provider struct {
6364
ctx context.Context
6465
cancelFunc context.CancelFunc
@@ -80,6 +81,7 @@ type ProviderConfiguration struct {
8081

8182
type ProviderOption func(*Provider)
8283

84+
// Deprecated : Please use flagd with WithInProcessResolver option instead of this dedicated provider
8385
func NewProvider(ctx context.Context, opts ...ProviderOption) *Provider {
8486
ctx, cancel := context.WithCancel(ctx)
8587
provider := &Provider{

0 commit comments

Comments
 (0)