@vercel/flags-core 1.10.0 → 1.10.1
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.
- package/CHANGELOG.md +6 -0
- package/dist/{chunk-BJMQYCGB.js → chunk-CAVQRHGX.js} +14 -6
- package/dist/chunk-CAVQRHGX.js.map +1 -0
- package/dist/{chunk-SMFY4V2C.cjs → chunk-EW4YJU7V.cjs} +14 -6
- package/dist/chunk-EW4YJU7V.cjs.map +1 -0
- package/dist/{chunk-4LMZGN7K.cjs → chunk-R3QYUMRA.cjs} +14 -6
- package/dist/chunk-R3QYUMRA.cjs.map +1 -0
- package/dist/{chunk-5F64DMZJ.js → chunk-ZY7CHPJG.js} +14 -6
- package/dist/chunk-ZY7CHPJG.js.map +1 -0
- package/dist/index.default.cjs +2 -2
- package/dist/index.default.d.cts +1 -0
- package/dist/index.default.d.ts +1 -0
- package/dist/index.default.js +1 -1
- package/dist/index.next-js.cjs +2 -2
- package/dist/index.next-js.d.cts +1 -0
- package/dist/index.next-js.d.ts +1 -0
- package/dist/index.next-js.js +1 -1
- package/dist/openfeature.default.cjs +2 -2
- package/dist/openfeature.default.js +1 -1
- package/dist/openfeature.next-js.cjs +2 -2
- package/dist/openfeature.next-js.js +1 -1
- package/package.json +1 -1
- package/dist/chunk-4LMZGN7K.cjs.map +0 -1
- package/dist/chunk-5F64DMZJ.js.map +0 -1
- package/dist/chunk-BJMQYCGB.js.map +0 -1
- package/dist/chunk-SMFY4V2C.cjs.map +0 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,11 @@
|
|
|
1
1
|
# @vercel/flags-core
|
|
2
2
|
|
|
3
|
+
## 1.10.1
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [#552](https://github.com/vercel/flags/pull/552) [`f02cc66`](https://github.com/vercel/flags/commit/f02cc661a8364aa54994d8ce324bf74dd628d6af) Thanks [@luismeyer](https://github.com/luismeyer)! - Report the flags config `revision` on `FLAG_EVALUATION` usage events, so evaluations can be broken down by the config revision that was served. Evaluations of different revisions are no longer merged into the same aggregated event.
|
|
8
|
+
|
|
3
9
|
## 1.10.0
|
|
4
10
|
|
|
5
11
|
### Minor Changes
|
|
@@ -576,7 +576,7 @@ function bulkEvaluate(flags, shared) {
|
|
|
576
576
|
}
|
|
577
577
|
|
|
578
578
|
// package.json
|
|
579
|
-
var version = "1.10.
|
|
579
|
+
var version = "1.10.1";
|
|
580
580
|
|
|
581
581
|
// src/lib/report-value.ts
|
|
582
582
|
function internalReportValue(key, value, data) {
|
|
@@ -667,7 +667,8 @@ async function evaluate2(id, flagKey, defaultValue, entities) {
|
|
|
667
667
|
trackEvaluation(controller, {
|
|
668
668
|
flagKey,
|
|
669
669
|
variant: null,
|
|
670
|
-
reason: result2.reason
|
|
670
|
+
reason: result2.reason,
|
|
671
|
+
revision: datafile.revision
|
|
671
672
|
});
|
|
672
673
|
return result2;
|
|
673
674
|
}
|
|
@@ -691,7 +692,8 @@ async function evaluate2(id, flagKey, defaultValue, entities) {
|
|
|
691
692
|
trackEvaluation(controller, {
|
|
692
693
|
flagKey,
|
|
693
694
|
variant: result.variantId,
|
|
694
|
-
reason: result.reason
|
|
695
|
+
reason: result.reason,
|
|
696
|
+
revision: datafile.revision
|
|
695
697
|
});
|
|
696
698
|
return Object.assign(result, {
|
|
697
699
|
metrics: {
|
|
@@ -759,7 +761,8 @@ async function bulkEvaluate2(id, flags, entities) {
|
|
|
759
761
|
trackEvaluation(controller, {
|
|
760
762
|
flagKey: key,
|
|
761
763
|
variant: null,
|
|
762
|
-
reason: "error" /* ERROR
|
|
764
|
+
reason: "error" /* ERROR */,
|
|
765
|
+
revision: datafile.revision
|
|
763
766
|
});
|
|
764
767
|
continue;
|
|
765
768
|
}
|
|
@@ -785,7 +788,8 @@ async function bulkEvaluate2(id, flags, entities) {
|
|
|
785
788
|
trackEvaluation(controller, {
|
|
786
789
|
flagKey: key,
|
|
787
790
|
variant: result.variantId,
|
|
788
|
-
reason: result.reason
|
|
791
|
+
reason: result.reason,
|
|
792
|
+
revision: datafile.revision
|
|
789
793
|
});
|
|
790
794
|
results[key] = Object.assign(result, {
|
|
791
795
|
metrics: { evaluationMs: evaluationDurationMs, ...baseMetrics }
|
|
@@ -1472,6 +1476,7 @@ function evaluationBatchKey(options) {
|
|
|
1472
1476
|
options.variant,
|
|
1473
1477
|
options.reason,
|
|
1474
1478
|
options.clientName ?? null,
|
|
1479
|
+
options.revision ?? null,
|
|
1475
1480
|
options.bucketTs
|
|
1476
1481
|
]);
|
|
1477
1482
|
}
|
|
@@ -1489,6 +1494,9 @@ var FlagsEvaluationEvent = class {
|
|
|
1489
1494
|
if (eventOptions.clientName) {
|
|
1490
1495
|
this.payload.clientName = eventOptions.clientName;
|
|
1491
1496
|
}
|
|
1497
|
+
if (eventOptions.revision !== void 0) {
|
|
1498
|
+
this.payload.revision = String(eventOptions.revision);
|
|
1499
|
+
}
|
|
1492
1500
|
}
|
|
1493
1501
|
increment() {
|
|
1494
1502
|
this.payload.evaluationCount += 1;
|
|
@@ -3737,4 +3745,4 @@ export {
|
|
|
3737
3745
|
resetDefaultFlagsClient,
|
|
3738
3746
|
createClient
|
|
3739
3747
|
};
|
|
3740
|
-
//# sourceMappingURL=chunk-
|
|
3748
|
+
//# sourceMappingURL=chunk-CAVQRHGX.js.map
|