You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: CHANGES.txt
+3Lines changed: 3 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -1,3 +1,6 @@
1
+
1.11.1 (December XX, 2023)
2
+
- Bugfixing - Fixed manager methods in consumer modes to return results in a promise when the SDK is not operational (not ready or destroyed).
3
+
1
4
1.11.0 (November 3, 2023)
2
5
- Added support for Flag Sets on the SDK, which enables grouping feature flags and interacting with the group rather than individually (more details in our documentation):
3
6
- Added new variations of the get treatment methods to support evaluating flags in given flag set/s.
expect(awaitmanager.splits()).toEqual([]);// If the factory/client is destroyed, `manager.splits()` will return empty array either way since the storage is not valid.
67
67
expect(awaitmanager.names()).toEqual([]);// If the factory/client is destroyed, `manager.names()` will return empty array either way since the storage is not valid.
68
68
69
-
70
-
71
69
/** Teardown */
72
70
awaitcache.removeSplit(splitObject.name);
73
71
awaitconnection.quit();
74
72
});
75
73
76
-
test('Async cache with error',async()=>{
74
+
test('handles storage errors',async()=>{
77
75
// passing an empty object as wrapper, to make method calls of splits cache fail returning a rejected promise.
@@ -57,4 +57,24 @@ describe('MANAGER API / Sync cache (In Memory)', () => {
57
57
expect(manager.names()).toEqual([]);// If the factory/client is destroyed, `manager.names()` will return empty array either way since the storage is not valid.
58
58
});
59
59
60
+
test('returns empty results when not operational',async()=>{
0 commit comments