@uniformdev/context 20.7.1-alpha.50 → 20.7.1-alpha.53
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/dist/index.d.mts +2 -1
- package/dist/index.d.ts +2 -1
- package/dist/index.esm.js +4 -2
- package/dist/index.js +5 -2
- package/dist/index.mjs +4 -2
- package/package.json +2 -2
package/dist/index.d.mts
CHANGED
@@ -72,6 +72,7 @@ declare class CookieTransitionDataStore extends TransitionDataStore {
|
|
72
72
|
declare const TYPE_SEP = "~";
|
73
73
|
declare const PAIR_SEP = "!";
|
74
74
|
declare const KV_SEP = "-";
|
75
|
+
declare const QUIRK_KV_SEP = "=";
|
75
76
|
declare const QUIRK_SEP = "!!";
|
76
77
|
declare function parseScoreCookie(cookieValue: string | undefined, quirkCookieValue?: string): Partial<VisitorData> | undefined;
|
77
78
|
declare function parseQuirkCookie(quirkCookieValue: string): Quirks;
|
@@ -242,4 +243,4 @@ type QuickConnectConfig = {
|
|
242
243
|
declare function serializeQuickConnect(config: QuickConnectConfig): string;
|
243
244
|
declare function parseQuickConnect(serialized: string): Required<QuickConnectConfig>;
|
244
245
|
|
245
|
-
export { AggregateDimension, type ConsoleDebugLogDrainOptions, Context, type ContextDevToolOptions, ContextPlugin, CookieTransitionDataStore, type CookieTransitionDataStoreOptions, CriteriaEvaluator, DecayFunction, DevToolsEvents, ENR_SEPARATOR, EdgeNodeTagName, type EdgePersonalizeComponentOptions, type EdgeTestComponentOptions, EdgeTransitionDataStore, type EdgeTransitionDataStoreOptions, type EnableUniformInsightsOptions, KV_SEP, type LinearDecayOptions, LogDrain, LogMessage, OutputSeverity, PAIR_SEP, PersonalizationSelectionAlgorithmOptions, PersonalizeOptions, PersonalizedResult, PersonalizedVariant, QUIRK_SEP, type QuickConnectConfig, Quirks, STRONGEST_SCORE_PERSONALIZATION_ALGORITHM, ScoreVector, ScriptType, StorageCommands, StringMatch, TOP_DOWN_CRITERIA_PERSONALIZATION_ALGORITHM, TYPE_SEP, TransitionDataStore, TransitionDataStoreOptions, UNIFORM_DEFAULT_COOKIE_NAME, UNIFORM_DEFAULT_QUIRK_COOKIE_NAME, VariantMatchCriteria, VariationMatchDimensionCriteria, VisitorData, computeAggregateDimensions, cookieEvaluator, createConsoleLogDrain, createDebugConsoleLogDrain, createLinearDecay, currentPageEvaluator, decodeCookieType, decodePersonalizeVariants, enableConsoleLogDrain, enableContextDevTools, enableDebugConsoleLogDrain, enableUniformInsights, encodeCookieType, evaluateVariantMatch, eventEvaluator, explainStringMatch, explainStringMatchCriteria, getEnrichmentVectorKey, isStringMatch, pageViewCountDimension, pageViewCountEvaluator, parseCookieScores, parseCookieType, parseQuickConnect, parseQuirkCookie, parseScoreCookie, personalizeVariations, queryStringEvaluator, quirkEvaluator, serializeCookie, serializeCookieType, serializePersonalizeVariants, serializeQuickConnect, serializeQuirks, strongestScorePersonalizationSelectionAlgorithm, topDownCriteriaPersonalizationSelectionAlgorithm };
|
246
|
+
export { AggregateDimension, type ConsoleDebugLogDrainOptions, Context, type ContextDevToolOptions, ContextPlugin, CookieTransitionDataStore, type CookieTransitionDataStoreOptions, CriteriaEvaluator, DecayFunction, DevToolsEvents, ENR_SEPARATOR, EdgeNodeTagName, type EdgePersonalizeComponentOptions, type EdgeTestComponentOptions, EdgeTransitionDataStore, type EdgeTransitionDataStoreOptions, type EnableUniformInsightsOptions, KV_SEP, type LinearDecayOptions, LogDrain, LogMessage, OutputSeverity, PAIR_SEP, PersonalizationSelectionAlgorithmOptions, PersonalizeOptions, PersonalizedResult, PersonalizedVariant, QUIRK_KV_SEP, QUIRK_SEP, type QuickConnectConfig, Quirks, STRONGEST_SCORE_PERSONALIZATION_ALGORITHM, ScoreVector, ScriptType, StorageCommands, StringMatch, TOP_DOWN_CRITERIA_PERSONALIZATION_ALGORITHM, TYPE_SEP, TransitionDataStore, TransitionDataStoreOptions, UNIFORM_DEFAULT_COOKIE_NAME, UNIFORM_DEFAULT_QUIRK_COOKIE_NAME, VariantMatchCriteria, VariationMatchDimensionCriteria, VisitorData, computeAggregateDimensions, cookieEvaluator, createConsoleLogDrain, createDebugConsoleLogDrain, createLinearDecay, currentPageEvaluator, decodeCookieType, decodePersonalizeVariants, enableConsoleLogDrain, enableContextDevTools, enableDebugConsoleLogDrain, enableUniformInsights, encodeCookieType, evaluateVariantMatch, eventEvaluator, explainStringMatch, explainStringMatchCriteria, getEnrichmentVectorKey, isStringMatch, pageViewCountDimension, pageViewCountEvaluator, parseCookieScores, parseCookieType, parseQuickConnect, parseQuirkCookie, parseScoreCookie, personalizeVariations, queryStringEvaluator, quirkEvaluator, serializeCookie, serializeCookieType, serializePersonalizeVariants, serializeQuickConnect, serializeQuirks, strongestScorePersonalizationSelectionAlgorithm, topDownCriteriaPersonalizationSelectionAlgorithm };
|
package/dist/index.d.ts
CHANGED
@@ -72,6 +72,7 @@ declare class CookieTransitionDataStore extends TransitionDataStore {
|
|
72
72
|
declare const TYPE_SEP = "~";
|
73
73
|
declare const PAIR_SEP = "!";
|
74
74
|
declare const KV_SEP = "-";
|
75
|
+
declare const QUIRK_KV_SEP = "=";
|
75
76
|
declare const QUIRK_SEP = "!!";
|
76
77
|
declare function parseScoreCookie(cookieValue: string | undefined, quirkCookieValue?: string): Partial<VisitorData> | undefined;
|
77
78
|
declare function parseQuirkCookie(quirkCookieValue: string): Quirks;
|
@@ -242,4 +243,4 @@ type QuickConnectConfig = {
|
|
242
243
|
declare function serializeQuickConnect(config: QuickConnectConfig): string;
|
243
244
|
declare function parseQuickConnect(serialized: string): Required<QuickConnectConfig>;
|
244
245
|
|
245
|
-
export { AggregateDimension, type ConsoleDebugLogDrainOptions, Context, type ContextDevToolOptions, ContextPlugin, CookieTransitionDataStore, type CookieTransitionDataStoreOptions, CriteriaEvaluator, DecayFunction, DevToolsEvents, ENR_SEPARATOR, EdgeNodeTagName, type EdgePersonalizeComponentOptions, type EdgeTestComponentOptions, EdgeTransitionDataStore, type EdgeTransitionDataStoreOptions, type EnableUniformInsightsOptions, KV_SEP, type LinearDecayOptions, LogDrain, LogMessage, OutputSeverity, PAIR_SEP, PersonalizationSelectionAlgorithmOptions, PersonalizeOptions, PersonalizedResult, PersonalizedVariant, QUIRK_SEP, type QuickConnectConfig, Quirks, STRONGEST_SCORE_PERSONALIZATION_ALGORITHM, ScoreVector, ScriptType, StorageCommands, StringMatch, TOP_DOWN_CRITERIA_PERSONALIZATION_ALGORITHM, TYPE_SEP, TransitionDataStore, TransitionDataStoreOptions, UNIFORM_DEFAULT_COOKIE_NAME, UNIFORM_DEFAULT_QUIRK_COOKIE_NAME, VariantMatchCriteria, VariationMatchDimensionCriteria, VisitorData, computeAggregateDimensions, cookieEvaluator, createConsoleLogDrain, createDebugConsoleLogDrain, createLinearDecay, currentPageEvaluator, decodeCookieType, decodePersonalizeVariants, enableConsoleLogDrain, enableContextDevTools, enableDebugConsoleLogDrain, enableUniformInsights, encodeCookieType, evaluateVariantMatch, eventEvaluator, explainStringMatch, explainStringMatchCriteria, getEnrichmentVectorKey, isStringMatch, pageViewCountDimension, pageViewCountEvaluator, parseCookieScores, parseCookieType, parseQuickConnect, parseQuirkCookie, parseScoreCookie, personalizeVariations, queryStringEvaluator, quirkEvaluator, serializeCookie, serializeCookieType, serializePersonalizeVariants, serializeQuickConnect, serializeQuirks, strongestScorePersonalizationSelectionAlgorithm, topDownCriteriaPersonalizationSelectionAlgorithm };
|
246
|
+
export { AggregateDimension, type ConsoleDebugLogDrainOptions, Context, type ContextDevToolOptions, ContextPlugin, CookieTransitionDataStore, type CookieTransitionDataStoreOptions, CriteriaEvaluator, DecayFunction, DevToolsEvents, ENR_SEPARATOR, EdgeNodeTagName, type EdgePersonalizeComponentOptions, type EdgeTestComponentOptions, EdgeTransitionDataStore, type EdgeTransitionDataStoreOptions, type EnableUniformInsightsOptions, KV_SEP, type LinearDecayOptions, LogDrain, LogMessage, OutputSeverity, PAIR_SEP, PersonalizationSelectionAlgorithmOptions, PersonalizeOptions, PersonalizedResult, PersonalizedVariant, QUIRK_KV_SEP, QUIRK_SEP, type QuickConnectConfig, Quirks, STRONGEST_SCORE_PERSONALIZATION_ALGORITHM, ScoreVector, ScriptType, StorageCommands, StringMatch, TOP_DOWN_CRITERIA_PERSONALIZATION_ALGORITHM, TYPE_SEP, TransitionDataStore, TransitionDataStoreOptions, UNIFORM_DEFAULT_COOKIE_NAME, UNIFORM_DEFAULT_QUIRK_COOKIE_NAME, VariantMatchCriteria, VariationMatchDimensionCriteria, VisitorData, computeAggregateDimensions, cookieEvaluator, createConsoleLogDrain, createDebugConsoleLogDrain, createLinearDecay, currentPageEvaluator, decodeCookieType, decodePersonalizeVariants, enableConsoleLogDrain, enableContextDevTools, enableDebugConsoleLogDrain, enableUniformInsights, encodeCookieType, evaluateVariantMatch, eventEvaluator, explainStringMatch, explainStringMatchCriteria, getEnrichmentVectorKey, isStringMatch, pageViewCountDimension, pageViewCountEvaluator, parseCookieScores, parseCookieType, parseQuickConnect, parseQuirkCookie, parseScoreCookie, personalizeVariations, queryStringEvaluator, quirkEvaluator, serializeCookie, serializeCookieType, serializePersonalizeVariants, serializeQuickConnect, serializeQuirks, strongestScorePersonalizationSelectionAlgorithm, topDownCriteriaPersonalizationSelectionAlgorithm };
|
package/dist/index.esm.js
CHANGED
@@ -1122,6 +1122,7 @@ _quirksEnabled = new WeakMap();
|
|
1122
1122
|
var TYPE_SEP = "~";
|
1123
1123
|
var PAIR_SEP = "!";
|
1124
1124
|
var KV_SEP = "-";
|
1125
|
+
var QUIRK_KV_SEP = "=";
|
1125
1126
|
var QUIRK_SEP = "!!";
|
1126
1127
|
function parseScoreCookie(cookieValue, quirkCookieValue) {
|
1127
1128
|
if (!cookieValue) return;
|
@@ -1145,7 +1146,7 @@ function parseScoreCookie(cookieValue, quirkCookieValue) {
|
|
1145
1146
|
function parseQuirkCookie(quirkCookieValue) {
|
1146
1147
|
const pairs = quirkCookieValue.split(QUIRK_SEP);
|
1147
1148
|
const splitPairs = pairs.map((pair) => {
|
1148
|
-
const sep = pair.indexOf(
|
1149
|
+
const sep = pair.indexOf(QUIRK_KV_SEP);
|
1149
1150
|
if (sep === -1) {
|
1150
1151
|
return void 0;
|
1151
1152
|
}
|
@@ -1246,7 +1247,7 @@ function serializeCookieType(type) {
|
|
1246
1247
|
return Object.entries(type).map((kv) => kv.join(KV_SEP)).join(PAIR_SEP);
|
1247
1248
|
}
|
1248
1249
|
function serializeQuirks(quirks) {
|
1249
|
-
return Object.entries(quirks).map((kv) => kv.join(
|
1250
|
+
return Object.entries(quirks).map((kv) => kv.join(QUIRK_KV_SEP)).join(QUIRK_SEP);
|
1250
1251
|
}
|
1251
1252
|
|
1252
1253
|
// src/storage/EdgeTransitionDataStore.ts
|
@@ -2795,6 +2796,7 @@ export {
|
|
2795
2796
|
KV_SEP,
|
2796
2797
|
ManifestInstance,
|
2797
2798
|
PAIR_SEP,
|
2799
|
+
QUIRK_KV_SEP,
|
2798
2800
|
QUIRK_SEP,
|
2799
2801
|
SERVER_STATE_ID,
|
2800
2802
|
STRONGEST_SCORE_PERSONALIZATION_ALGORITHM,
|
package/dist/index.js
CHANGED
@@ -51,6 +51,7 @@ __export(src_exports, {
|
|
51
51
|
KV_SEP: () => KV_SEP,
|
52
52
|
ManifestInstance: () => ManifestInstance,
|
53
53
|
PAIR_SEP: () => PAIR_SEP,
|
54
|
+
QUIRK_KV_SEP: () => QUIRK_KV_SEP,
|
54
55
|
QUIRK_SEP: () => QUIRK_SEP,
|
55
56
|
SERVER_STATE_ID: () => SERVER_STATE_ID,
|
56
57
|
STRONGEST_SCORE_PERSONALIZATION_ALGORITHM: () => STRONGEST_SCORE_PERSONALIZATION_ALGORITHM,
|
@@ -1215,6 +1216,7 @@ _quirksEnabled = new WeakMap();
|
|
1215
1216
|
var TYPE_SEP = "~";
|
1216
1217
|
var PAIR_SEP = "!";
|
1217
1218
|
var KV_SEP = "-";
|
1219
|
+
var QUIRK_KV_SEP = "=";
|
1218
1220
|
var QUIRK_SEP = "!!";
|
1219
1221
|
function parseScoreCookie(cookieValue, quirkCookieValue) {
|
1220
1222
|
if (!cookieValue) return;
|
@@ -1238,7 +1240,7 @@ function parseScoreCookie(cookieValue, quirkCookieValue) {
|
|
1238
1240
|
function parseQuirkCookie(quirkCookieValue) {
|
1239
1241
|
const pairs = quirkCookieValue.split(QUIRK_SEP);
|
1240
1242
|
const splitPairs = pairs.map((pair) => {
|
1241
|
-
const sep = pair.indexOf(
|
1243
|
+
const sep = pair.indexOf(QUIRK_KV_SEP);
|
1242
1244
|
if (sep === -1) {
|
1243
1245
|
return void 0;
|
1244
1246
|
}
|
@@ -1339,7 +1341,7 @@ function serializeCookieType(type) {
|
|
1339
1341
|
return Object.entries(type).map((kv) => kv.join(KV_SEP)).join(PAIR_SEP);
|
1340
1342
|
}
|
1341
1343
|
function serializeQuirks(quirks) {
|
1342
|
-
return Object.entries(quirks).map((kv) => kv.join(
|
1344
|
+
return Object.entries(quirks).map((kv) => kv.join(QUIRK_KV_SEP)).join(QUIRK_SEP);
|
1343
1345
|
}
|
1344
1346
|
|
1345
1347
|
// src/storage/EdgeTransitionDataStore.ts
|
@@ -2889,6 +2891,7 @@ function parseQuickConnect(serialized) {
|
|
2889
2891
|
KV_SEP,
|
2890
2892
|
ManifestInstance,
|
2891
2893
|
PAIR_SEP,
|
2894
|
+
QUIRK_KV_SEP,
|
2892
2895
|
QUIRK_SEP,
|
2893
2896
|
SERVER_STATE_ID,
|
2894
2897
|
STRONGEST_SCORE_PERSONALIZATION_ALGORITHM,
|
package/dist/index.mjs
CHANGED
@@ -1122,6 +1122,7 @@ _quirksEnabled = new WeakMap();
|
|
1122
1122
|
var TYPE_SEP = "~";
|
1123
1123
|
var PAIR_SEP = "!";
|
1124
1124
|
var KV_SEP = "-";
|
1125
|
+
var QUIRK_KV_SEP = "=";
|
1125
1126
|
var QUIRK_SEP = "!!";
|
1126
1127
|
function parseScoreCookie(cookieValue, quirkCookieValue) {
|
1127
1128
|
if (!cookieValue) return;
|
@@ -1145,7 +1146,7 @@ function parseScoreCookie(cookieValue, quirkCookieValue) {
|
|
1145
1146
|
function parseQuirkCookie(quirkCookieValue) {
|
1146
1147
|
const pairs = quirkCookieValue.split(QUIRK_SEP);
|
1147
1148
|
const splitPairs = pairs.map((pair) => {
|
1148
|
-
const sep = pair.indexOf(
|
1149
|
+
const sep = pair.indexOf(QUIRK_KV_SEP);
|
1149
1150
|
if (sep === -1) {
|
1150
1151
|
return void 0;
|
1151
1152
|
}
|
@@ -1246,7 +1247,7 @@ function serializeCookieType(type) {
|
|
1246
1247
|
return Object.entries(type).map((kv) => kv.join(KV_SEP)).join(PAIR_SEP);
|
1247
1248
|
}
|
1248
1249
|
function serializeQuirks(quirks) {
|
1249
|
-
return Object.entries(quirks).map((kv) => kv.join(
|
1250
|
+
return Object.entries(quirks).map((kv) => kv.join(QUIRK_KV_SEP)).join(QUIRK_SEP);
|
1250
1251
|
}
|
1251
1252
|
|
1252
1253
|
// src/storage/EdgeTransitionDataStore.ts
|
@@ -2795,6 +2796,7 @@ export {
|
|
2795
2796
|
KV_SEP,
|
2796
2797
|
ManifestInstance,
|
2797
2798
|
PAIR_SEP,
|
2799
|
+
QUIRK_KV_SEP,
|
2798
2800
|
QUIRK_SEP,
|
2799
2801
|
SERVER_STATE_ID,
|
2800
2802
|
STRONGEST_SCORE_PERSONALIZATION_ALGORITHM,
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@uniformdev/context",
|
3
|
-
"version": "20.7.1-alpha.
|
3
|
+
"version": "20.7.1-alpha.53+56970f024c",
|
4
4
|
"description": "Uniform Context core package",
|
5
5
|
"license": "SEE LICENSE IN LICENSE.txt",
|
6
6
|
"main": "./dist/index.js",
|
@@ -68,5 +68,5 @@
|
|
68
68
|
"publishConfig": {
|
69
69
|
"access": "public"
|
70
70
|
},
|
71
|
-
"gitHead": "
|
71
|
+
"gitHead": "56970f024c486ba8a07d4210527eff988841b286"
|
72
72
|
}
|