@jitsu/js 1.9.18-canary.1288.20250415214028 → 1.10.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.
Files changed (2) hide show
  1. package/dist/jitsu.d.ts +12 -1
  2. package/package.json +3 -3
package/dist/jitsu.d.ts CHANGED
@@ -46,7 +46,18 @@ type JitsuOptions = {
46
46
  * Timeout for fetch requests. Default value: 5000
47
47
  */
48
48
  fetchTimeoutMs?: number;
49
+ /**
50
+ * Endpoint that makes sure that Jitsu anonymousId cookie is set as server (httpOnly) cookie.
51
+ * Endpoint must be hosted on the same domain as the site where Jitsu code is installed.
52
+ * Required to overcome Safari ITP restrictions.
53
+ */
54
+ idEndpoint?: string;
55
+ enabled?: boolean;
56
+ enableAnonymousId?: boolean;
57
+ enableThirdPartIds?: boolean;
58
+ ipPolicy?: "keep" | "remove" | "stripLastOctet";
49
59
  };
60
+ type DynamicJitsuOptions = Pick<JitsuOptions, "enableAnonymousId" | "enableThirdPartIds" | "ipPolicy" | "debug" | "echoEvents" | "enabled">;
50
61
  type PersistentStorage = {
51
62
  getItem: (key: string, options?: any) => any;
52
63
  setItem: (key: string, value: any, options?: any) => void;
@@ -73,4 +84,4 @@ type RuntimeFacade = {
73
84
  pageTitle(): string | undefined;
74
85
  };
75
86
  export declare function jitsuAnalytics(opts: JitsuOptions): AnalyticsInterface;
76
- export { AnalyticsInterface, JitsuOptions, PersistentStorage, RuntimeFacade };
87
+ export { AnalyticsInterface, JitsuOptions, DynamicJitsuOptions, PersistentStorage, RuntimeFacade };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jitsu/js",
3
- "version": "1.9.18-canary.1288.20250415214028",
3
+ "version": "1.10.0",
4
4
  "description": "",
5
5
  "author": "Jitsu Dev Team <dev@jitsu.com>",
6
6
  "main": "dist/jitsu.cjs.js",
@@ -38,10 +38,10 @@
38
38
  "rollup": "^3.29.5",
39
39
  "ts-jest": "29.0.5",
40
40
  "typescript": "^5.6.3",
41
- "jsondiffpatch": "1.9.18-canary.1288.20250415214028"
41
+ "jsondiffpatch": "1.10.0"
42
42
  },
43
43
  "peerDependencies": {
44
- "@jitsu/protocols": "1.9.18-canary.1288.20250415214028"
44
+ "@jitsu/protocols": "1.10.0"
45
45
  },
46
46
  "dependencies": {
47
47
  "analytics": "0.8.9"