@databuddy/sdk 2.2.0 → 2.2.11

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.
@@ -1,5 +1,5 @@
1
1
  import { defineComponent, ref, onMounted, onUnmounted, watch, reactive, watchEffect, computed } from 'vue';
2
- import { i as isScriptInjected, c as createScript, B as BrowserFlagStorage, C as CoreFlagsManager } from '../shared/@databuddy/sdk.tFAHtL2M.mjs';
2
+ import { i as isScriptInjected, c as createScript, B as BrowserFlagStorage, C as CoreFlagsManager } from '../shared/@databuddy/sdk.DihibvA_.mjs';
3
3
 
4
4
  const Databuddy = defineComponent({
5
5
  props: {},
@@ -74,12 +74,8 @@ function useFlags() {
74
74
  }
75
75
  const state = globalState;
76
76
  const manager = globalManager;
77
- const isEnabled = (key) => {
78
- return manager.isEnabled(key);
79
- };
80
- const fetchAllFlags = () => {
81
- return manager.fetchAllFlags();
82
- };
77
+ const isEnabled = (key) => manager.isEnabled(key);
78
+ const fetchAllFlags = () => manager.fetchAllFlags();
83
79
  const updateUser = (user) => {
84
80
  manager.updateUser(user);
85
81
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@databuddy/sdk",
3
- "version": "2.2.0",
3
+ "version": "2.2.11",
4
4
  "description": "Official Databuddy Analytics SDK",
5
5
  "main": "./dist/core/index.mjs",
6
6
  "types": "./dist/core/index.d.ts",
@@ -8,28 +8,52 @@
8
8
  "private": false,
9
9
  "scripts": {
10
10
  "build": "unbuild",
11
- "test": "bun test"
11
+ "test": "bun test",
12
+ "version:patch": "bun run version:patch",
13
+ "version:minor": "bun run version:minor",
14
+ "version:major": "bun run version:major",
15
+ "vscode:prepublish": "bun run build"
12
16
  },
13
17
  "dependencies": {
14
- "jotai": ">=2.0.0"
15
- },
16
- "optionalDependencies": {
17
- "pino": "^9.0.0"
18
+ "jotai": ">=2.12.5"
18
19
  },
19
20
  "devDependencies": {
21
+ "@ai-sdk/provider": "^2.0.0",
20
22
  "@types/node": "^20.0.0",
21
23
  "@vitejs/plugin-react": "^5.0.0",
24
+ "ai": "^5.0.51",
25
+ "react": "catalog:",
26
+ "@types/react": "catalog:",
27
+ "tokenlens": "^2.0.0-alpha.3",
22
28
  "typescript": "catalog:",
23
- "unbuild": "^3.6.1"
29
+ "unbuild": "^3.6.1",
30
+ "vue": ">=3",
31
+ "msw": "^2.11.5"
24
32
  },
25
33
  "peerDependencies": {
34
+ "@ai-sdk/provider": "^2.0.0",
35
+ "ai": "^5.0.51",
26
36
  "react": ">=18",
37
+ "tokenlens": "^2.0.0-alpha.3",
38
+ "msw": "^2.11.5",
27
39
  "vue": ">=3"
28
40
  },
29
41
  "peerDependenciesMeta": {
42
+ "@ai-sdk/provider": {
43
+ "optional": true
44
+ },
45
+ "ai": {
46
+ "optional": true
47
+ },
30
48
  "react": {
31
49
  "optional": true
32
50
  },
51
+ "tokenlens": {
52
+ "optional": true
53
+ },
54
+ "msw": {
55
+ "optional": true
56
+ },
33
57
  "vue": {
34
58
  "optional": true
35
59
  }
@@ -50,6 +74,10 @@
50
74
  "./node": {
51
75
  "types": "./dist/node/index.d.ts",
52
76
  "import": "./dist/node/index.mjs"
77
+ },
78
+ "./ai/vercel": {
79
+ "types": "./dist/ai/vercel/index.d.ts",
80
+ "import": "./dist/ai/vercel/index.mjs"
53
81
  }
54
82
  },
55
83
  "files": [