Releases: thomaspoignant/go-feature-flag
v0.27.1
v0.27.1
What's Changed
- Send the good reason if flag is disabled by @thomaspoignant in #270
Full Changelog: v0.27.0...v0.27.1
v0.27.0
v0.27.0
What's Changed
- Add reason and errorCode from open-feature by @thomaspoignant in #269
Full Changelog: v0.26.1...v0.27.0
v0.26.1
v0.26.1
What's Changed
- SlackWebhookURL should be a
string
for compatibility reasons by @thomaspoignant in #267
Full Changelog: v0.26.0...v0.26.1
v0.26.0
v0.26.0
📝 Release note
- Move retriever / notifier / exporter on their own packages. by @thomaspoignant in #264
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
v0.25.2
antlr
.
Please consider removing your dependency on antlr
and replacing it with a new version.
What's Changed
New Contributors
Full Changelog: v0.25.1...v0.25.2
v0.25.1
v0.25.1
What's Changed
- Bump github.com/stretchr/testify from 1.7.1 to 1.8.0 by @dependabot in #263
- Bump k8s.io/apimachinery from 0.24.1 to 0.24.2 by @dependabot in #262
- Bump github.com/aws/aws-sdk-go from 1.44.25 to 1.44.46 by @dependabot in #261
- Bump cloud.google.com/go/storage from 1.22.1 to 1.23.0 by @dependabot in #260
- Bump google.golang.org/api from 0.81.0 to 0.86.0 by @dependabot in #258
- Bump k8s.io/api from 0.24.1 to 0.24.2 by @dependabot in #259
- Bump k8s.io/client-go from 0.24.1 to 0.24.2 by @dependabot in #257
Full Changelog: v0.25.0...v0.25.1
v0.25.0
v0.25.0
What's Changed
- Add environment parameter in config by @mtwstudios in #246
- Adding section in the documentation to explain environments by @thomaspoignant in #255
New Contributors
- @mtwstudios made their first contribution in #246
Full Changelog: v0.24.0...v0.25.0
v0.24.0
v0.24.0
What's Changed
- Add new GetFlagsFromCache public method by @marcosnils in #253
- Add gofumpt by @thomaspoignant in #254
New Contributors
- @marcosnils made their first contribution in #253
Full Changelog: v0.23.1...v0.24.0
v0.23.1
URL documentation change
v0.23.0
v0.23.0
Feature(s)
- Kubernetes configmaps by @mschoenlaub in #247
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
- @mschoenlaub made their first contribution in #247
Full Changelog: v0.22.3...v0.23.0