v0.9.0
v0.9.0
Features
- #75 - Send a Slack message when a flag has changed.
⚠️ Breaking changes
- #74 - Deprecate the
Webhooks
field in the configuration to have the fieldNotifiers
instead
Migration
If you were using Webhooks
before, you should have a configuration like this:
ffclient.Init(ffclient.Config{
Retriever: &ffclient.FileRetriever{Path: "testdata/flag-config.yaml"},
FileFormat: "yaml",
Webhooks: []ffclient.WebhookConfig{
{
PayloadURL: " https://example.com/hook",
Secret: "Secret",
Meta: map[string]string{
"app.name": "my app",
},
},
},
}
With Notifiers
, your configuration should looks like this now:
ffclient.Init(ffclient.Config{
Retriever: &ffclient.FileRetriever{Path: "testdata/flag-config.yaml"},
FileFormat: "yaml",
Notifiers: []ffclient.NotifierConfig{
&ffclient.WebhookConfig{
PayloadURL: " https://example.com/hook",
Secret: "Secret",
Meta: map[string]string{
"app.name": "my app",
},
},
},
}