@vercel/flags-core 1.7.1 → 1.8.0
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/README.md +12 -0
- package/dist/{chunk-Z7PTTGMK.cjs → chunk-C3FUDFOP.cjs} +7 -4
- package/dist/chunk-C3FUDFOP.cjs.map +1 -0
- package/dist/{chunk-Y7HU5ZNT.cjs → chunk-ID4ZKPA3.cjs} +6 -3
- package/dist/chunk-ID4ZKPA3.cjs.map +1 -0
- package/dist/{chunk-PLRBLION.js → chunk-ZROGU3V7.js} +7 -4
- package/dist/chunk-ZROGU3V7.js.map +1 -0
- package/dist/{chunk-RH2MIZYW.js → chunk-ZV3PRKK2.js} +6 -3
- package/dist/chunk-ZV3PRKK2.js.map +1 -0
- package/dist/index.default.cjs +2 -2
- package/dist/index.default.d.cts +9 -3
- package/dist/index.default.d.ts +9 -3
- package/dist/index.default.js +1 -1
- package/dist/index.next-js.cjs +2 -2
- package/dist/index.next-js.d.cts +8 -2
- package/dist/index.next-js.d.ts +8 -2
- package/dist/index.next-js.js +1 -1
- package/dist/openfeature.default.cjs +2 -2
- package/dist/openfeature.default.d.cts +1 -1
- package/dist/openfeature.default.d.ts +1 -1
- package/dist/openfeature.default.js +1 -1
- package/dist/openfeature.next-js.cjs +2 -2
- package/dist/openfeature.next-js.d.cts +1 -1
- package/dist/openfeature.next-js.d.ts +1 -1
- package/dist/openfeature.next-js.js +1 -1
- package/dist/{types-DxdTzPS2.d.cts → types-C2-sIv2D.d.cts} +2 -1
- package/dist/{types-DxdTzPS2.d.ts → types-C2-sIv2D.d.ts} +2 -1
- package/package.json +1 -1
- package/dist/chunk-PLRBLION.js.map +0 -1
- package/dist/chunk-RH2MIZYW.js.map +0 -1
- package/dist/chunk-Y7HU5ZNT.cjs.map +0 -1
- package/dist/chunk-Z7PTTGMK.cjs.map +0 -1
package/dist/index.next-js.d.cts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { V as VariantId, R as ResolutionReason, D as DatafileInput, S as StreamOptions, P as PollingOptions, C as ControllerInterface, a as Datafile, B as BundledDefinitions, E as EvaluationParams, b as EvaluationResult, F as FlagsClient } from './types-
|
|
2
|
-
export { c as Packed, d as Value } from './types-
|
|
1
|
+
import { V as VariantId, R as ResolutionReason, D as DatafileInput, S as StreamOptions, P as PollingOptions, M as MetricEnvironment, C as ControllerInterface, a as Datafile, B as BundledDefinitions, E as EvaluationParams, b as EvaluationResult, F as FlagsClient } from './types-C2-sIv2D.cjs';
|
|
2
|
+
export { c as Packed, d as Value } from './types-C2-sIv2D.cjs';
|
|
3
3
|
|
|
4
4
|
interface TrackEvaluationOptions {
|
|
5
5
|
flagKey: string;
|
|
@@ -62,6 +62,12 @@ type ControllerOptions = {
|
|
|
62
62
|
* @default globalThis.fetch
|
|
63
63
|
*/
|
|
64
64
|
fetch?: typeof globalThis.fetch;
|
|
65
|
+
/**
|
|
66
|
+
* Environment included with evaluation metrics sent to the ingest endpoint.
|
|
67
|
+
* Falls back to the `VERCEL_ENV` environment variable when not set.
|
|
68
|
+
* This does not select the environment used for flag evaluation.
|
|
69
|
+
*/
|
|
70
|
+
metricEnvironment?: MetricEnvironment;
|
|
65
71
|
/**
|
|
66
72
|
* Custom client name included in evaluation telemetry.
|
|
67
73
|
*/
|
package/dist/index.next-js.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { V as VariantId, R as ResolutionReason, D as DatafileInput, S as StreamOptions, P as PollingOptions, C as ControllerInterface, a as Datafile, B as BundledDefinitions, E as EvaluationParams, b as EvaluationResult, F as FlagsClient } from './types-
|
|
2
|
-
export { c as Packed, d as Value } from './types-
|
|
1
|
+
import { V as VariantId, R as ResolutionReason, D as DatafileInput, S as StreamOptions, P as PollingOptions, M as MetricEnvironment, C as ControllerInterface, a as Datafile, B as BundledDefinitions, E as EvaluationParams, b as EvaluationResult, F as FlagsClient } from './types-C2-sIv2D.js';
|
|
2
|
+
export { c as Packed, d as Value } from './types-C2-sIv2D.js';
|
|
3
3
|
|
|
4
4
|
interface TrackEvaluationOptions {
|
|
5
5
|
flagKey: string;
|
|
@@ -62,6 +62,12 @@ type ControllerOptions = {
|
|
|
62
62
|
* @default globalThis.fetch
|
|
63
63
|
*/
|
|
64
64
|
fetch?: typeof globalThis.fetch;
|
|
65
|
+
/**
|
|
66
|
+
* Environment included with evaluation metrics sent to the ingest endpoint.
|
|
67
|
+
* Falls back to the `VERCEL_ENV` environment variable when not set.
|
|
68
|
+
* This does not select the environment used for flag evaluation.
|
|
69
|
+
*/
|
|
70
|
+
metricEnvironment?: MetricEnvironment;
|
|
65
71
|
/**
|
|
66
72
|
* Custom client name included in evaluation telemetry.
|
|
67
73
|
*/
|
package/dist/index.next-js.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); var _class;
|
|
2
2
|
|
|
3
3
|
|
|
4
|
-
var
|
|
4
|
+
var _chunkC3FUDFOPcjs = require('./chunk-C3FUDFOP.cjs');
|
|
5
5
|
|
|
6
6
|
// src/openfeature.make.ts
|
|
7
7
|
|
|
@@ -150,7 +150,7 @@ function make(createClient2, defaultFlagsClient) {
|
|
|
150
150
|
}
|
|
151
151
|
|
|
152
152
|
// src/openfeature.default.ts
|
|
153
|
-
var VercelProvider = make(
|
|
153
|
+
var VercelProvider = make(_chunkC3FUDFOPcjs.createClient, _chunkC3FUDFOPcjs.flagsClient);
|
|
154
154
|
|
|
155
155
|
|
|
156
156
|
exports.VercelProvider = VercelProvider;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); var _class;
|
|
2
2
|
|
|
3
3
|
|
|
4
|
-
var
|
|
4
|
+
var _chunkID4ZKPA3cjs = require('./chunk-ID4ZKPA3.cjs');
|
|
5
5
|
|
|
6
6
|
// src/openfeature.make.ts
|
|
7
7
|
|
|
@@ -150,7 +150,7 @@ function make(createClient2, defaultFlagsClient) {
|
|
|
150
150
|
}
|
|
151
151
|
|
|
152
152
|
// src/openfeature.next-js.ts
|
|
153
|
-
var VercelProvider = make(
|
|
153
|
+
var VercelProvider = make(_chunkID4ZKPA3cjs.createClient, _chunkID4ZKPA3cjs.flagsClient);
|
|
154
154
|
|
|
155
155
|
|
|
156
156
|
exports.VercelProvider = VercelProvider;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
type MetricEnvironment = 'development' | 'preview' | 'production';
|
|
1
2
|
/**
|
|
2
3
|
* Options for stream connection behavior
|
|
3
4
|
*/
|
|
@@ -594,4 +595,4 @@ declare namespace Packed {
|
|
|
594
595
|
};
|
|
595
596
|
}
|
|
596
597
|
|
|
597
|
-
export { type BundledDefinitions as B, type ControllerInterface as C, type DatafileInput as D, type EvaluationParams as E, type FlagsClient as F, type PollingOptions as P, ResolutionReason as R, type StreamOptions as S, type VariantId as V, type Datafile as a, type EvaluationResult as b, Packed as c, type Value as d };
|
|
598
|
+
export { type BundledDefinitions as B, type ControllerInterface as C, type DatafileInput as D, type EvaluationParams as E, type FlagsClient as F, type MetricEnvironment as M, type PollingOptions as P, ResolutionReason as R, type StreamOptions as S, type VariantId as V, type Datafile as a, type EvaluationResult as b, Packed as c, type Value as d };
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
type MetricEnvironment = 'development' | 'preview' | 'production';
|
|
1
2
|
/**
|
|
2
3
|
* Options for stream connection behavior
|
|
3
4
|
*/
|
|
@@ -594,4 +595,4 @@ declare namespace Packed {
|
|
|
594
595
|
};
|
|
595
596
|
}
|
|
596
597
|
|
|
597
|
-
export { type BundledDefinitions as B, type ControllerInterface as C, type DatafileInput as D, type EvaluationParams as E, type FlagsClient as F, type PollingOptions as P, ResolutionReason as R, type StreamOptions as S, type VariantId as V, type Datafile as a, type EvaluationResult as b, Packed as c, type Value as d };
|
|
598
|
+
export { type BundledDefinitions as B, type ControllerInterface as C, type DatafileInput as D, type EvaluationParams as E, type FlagsClient as F, type MetricEnvironment as M, type PollingOptions as P, ResolutionReason as R, type StreamOptions as S, type VariantId as V, type Datafile as a, type EvaluationResult as b, Packed as c, type Value as d };
|