Skip to content

Releases: thomaspoignant/go-feature-flag

v0.13.1

23 Apr 13:15
d4dd18e
Compare
Choose a tag to compare

v0.13.1

Changes

  • #113 - Move experimentation property under the rollout key.

v0.13.0

21 Apr 09:08
4b90ba7
Compare
Choose a tag to compare

v0.13.0

Breaking Changes

⚠️ feature #105 is a breaking change, the repartition will work as expected BUT you may have some changes for specific users. A user who was affected by a flag is not guaranteed to still be affected.

This breaking change is needed to unblock future features like #101.

We accept this breaking change only because we are still in version v0.X, as soon as we hit the v1.X this kind of change will not be possible.

Features

  • #106 - Add webhook data exporter
  • #109 - Add experimentation capability with the possibility to configure a startDate and an endDate for the flag.
  • #105 - Accept a more fine-grained percentage, the hash is now compute with a 100000 range when it was 100 before.

Changes

  • #108 - PayloadURL is deprecated and you should use EndpointURL instead.

v0.12.0

19 Apr 13:38
3a7a8ca
Compare
Choose a tag to compare

v0.12.0

Features

  • #98 - S3 Data Exporter - You can now export your data directly into a S3 bucket
  • #103 - Add trackEvents field + refactor slack notifier to use reflect

Changes

  • #97 - Refactor fflog to always add the date
  • #100 - Add what is go-feature-flag section

v0.11.0

14 Apr 08:49
691af89
Compare
Choose a tag to compare

v0.11.0

Features

  • #95 - Add an option to start even when retriever is unreachable
  • #94 - Add a log data exporter to replace automatic variation logging
    ⚠️ Breaking changes
    If you were using these logs, you need to add the log data exporter to your configuration.
err := Init(Config{
	// ...
	DataExporter: DataExporter{
		Exporter: &ffexporter.Log{},
	},
})

Fixes

  • #92 - Wait longer to avoid flaky test

Changes

  • #93 - CI: Upgrade CI to go 1.16 + Scope coveralls

v0.10.0

12 Apr 17:49
1d7c3aa
Compare
Choose a tag to compare

v0.10.0

This new version includes a way to export your data to a file 💥 📈 📊 💹
Ok maybe you don't care to collect data on the fly and to put them locally, but this version includes a simple way to add more exporters in the future.

This version will allow developing #89 #88 #87 ...


Features

  • #82 - Introducing the concept of feature events to export data

Changes

  • #84 - Better summary in the readme

v0.9.1

01 Apr 13:52
c493ecc
Compare
Choose a tag to compare

v0.9.1

Fixes

  • #78 - Fix a race condition that can be rarely detected while running tests

Changes

  • #80 - Use testify everywhere

v0.9.0

01 Apr 08:01
b38f9dd
Compare
Choose a tag to compare

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

v0.8.1

29 Mar 08:11
574f9a6
Compare
Choose a tag to compare

v0.8.1

Fixes

  • #72 - Handle error even if the logger is nil
  • #73 - Don't panic when defer a cache that has failed to init

v0.8.0

24 Mar 14:46
29190e4
Compare
Choose a tag to compare

v0.8.0

Features

  • #60 - Support multiple formats for your flag configuration file. You can define your flags in JSON and TOML now, and you can still use YAML if it's what you prefer.

v0.7.0

03 Feb 14:18
2fb5a34
Compare
Choose a tag to compare

v0.7.0

Features

  • #65 - Call webhooks when a flag has changed

Changes

  • #64 - Create a notification system when flags changes
  • #63 - Bump github.com/stretchr/testify from 1.6.1 to 1.7.0
  • #62 - Bump github.com/aws/aws-sdk-go from 1.36.19 to 1.37.1