Skip to content

v0.9.0

Compare
Choose a tag to compare
@thomaspoignant thomaspoignant released this 01 Apr 08:01
· 2617 commits to main since this release
b38f9dd

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 field Notifiers 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",
            },
        },
    },
}

Changes

  • #76 - Bump github.com/google/go-cmp from 0.5.4 to 0.5.5
  • #77 - Bump github.com/aws/aws-sdk-go from 1.37.20 to 1.38.10