Skip to content

Releases: thomaspoignant/go-feature-flag

v0.27.1

19 Jul 07:57
885ea49
Compare
Choose a tag to compare

v0.27.1

What's Changed

Full Changelog: v0.27.0...v0.27.1

v0.27.0

18 Jul 17:00
6e9af48
Compare
Choose a tag to compare

v0.27.0

What's Changed

Full Changelog: v0.26.1...v0.27.0

v0.26.1

07 Jul 12:34
96db56d
Compare
Choose a tag to compare

v0.26.1

What's Changed

Full Changelog: v0.26.0...v0.26.1

v0.26.0

07 Jul 08:50
e3fb234
Compare
Choose a tag to compare

v0.26.0

📝 Release note

Full Changelog: v0.25.2...v0.26.0

⚠️ Breaking changes ⚠️

This version change the way to do your SDK initialization in particular when it comes to notifier, provider and exporter.

Why are we doing this breaking changes?

This change is needed because we are adding more and more retriever / exporter and notifier, and with that we are also adding more dependencies to the project.
And since all the dependencies are in the same package we were increasing the size of your build even if you were not using the new providers.

The best example is when we introduce the kubernetes provider, it has added ~20Mo in your application because the client-go from kubernetes is huge.

What did we change?

We have moved all retriever / exporter and notifier in a dedicated package for each of them.
With this new organisation when building your app we will use only the dependencies related to your configuration.

We also change the way to deal with the notifiers to align it with the way it work for other extensions.

How to migrate?

Edit your init function of go-feature-flag and replace your retriever, exporter, notifier following this.

Retrievers

ffclient.FileRetriever          ->      fileretriever.Retriever
ffclient.GithubRetriever        ->      gcstorageretriever.Retriever
ffclient.GithubRetriever        ->      githubretriever.Retriever
ffclient.HTTPRetriever          ->      httpretriever.Retriever
ffclient.KubernetesRetriever    ->      k8sretriever.Retriever
fflcient.S3Retriever            ->      s3retriever.Retriever

Exporters

ffexporter.File                 ->      fileexporter.Exporter
ffexporter.GoogleCloudStorage   ->      gcstorageexporter.Exporter
ffexporter.Log                  ->      logsexporter.Exporter
ffexporter.S3                   ->      s3exporter.Exporter
ffexporter.Webhook              ->      webhookexporter.Exporter

Notifiers

Since in this PR we change the way to work with notifier, you have more impact when configuring them.

Before this PR to configure a notifier you had something like that.

_, err := ffclient.New(ffclient.Config{
    // ...
    Notifiers: []ffclient.NotifierConfig{
        &ffclient.WebhookConfig{
            // ...
        },
    },
})

With this PR we had remove the ffclient.NotifierConfig struct to use directly the notifier them self.
It means that now ffclient.Config.Notifiers has the type []notifier.Notifier.
So it will look like:

_, err := ffclient.New(ffclient.Config{
    // ...
    Notifiers: []notifier.Notifier{
        &webhooknotifier.Notifier{
            // ...
        },
    },
})

To follow the same pattern has the retrievers and exporters we also have changed the struct you were using.

notifier.LogNotifier        ->      logsnotifier.Notifier
ffclient.SlackNotifier      ->      slacknotifier.Notifier
ffclient.WebhookConfig      ->      webhooknotifier.Notifier

v0.25.2

05 Jul 10:04
a318d31
Compare
Choose a tag to compare

v0.25.2

⚠️ This version can force you to load a new version of antlr.
Please consider removing your dependency on antlr and replacing it with a new version.

What's Changed

  • chore: bump golang, antlr and rule parser version by @ZhiHanZ in #265

New Contributors

Full Changelog: v0.25.1...v0.25.2

v0.25.1

01 Jul 10:26
8add26f
Compare
Choose a tag to compare

v0.25.1

What's Changed

Full Changelog: v0.25.0...v0.25.1

v0.25.0

21 Jun 08:19
3b08ee5
Compare
Choose a tag to compare

v0.25.0

What's Changed

New Contributors

Full Changelog: v0.24.0...v0.25.0

v0.24.0

20 Jun 17:00
45913df
Compare
Choose a tag to compare

v0.24.0

What's Changed

New Contributors

Full Changelog: v0.23.1...v0.24.0

v0.23.1

15 Jun 14:45
1a486bf
Compare
Choose a tag to compare
URL documentation change

v0.23.0

09 Jun 16:37
d30dd8e
Compare
Choose a tag to compare

v0.23.0

Feature(s)

Dependencies

  • Bump github.com/aws/aws-sdk-go from 1.44.5 to 1.44.25 by @dependabot in #249
  • Bump cloud.google.com/go/storage from 1.22.0 to 1.22.1 by @dependabot in #248
  • Bump google.golang.org/api from 0.77.0 to 0.81.0 by @dependabot in #250

New Contributors

Full Changelog: v0.22.3...v0.23.0