@cross-deck/web 1.2.0 → 1.4.2

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 CHANGED
@@ -1,5 +1,5 @@
1
- import { P as PublicEntitlement, C as CrossdeckOptions, I as IdentifyOptions, A as AliasResult, G as GroupTraits, E as EventProperties, a as PurchaseResult, H as HeartbeatResponse, D as Diagnostics, K as KeyValueStorage } from './types-BzoKor4z.mjs';
2
- export { b as AuditRail, c as AutoTrackOptions, d as EntitlementsListResponse, e as Environment, f as Platform } from './types-BzoKor4z.mjs';
1
+ import { P as PublicEntitlement, C as CrossdeckOptions, I as IdentifyOptions, A as AliasResult, G as GroupTraits, E as EventProperties, a as PurchaseResult, H as HeartbeatResponse, D as Diagnostics, K as KeyValueStorage } from './types-Bu3jbmdq.mjs';
2
+ export { b as AuditRail, c as AutoTrackOptions, d as EntitlementsListResponse, e as Environment, f as Platform } from './types-Bu3jbmdq.mjs';
3
3
 
4
4
  /**
5
5
  * Durable last-known-good cache of the customer's entitlements.
@@ -662,6 +662,25 @@ declare class MemoryStorage implements KeyValueStorage {
662
662
  removeItem(key: string): void;
663
663
  }
664
664
 
665
+ /**
666
+ * SDK version constant — generated by `scripts/sync-sdk-versions.mjs`.
667
+ *
668
+ * Single source of truth: the `version` field in this package's
669
+ * package.json. The sync script writes this file so that
670
+ * `SDK_VERSION` is a plain TypeScript literal at runtime — no
671
+ * runtime JSON-import gotcha (Node ESM requires
672
+ * `with { type: "json" }` to import JSON as ESM, and the published
673
+ * dist file would otherwise fail to load).
674
+ *
675
+ * Drift protection: `node scripts/sync-sdk-versions.mjs --check` (the
676
+ * CI gate) flags this file when it falls out of sync with package.json.
677
+ * Bumping `package.json` without re-running the sync script fails CI.
678
+ *
679
+ * Do NOT edit by hand — `node scripts/sync-sdk-versions.mjs`.
680
+ */
681
+ declare const SDK_VERSION = "1.4.2";
682
+ declare const SDK_NAME = "@cross-deck/web";
683
+
665
684
  /**
666
685
  * HTTP transport for the SDK. Single fetch wrapper used by every endpoint
667
686
  * call. Adds the Bearer token and SDK version header, parses responses,
@@ -670,8 +689,7 @@ declare class MemoryStorage implements KeyValueStorage {
670
689
  * Uses platform-native fetch (browser + Node 18+). No axios, no isomorphic-
671
690
  * fetch shim, no transitive deps.
672
691
  */
673
- declare const SDK_NAME = "@cross-deck/web";
674
- declare const SDK_VERSION = "1.1.0";
692
+
675
693
  declare const DEFAULT_BASE_URL = "https://api.cross-deck.com/v1";
676
694
 
677
695
  /**
package/dist/index.d.ts CHANGED
@@ -1,5 +1,5 @@
1
- import { P as PublicEntitlement, C as CrossdeckOptions, I as IdentifyOptions, A as AliasResult, G as GroupTraits, E as EventProperties, a as PurchaseResult, H as HeartbeatResponse, D as Diagnostics, K as KeyValueStorage } from './types-BzoKor4z.js';
2
- export { b as AuditRail, c as AutoTrackOptions, d as EntitlementsListResponse, e as Environment, f as Platform } from './types-BzoKor4z.js';
1
+ import { P as PublicEntitlement, C as CrossdeckOptions, I as IdentifyOptions, A as AliasResult, G as GroupTraits, E as EventProperties, a as PurchaseResult, H as HeartbeatResponse, D as Diagnostics, K as KeyValueStorage } from './types-Bu3jbmdq.js';
2
+ export { b as AuditRail, c as AutoTrackOptions, d as EntitlementsListResponse, e as Environment, f as Platform } from './types-Bu3jbmdq.js';
3
3
 
4
4
  /**
5
5
  * Durable last-known-good cache of the customer's entitlements.
@@ -662,6 +662,25 @@ declare class MemoryStorage implements KeyValueStorage {
662
662
  removeItem(key: string): void;
663
663
  }
664
664
 
665
+ /**
666
+ * SDK version constant — generated by `scripts/sync-sdk-versions.mjs`.
667
+ *
668
+ * Single source of truth: the `version` field in this package's
669
+ * package.json. The sync script writes this file so that
670
+ * `SDK_VERSION` is a plain TypeScript literal at runtime — no
671
+ * runtime JSON-import gotcha (Node ESM requires
672
+ * `with { type: "json" }` to import JSON as ESM, and the published
673
+ * dist file would otherwise fail to load).
674
+ *
675
+ * Drift protection: `node scripts/sync-sdk-versions.mjs --check` (the
676
+ * CI gate) flags this file when it falls out of sync with package.json.
677
+ * Bumping `package.json` without re-running the sync script fails CI.
678
+ *
679
+ * Do NOT edit by hand — `node scripts/sync-sdk-versions.mjs`.
680
+ */
681
+ declare const SDK_VERSION = "1.4.2";
682
+ declare const SDK_NAME = "@cross-deck/web";
683
+
665
684
  /**
666
685
  * HTTP transport for the SDK. Single fetch wrapper used by every endpoint
667
686
  * call. Adds the Bearer token and SDK version header, parses responses,
@@ -670,8 +689,7 @@ declare class MemoryStorage implements KeyValueStorage {
670
689
  * Uses platform-native fetch (browser + Node 18+). No axios, no isomorphic-
671
690
  * fetch shim, no transitive deps.
672
691
  */
673
- declare const SDK_NAME = "@cross-deck/web";
674
- declare const SDK_VERSION = "1.1.0";
692
+
675
693
  declare const DEFAULT_BASE_URL = "https://api.cross-deck.com/v1";
676
694
 
677
695
  /**