github thomaspoignant/go-feature-flag v0.9.0

latest releases: v1.46.1, v1.46.0, v1.45.6...
4 years ago

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

Don't miss a new go-feature-flag release

NewReleases is sending notifications on new releases.