@growthbook/proxy-eval 1.0.3 → 1.0.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/package.json +2 -2
  2. package/src/index.ts +4 -0
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@growthbook/proxy-eval",
3
3
  "description": "Remote evaluation service for proxies, edge workers, or backend APIs",
4
- "version": "1.0.3",
4
+ "version": "1.0.4",
5
5
  "main": "dist/index.js",
6
6
  "license": "MIT",
7
7
  "repository": {
@@ -18,7 +18,7 @@
18
18
  "dev": "tsc --watch"
19
19
  },
20
20
  "dependencies": {
21
- "@growthbook/growthbook": "^1.0.1"
21
+ "@growthbook/growthbook": "^1.1.0"
22
22
  },
23
23
  "devDependencies": {
24
24
  "rimraf": "^5.0.5",
package/src/index.ts CHANGED
@@ -29,6 +29,7 @@ export async function evaluateFeatures({
29
29
 
30
30
  const features = payload?.features;
31
31
  const experiments = payload?.experiments;
32
+ const savedGroups = payload?.savedGroups;
32
33
  const context: GBContext = { attributes };
33
34
  if (features) {
34
35
  context.features = features;
@@ -36,6 +37,9 @@ export async function evaluateFeatures({
36
37
  if (experiments) {
37
38
  context.experiments = experiments;
38
39
  }
40
+ if (savedGroups) {
41
+ context.savedGroups = savedGroups;
42
+ }
39
43
  if (forcedVariations) {
40
44
  context.forcedVariations = forcedVariations;
41
45
  }