Skip to content

Commit 1bdf1d7

Browse files
novalisdenahiz4kn4feinadams85
authoredFeb 13, 2024··
Config v6 (#26)
* SDK Key validation updated to handle proxy and new key format * Comparators rework * Update models to v6 and regenerate .g.dart files * Update models to v6 and regenerate .g.dart files * v6 model changes updates on implementation. Parser and type checks in client added. * v6 model changes updates and comparator implementations. * Segment and prerequisite conditions added * EvaluationLogger added * Rework ConfigCatUser to use Object value in the map * Always read cache * Test fixes for v6 * Add new rollout matrix test and some fixes. * Evaluation Logger test added and small fixes * Evaluation Logger turn off test added * Format * Add ConfigV2 test and small fixes * Added configcat_user doc * Removed parametrizedTest dependency. Analyze fixes. Update Changelog.md Change version to 4.0.0 * Fix TODO * Fix intl version * Fix format * Fix dio version * Fix dio version * Fix dio version * Fix dio version. again * Fixes test case to handle null default value. * User toString and attribute override fix. * Update 1103 error message * Fix circularDependency missing remove * Fix NaN handeling and add extra user_attribute_convert_test. * Percentage Options error fixed when sum is not 100% * Fix user toSting. Add list to userAttribute convert. * Set _evaluateConditions default result to true. Fix getKeyAndValue to handle target rule percentage options as well. * Set _evaluateConditions default result to true. Fix getKeyAndValue to handle target rule percentage options as well. * Fix user and comparator value trims and refactor user conditions evaluate methods. * Refactor matrix csv files. Add specialCharacter test. Add trim tests. Add typeValidation tests. * Update javadocs * Update changelog with cache change. * Format code. * Remove http_mock_adapter * Remove request interceptor * Update helpers.dart * Fix EvaluateLogger null check. * Add extra v6 evaluation tests. * Format code * Remove unnecessary test case * Fix some error messages * Fixes in configcat_client.dart based on code review. * Fixes based on code review * Model changes and json overrides variation id fixes. * Format * Fix utils import * format fix * Suggestion for enum handling in config model (UserComparator) * Get rid of ! usage * Fix platform-dependent line terminator issue in evaluation logs * Update segment and prerequisite comparators. * Update variation id to handle null value as well. * Fix doc and type validation error message. * Normalize line endings in evaluation log tests * Move config salt check from deserialization. * format * Allow Object and nullable default value types as well + fix a few minor issues * Merge log_helper into evaluate_logger. * Fixes based on code review. * Format * Fix NumberFormat based on code review. * Update release date --------- Co-authored-by: Peter Csajtai <[email protected]> Co-authored-by: Adam Simon <[email protected]>
1 parent eab49ff commit 1bdf1d7

File tree

147 files changed

+8165
-1236
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

147 files changed

+8165
-1236
lines changed
 

‎CHANGELOG.md

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

7+
## 4.0.0 - 2024-02-13
8+
### New features and improvements
9+
- Add support for the new Config JSON v6 format: update the config model and implement new features in setting evaluation logic.
10+
- Overhaul setting evaluation-related logging and make it consistent across SDKs.
11+
- SDK key format validation (when client is not set up to use local-only flag overrides).
12+
- Go to the cache in all polling modes instead of using the in memory variable.
13+
14+
### Breaking changes
15+
- Change the `ConfigCatUser` constructor `custom` parameter type to Map<String, Object> to allow other values than string.
16+
- Rename the `matchedEvaluationRule` property to `matchedTargetingRule` and the `matchedEvaluationPercentageRule` property to `matchedPercentageOption` in `EvaluationDetails`.
17+
- Change `Config` model
18+
719
## 3.0.0 - 2023-08-18
820
### Changed
921
- Standardized config cache key generation algorithm and cache payload format to allow shared caches to be used by SDKs of different platforms.

‎DEPLOY.md

+1
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
## Preparation
44

55
1. Run tests
6+
2. Increase the version in the `pubspec.yaml` file.
67
3. Increase the version in the `lib/src/constant.dart` file.
78
4. Add the description of the new version in `CHANGELOG.md`.
89
5. Commit & Push

0 commit comments

Comments
 (0)
Please sign in to comment.