Skip to content

Commit 5434cef

Browse files
committed
Release v2.2.0
Update version to 2.2.0 and add changelog entries for: - CMAB (Contextual Multi-Armed Bandit) support - Multi-region data hosting support - Enhanced decision notifications - Public API additions and changes
1 parent 068c49e commit 5434cef

File tree

2 files changed

+27
-1
lines changed

2 files changed

+27
-1
lines changed

CHANGELOG.MD

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,32 @@ All notable changes to this project will be documented in this file.
44
The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/)
55
and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html).
66

7+
## [2.2.0] - January 25, 2025
8+
9+
### New Features
10+
- **CMAB (Contextual Multi-Armed Bandit) Support**: Added comprehensive support for CMAB experiments, enabling dynamic optimization based on user context and real-time learning
11+
- **Multi-Region Data Hosting Support**: Added SDK support for multi-region data hosting to improve performance and comply with data residency requirements
12+
13+
### Public API Changes
14+
15+
#### CMAB-Related Changes
16+
- **New CMAB Package** (`pkg/cmab`):
17+
- `Service` interface for CMAB decision services
18+
- `Client` interface for CMAB API clients
19+
- `Decision` struct for CMAB decision results
20+
- `Config` struct for CMAB configuration options
21+
- `NewDefaultConfig()` function for default CMAB configuration
22+
- **Client Factory**: `WithCmabConfig(*cmab.Config) OptionFunc` - New option for setting CMAB configuration
23+
- **Event Metadata**: `CmabUUID` field added to DecisionMetadata for CMAB tracking
24+
25+
#### Multi-Region and Notification Changes
26+
- **Project Config Interface**: `GetRegion() string` method for multi-region support
27+
- **Event Structures**: `Region` field added to event structures
28+
- **Multi-Region Support**: `SupportedRegions` map exported in event package with region-based endpoint selection
29+
- **Enhanced Decision Notifications**: Decision notification listener payload now includes:
30+
- `experimentId` field for experiment identification
31+
- `variationId` field for variation identification
32+
733
## [2.1.0] - November 8, 2024
834

935
### Enhancements

pkg/event/version.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
package event
1919

2020
// Version is the current version of the client
21-
var Version = "2.1.0"
21+
var Version = "2.2.0"
2222

2323
// ClientName is the name of the client
2424
var ClientName = "go-sdk"

0 commit comments

Comments
 (0)