From 5b3d04bf46ce048f4c258bd10e7a1219f64437f0 Mon Sep 17 00:00:00 2001 From: Emiliano Sanchez Date: Fri, 24 Nov 2023 17:16:25 -0300 Subject: [PATCH] Add changelog entry --- CHANGES.txt | 3 +++ package.json | 2 +- src/storages/pluggable/SplitsCachePluggable.ts | 4 ++-- 3 files changed, 6 insertions(+), 3 deletions(-) diff --git a/CHANGES.txt b/CHANGES.txt index a893bd27..03adce03 100644 --- a/CHANGES.txt +++ b/CHANGES.txt @@ -1,3 +1,6 @@ +1.12.0 (December XX, 2023) + - Added support for Flag Sets in "consumer" and "partial consumer" modes for pluggable storage. + 1.11.0 (November 3, 2023) - 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): - Added new variations of the get treatment methods to support evaluating flags in given flag set/s. diff --git a/package.json b/package.json index 2fda9f0b..5d2087b4 100644 --- a/package.json +++ b/package.json @@ -22,7 +22,7 @@ "build": "npm run build:cjs && npm run build:esm", "build:esm": "rimraf esm && tsc -m es2015 --outDir esm -d true --declarationDir types", "build:cjs": "rimraf cjs && tsc -m CommonJS --outDir cjs", - "test": "jest", + "test": "jest --runInBand", "test:coverage": "jest --coverage", "all": "npm run check && npm run build && npm run test", "publish:rc": "npm run check && npm run test && npm run build && npm publish --tag rc", diff --git a/src/storages/pluggable/SplitsCachePluggable.ts b/src/storages/pluggable/SplitsCachePluggable.ts index 8f355fb1..da409eb2 100644 --- a/src/storages/pluggable/SplitsCachePluggable.ts +++ b/src/storages/pluggable/SplitsCachePluggable.ts @@ -43,7 +43,7 @@ export class SplitsCachePluggable extends AbstractSplitsCacheAsync { return this.wrapper.incr(ttKey); } - private _updateFlagSets(name: string, flagSetsOfRemovedFlag?: string[], flagSetsOfAddedFlag?: string[]) { + private _updateFlagSets(featureFlagName: string, flagSetsOfRemovedFlag?: string[], flagSetsOfAddedFlag?: string[]) { const removeFromFlagSets = returnListDifference(flagSetsOfRemovedFlag, flagSetsOfAddedFlag); let addToFlagSets = returnListDifference(flagSetsOfAddedFlag, flagSetsOfRemovedFlag); @@ -53,7 +53,7 @@ export class SplitsCachePluggable extends AbstractSplitsCacheAsync { }); } - const items = [name]; + const items = [featureFlagName]; return Promise.all([ ...removeFromFlagSets.map(flagSetName => this.wrapper.removeItems(this.keys.buildFlagSetKey(flagSetName), items)),