@syntrologie/runtime-sdk 2.6.0-canary.6 → 2.6.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.
@@ -19285,7 +19285,7 @@ var SyntrologieSDK = (() => {
19285
19285
  }
19286
19286
 
19287
19287
  // src/version.ts
19288
- var SDK_VERSION = "2.6.0-canary.6";
19288
+ var SDK_VERSION = "2.6.0";
19289
19289
 
19290
19290
  // src/types.ts
19291
19291
  var SDK_SCHEMA_VERSION = "2.0";
@@ -19381,9 +19381,12 @@ var SyntrologieSDK = (() => {
19381
19381
  if (keys && keys.length > 0) return keys;
19382
19382
  }
19383
19383
  }
19384
- if (variantFlagPrefix && experiments.getAllFeatures) {
19384
+ if (experiments.getAllFeatures) {
19385
19385
  const all = experiments.getAllFeatures();
19386
- return Object.keys(all).filter((k2) => k2.startsWith(variantFlagPrefix));
19386
+ if (variantFlagPrefix) {
19387
+ return Object.keys(all).filter((k2) => k2.startsWith(variantFlagPrefix));
19388
+ }
19389
+ return Object.keys(all);
19387
19390
  }
19388
19391
  return [];
19389
19392
  }
@@ -19404,7 +19407,7 @@ var SyntrologieSDK = (() => {
19404
19407
  return directConfig;
19405
19408
  }
19406
19409
  }
19407
- if (experiments && (manifestKey || variantFlagPrefix)) {
19410
+ if (experiments && (manifestKey || variantFlagPrefix || experiments.getAllFeatures)) {
19408
19411
  const variantKeys = getVariantFlagKeys(experiments, manifestKey, variantFlagPrefix);
19409
19412
  if (variantKeys.length > 0) {
19410
19413
  const resolved = resolveVariantConfigs(experiments, variantKeys);
@@ -25631,7 +25634,7 @@ ${cssRules}
25631
25634
  await this.gb.loadFeatures();
25632
25635
  }
25633
25636
  setAttributes(attrs) {
25634
- this.gb.setAttributes(attrs);
25637
+ this.gb.setAttributes({ ...this.gb.getAttributes(), ...attrs });
25635
25638
  }
25636
25639
  setForcedVariations(variations) {
25637
25640
  this.gb.setForcedVariations(variations);
@@ -37746,10 +37749,15 @@ ${cssRules}
37746
37749
  __publicField(this, "namespace");
37747
37750
  __publicField(this, "namespacedStorages", /* @__PURE__ */ new Map());
37748
37751
  this.namespace = options.namespace ?? DEFAULT_NAMESPACE;
37749
- const isUsable = (s2) => typeof s2 === "object" && s2 !== null && typeof s2.setItem === "function";
37750
37752
  if (typeof window !== "undefined") {
37751
- this.session = isUsable(window.sessionStorage) ? createBrowserStorage(window.sessionStorage, this.namespace) : createMemoryStorage(this.namespace);
37752
- this.user = isUsable(window.localStorage) ? createBrowserStorage(window.localStorage, this.namespace) : createMemoryStorage(this.namespace);
37753
+ this.session = createBrowserStorage(
37754
+ typeof sessionStorage !== "undefined" ? sessionStorage : void 0,
37755
+ this.namespace
37756
+ );
37757
+ this.user = createBrowserStorage(
37758
+ typeof localStorage !== "undefined" ? localStorage : void 0,
37759
+ this.namespace
37760
+ );
37753
37761
  } else {
37754
37762
  this.session = createMemoryStorage(this.namespace);
37755
37763
  this.user = createMemoryStorage(this.namespace);
@@ -38828,7 +38836,7 @@ ${cssRules}
38828
38836
  }
38829
38837
  }
38830
38838
  }
38831
- if (this.manifestKey || this.variantFlagPrefix) {
38839
+ if (this.manifestKey || this.variantFlagPrefix || this.client.getAllFeatures) {
38832
38840
  const config2 = this.fetchMultiFlag();
38833
38841
  if (config2) {
38834
38842
  const fetchTimeMs2 = performance.now() - start;
@@ -38878,9 +38886,12 @@ ${cssRules}
38878
38886
  }
38879
38887
  }
38880
38888
  }
38881
- if (this.variantFlagPrefix && this.client.getAllFeatures) {
38889
+ if (this.client.getAllFeatures) {
38882
38890
  const allFeatures = this.client.getAllFeatures();
38883
- return Object.keys(allFeatures).filter((key) => key.startsWith(this.variantFlagPrefix));
38891
+ if (this.variantFlagPrefix) {
38892
+ return Object.keys(allFeatures).filter((key) => key.startsWith(this.variantFlagPrefix));
38893
+ }
38894
+ return Object.keys(allFeatures);
38884
38895
  }
38885
38896
  return [];
38886
38897
  }
@@ -39380,7 +39391,7 @@ ${cssRules}
39380
39391
  }
39381
39392
 
39382
39393
  // src/index.ts
39383
- var RUNTIME_SDK_BUILD = true ? `${"2026-03-06T13:50:58.236Z"} (${"441a6ae52a"})` : "dev";
39394
+ var RUNTIME_SDK_BUILD = true ? `${"2026-03-06T18:10:53.087Z"} (${"83c283f0a7"})` : "dev";
39384
39395
  if (typeof window !== "undefined") {
39385
39396
  console.log(`[Syntro Runtime] Build: ${RUNTIME_SDK_BUILD}`);
39386
39397
  const existing = window.SynOS;