@uniformdev/context 20.7.1-alpha.121 → 20.7.1-alpha.123
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 +1 -2
- package/dist/index.d.ts +1 -2
- package/dist/index.esm.js +2 -4
- package/dist/index.js +2 -5
- package/dist/index.mjs +2 -4
- package/package.json +2 -2
package/dist/index.d.mts
CHANGED
|
@@ -72,7 +72,6 @@ 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 = "=";
|
|
76
75
|
declare const QUIRK_SEP = "!!";
|
|
77
76
|
declare function parseScoreCookie(cookieValue: string | undefined, quirkCookieValue?: string): Partial<VisitorData> | undefined;
|
|
78
77
|
declare function parseQuirkCookie(quirkCookieValue: string): Quirks;
|
|
@@ -247,4 +246,4 @@ type QuickConnectConfig = {
|
|
|
247
246
|
declare function serializeQuickConnect(config: QuickConnectConfig): string;
|
|
248
247
|
declare function parseQuickConnect(serialized: string): Required<QuickConnectConfig>;
|
|
249
248
|
|
|
250
|
-
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,
|
|
249
|
+
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 };
|
package/dist/index.d.ts
CHANGED
|
@@ -72,7 +72,6 @@ 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 = "=";
|
|
76
75
|
declare const QUIRK_SEP = "!!";
|
|
77
76
|
declare function parseScoreCookie(cookieValue: string | undefined, quirkCookieValue?: string): Partial<VisitorData> | undefined;
|
|
78
77
|
declare function parseQuirkCookie(quirkCookieValue: string): Quirks;
|
|
@@ -247,4 +246,4 @@ type QuickConnectConfig = {
|
|
|
247
246
|
declare function serializeQuickConnect(config: QuickConnectConfig): string;
|
|
248
247
|
declare function parseQuickConnect(serialized: string): Required<QuickConnectConfig>;
|
|
249
248
|
|
|
250
|
-
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,
|
|
249
|
+
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 };
|
package/dist/index.esm.js
CHANGED
|
@@ -1129,7 +1129,6 @@ _quirksEnabled = new WeakMap();
|
|
|
1129
1129
|
var TYPE_SEP = "~";
|
|
1130
1130
|
var PAIR_SEP = "!";
|
|
1131
1131
|
var KV_SEP = "-";
|
|
1132
|
-
var QUIRK_KV_SEP = "=";
|
|
1133
1132
|
var QUIRK_SEP = "!!";
|
|
1134
1133
|
function parseScoreCookie(cookieValue, quirkCookieValue) {
|
|
1135
1134
|
if (!cookieValue) return;
|
|
@@ -1153,7 +1152,7 @@ function parseScoreCookie(cookieValue, quirkCookieValue) {
|
|
|
1153
1152
|
function parseQuirkCookie(quirkCookieValue) {
|
|
1154
1153
|
const pairs = quirkCookieValue.split(QUIRK_SEP);
|
|
1155
1154
|
const splitPairs = pairs.map((pair) => {
|
|
1156
|
-
const sep = pair.indexOf(
|
|
1155
|
+
const sep = pair.indexOf(KV_SEP);
|
|
1157
1156
|
if (sep === -1) {
|
|
1158
1157
|
return void 0;
|
|
1159
1158
|
}
|
|
@@ -1254,7 +1253,7 @@ function serializeCookieType(type) {
|
|
|
1254
1253
|
return Object.entries(type).map((kv) => kv.join(KV_SEP)).join(PAIR_SEP);
|
|
1255
1254
|
}
|
|
1256
1255
|
function serializeQuirks(quirks) {
|
|
1257
|
-
return Object.entries(quirks).map((kv) => kv.join(
|
|
1256
|
+
return Object.entries(quirks).map((kv) => kv.join(KV_SEP)).join(QUIRK_SEP);
|
|
1258
1257
|
}
|
|
1259
1258
|
|
|
1260
1259
|
// src/storage/EdgeTransitionDataStore.ts
|
|
@@ -2853,7 +2852,6 @@ export {
|
|
|
2853
2852
|
KV_SEP,
|
|
2854
2853
|
ManifestInstance,
|
|
2855
2854
|
PAIR_SEP,
|
|
2856
|
-
QUIRK_KV_SEP,
|
|
2857
2855
|
QUIRK_SEP,
|
|
2858
2856
|
SERVER_STATE_ID,
|
|
2859
2857
|
STRONGEST_SCORE_PERSONALIZATION_ALGORITHM,
|
package/dist/index.js
CHANGED
|
@@ -51,7 +51,6 @@ __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,
|
|
55
54
|
QUIRK_SEP: () => QUIRK_SEP,
|
|
56
55
|
SERVER_STATE_ID: () => SERVER_STATE_ID,
|
|
57
56
|
STRONGEST_SCORE_PERSONALIZATION_ALGORITHM: () => STRONGEST_SCORE_PERSONALIZATION_ALGORITHM,
|
|
@@ -1223,7 +1222,6 @@ _quirksEnabled = new WeakMap();
|
|
|
1223
1222
|
var TYPE_SEP = "~";
|
|
1224
1223
|
var PAIR_SEP = "!";
|
|
1225
1224
|
var KV_SEP = "-";
|
|
1226
|
-
var QUIRK_KV_SEP = "=";
|
|
1227
1225
|
var QUIRK_SEP = "!!";
|
|
1228
1226
|
function parseScoreCookie(cookieValue, quirkCookieValue) {
|
|
1229
1227
|
if (!cookieValue) return;
|
|
@@ -1247,7 +1245,7 @@ function parseScoreCookie(cookieValue, quirkCookieValue) {
|
|
|
1247
1245
|
function parseQuirkCookie(quirkCookieValue) {
|
|
1248
1246
|
const pairs = quirkCookieValue.split(QUIRK_SEP);
|
|
1249
1247
|
const splitPairs = pairs.map((pair) => {
|
|
1250
|
-
const sep = pair.indexOf(
|
|
1248
|
+
const sep = pair.indexOf(KV_SEP);
|
|
1251
1249
|
if (sep === -1) {
|
|
1252
1250
|
return void 0;
|
|
1253
1251
|
}
|
|
@@ -1348,7 +1346,7 @@ function serializeCookieType(type) {
|
|
|
1348
1346
|
return Object.entries(type).map((kv) => kv.join(KV_SEP)).join(PAIR_SEP);
|
|
1349
1347
|
}
|
|
1350
1348
|
function serializeQuirks(quirks) {
|
|
1351
|
-
return Object.entries(quirks).map((kv) => kv.join(
|
|
1349
|
+
return Object.entries(quirks).map((kv) => kv.join(KV_SEP)).join(QUIRK_SEP);
|
|
1352
1350
|
}
|
|
1353
1351
|
|
|
1354
1352
|
// src/storage/EdgeTransitionDataStore.ts
|
|
@@ -2948,7 +2946,6 @@ function parseQuickConnect(serialized) {
|
|
|
2948
2946
|
KV_SEP,
|
|
2949
2947
|
ManifestInstance,
|
|
2950
2948
|
PAIR_SEP,
|
|
2951
|
-
QUIRK_KV_SEP,
|
|
2952
2949
|
QUIRK_SEP,
|
|
2953
2950
|
SERVER_STATE_ID,
|
|
2954
2951
|
STRONGEST_SCORE_PERSONALIZATION_ALGORITHM,
|
package/dist/index.mjs
CHANGED
|
@@ -1129,7 +1129,6 @@ _quirksEnabled = new WeakMap();
|
|
|
1129
1129
|
var TYPE_SEP = "~";
|
|
1130
1130
|
var PAIR_SEP = "!";
|
|
1131
1131
|
var KV_SEP = "-";
|
|
1132
|
-
var QUIRK_KV_SEP = "=";
|
|
1133
1132
|
var QUIRK_SEP = "!!";
|
|
1134
1133
|
function parseScoreCookie(cookieValue, quirkCookieValue) {
|
|
1135
1134
|
if (!cookieValue) return;
|
|
@@ -1153,7 +1152,7 @@ function parseScoreCookie(cookieValue, quirkCookieValue) {
|
|
|
1153
1152
|
function parseQuirkCookie(quirkCookieValue) {
|
|
1154
1153
|
const pairs = quirkCookieValue.split(QUIRK_SEP);
|
|
1155
1154
|
const splitPairs = pairs.map((pair) => {
|
|
1156
|
-
const sep = pair.indexOf(
|
|
1155
|
+
const sep = pair.indexOf(KV_SEP);
|
|
1157
1156
|
if (sep === -1) {
|
|
1158
1157
|
return void 0;
|
|
1159
1158
|
}
|
|
@@ -1254,7 +1253,7 @@ function serializeCookieType(type) {
|
|
|
1254
1253
|
return Object.entries(type).map((kv) => kv.join(KV_SEP)).join(PAIR_SEP);
|
|
1255
1254
|
}
|
|
1256
1255
|
function serializeQuirks(quirks) {
|
|
1257
|
-
return Object.entries(quirks).map((kv) => kv.join(
|
|
1256
|
+
return Object.entries(quirks).map((kv) => kv.join(KV_SEP)).join(QUIRK_SEP);
|
|
1258
1257
|
}
|
|
1259
1258
|
|
|
1260
1259
|
// src/storage/EdgeTransitionDataStore.ts
|
|
@@ -2853,7 +2852,6 @@ export {
|
|
|
2853
2852
|
KV_SEP,
|
|
2854
2853
|
ManifestInstance,
|
|
2855
2854
|
PAIR_SEP,
|
|
2856
|
-
QUIRK_KV_SEP,
|
|
2857
2855
|
QUIRK_SEP,
|
|
2858
2856
|
SERVER_STATE_ID,
|
|
2859
2857
|
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.123+2f94c7c7d8",
|
|
4
4
|
"description": "Uniform Context core package",
|
|
5
5
|
"license": "SEE LICENSE IN LICENSE.txt",
|
|
6
6
|
"main": "./dist/index.js",
|
|
@@ -72,5 +72,5 @@
|
|
|
72
72
|
"publishConfig": {
|
|
73
73
|
"access": "public"
|
|
74
74
|
},
|
|
75
|
-
"gitHead": "
|
|
75
|
+
"gitHead": "2f94c7c7d825e4d5fb92122c706fb4efa4922993"
|
|
76
76
|
}
|