@solomei-ai/intent 1.12.1 → 2.0.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.
@@ -12,19 +12,6 @@ type InitOptions = {
12
12
  */
13
13
  debugPanel?: boolean;
14
14
  };
15
- /**
16
- * Valid flag names for the Intent SDK
17
- */
18
- type FlagName = 'intent:consent' | 'intent:geo' | 'intent:debug';
19
- /**
20
- * Generic flag setter - prefer using specific functions like setConsent(), setGeo(), setDebug()
21
- * @param name - The flag name to set
22
- * @param yes - Boolean value to enable (true) or disable (false). Undefined will skip setting.
23
- * @deprecated This entire function will be removed in v2.0.0 (February 2026 - 2 months).
24
- * Migrate to type-safe functions: setConsent(), setGeo(), or setDebug().
25
- * See migration guide in README for details.
26
- */
27
- declare function setFlag(name: FlagName | string, yes: boolean | undefined | string): void;
28
15
  /**
29
16
  * Set consent flag - controls whether the SDK tracks user activity
30
17
  * @param granted - true to grant consent, false to revoke consent
@@ -67,5 +54,5 @@ declare function ensureIntentSessionId(): void;
67
54
  declare function clearIntentSessionId(): void;
68
55
  declare function setIntentSessionMaxAge(seconds: number): void;
69
56
 
70
- export { clearIntentSessionId, ensureIntentSessionId, getIntentSessionId, initIntent, setConsent, setDebug, setDebugPanel, setFlag, setGeo, setIntentSessionMaxAge };
71
- export type { FlagName, InitOptions };
57
+ export { clearIntentSessionId, ensureIntentSessionId, getIntentSessionId, initIntent, setConsent, setDebug, setDebugPanel, setGeo, setIntentSessionMaxAge };
58
+ export type { InitOptions };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@solomei-ai/intent",
3
- "version": "1.12.1",
3
+ "version": "2.0.0",
4
4
  "description": "Lightweight browser SDK for intent events (client-only).",
5
5
  "type": "module",
6
6
  "module": "dist/esm/index.js",
@@ -46,23 +46,21 @@
46
46
  "js-cookie": "3.0.8"
47
47
  },
48
48
  "devDependencies": {
49
- "@babel/preset-env": "^7.29.7",
50
- "@rollup/plugin-babel": "^7.1.0",
51
49
  "@rollup/plugin-node-resolve": "^16.0.3",
52
50
  "@rollup/plugin-replace": "^6.0.3",
53
51
  "@rollup/plugin-terser": "^1.0.0",
54
52
  "@rollup/plugin-typescript": "^12.3.0",
55
53
  "@tsconfig/recommended": "^1.0.13",
56
54
  "@types/js-cookie": "^3.0.6",
57
- "@vitest/browser-playwright": "^4.1.8",
58
- "@vitest/coverage-v8": "^4.1.8",
59
- "@vitest/ui": "^4.1.8",
60
- "eslint-config-xo": "^0.52.0",
61
- "happy-dom": "^20.9.0",
62
- "rollup": "^4.61.0",
55
+ "@vitest/browser-playwright": "^4.1.9",
56
+ "@vitest/coverage-v8": "^4.1.9",
57
+ "@vitest/ui": "^4.1.9",
58
+ "eslint-config-xo": "^0.53.2",
59
+ "happy-dom": "^20.10.6",
60
+ "rollup": "^4.62.2",
63
61
  "rollup-plugin-dts": "^6.4.1",
64
62
  "rollup-plugin-obfuscator": "^1.1.0",
65
63
  "typescript": "^6.0.3",
66
- "vitest": "^4.1.8"
64
+ "vitest": "^4.1.9"
67
65
  }
68
66
  }