@openfeature/flagd-provider 0.7.7 → 0.8.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +12 -0
- package/index.cjs +5532 -3979
- package/index.js +5529 -3956
- package/package.json +2 -3
- package/src/lib/flagd-provider.d.ts +15 -8
- package/src/lib/service/grpc/service.d.ts +5 -4
- package/src/lib/service/service.d.ts +2 -1
- package/src/proto/ts/google/protobuf/struct.d.ts +169 -152
- package/src/proto/ts/schema/v1/schema.d.ts +882 -423
- package/src/proto/ts/sync/v1/sync_service.d.ts +156 -133
- package/src/proto/ts/schema/v1/schema.client.d.ts +0 -96
- package/src/proto/ts/sync/v1/sync_service.client.d.ts +0 -46
package/README.md
CHANGED
|
@@ -50,6 +50,18 @@ Options can be defined in the constructor or as environment variables, with cons
|
|
|
50
50
|
}))
|
|
51
51
|
```
|
|
52
52
|
|
|
53
|
+
### Supported events
|
|
54
|
+
|
|
55
|
+
The flagd provider emits `PROVIDER_READY`, `PROVIDER_ERROR` and `PROVIDER_CONFIGURATION_CHANGED` events.
|
|
56
|
+
|
|
57
|
+
| SDK event | Originating action in flagd |
|
|
58
|
+
| -------------------------------- | ------------------------------------------------------------------------------- |
|
|
59
|
+
| `PROVIDER_READY` | The streaming connection with flagd has been established. |
|
|
60
|
+
| `PROVIDER_ERROR` | The streaming connection with flagd has been broken. |
|
|
61
|
+
| `PROVIDER_CONFIGURATION_CHANGED` | A flag configuration (default value, targeting rule, etc) in flagd has changed. |
|
|
62
|
+
|
|
63
|
+
For general information on events, see the [official documentation](https://openfeature.dev/docs/reference/concepts/events).
|
|
64
|
+
|
|
53
65
|
## Building
|
|
54
66
|
|
|
55
67
|
Run `nx package providers-flagd` to build the library.
|