@daybook/analytics 0.0.0-stage → 0.3.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.
package/package.json CHANGED
@@ -1,6 +1,80 @@
1
- {
2
- "name": "@daybook/analytics",
3
- "version": "0.0.0-stage",
4
- "stub": true,
5
- "description": "Temporary package placeholder for staged publishing"
6
- }
1
+ {
2
+ "name": "@daybook/analytics",
3
+ "version": "0.3.0",
4
+ "description": "Product analytics for the web: page views, sessions, attribution and your own events, sent to Daybook's Analytics hub. Plain JS, React and Vue.",
5
+ "type": "module",
6
+ "main": "dist/index.js",
7
+ "types": "dist/index.d.ts",
8
+ "unpkg": "dist/daybook.js",
9
+ "jsdelivr": "dist/daybook.js",
10
+ "files": [
11
+ "dist",
12
+ "README.md",
13
+ "CHANGELOG.md"
14
+ ],
15
+ "scripts": {
16
+ "build": "tsc -p tsconfig.json && npm run bundle",
17
+ "typecheck": "tsc -p tsconfig.json --noEmit",
18
+ "test": "node --test test/*.test.js",
19
+ "bundle": "esbuild src/browser.ts --bundle --format=iife --minify --target=es2019 --outfile=dist/daybook.js",
20
+ "prepublishOnly": "npm run build && npm test",
21
+ "release": "node ../../devops/publish-sdk.mjs analytics"
22
+ },
23
+ "peerDependencies": {
24
+ "react": ">=17",
25
+ "vue": ">=3.3"
26
+ },
27
+ "peerDependenciesMeta": {
28
+ "react": {
29
+ "optional": true
30
+ },
31
+ "vue": {
32
+ "optional": true
33
+ }
34
+ },
35
+ "devDependencies": {
36
+ "@types/react": "^19.3.0",
37
+ "esbuild": "^0.28.2",
38
+ "react": "^19.3.1",
39
+ "react-dom": "^19.3.1",
40
+ "typescript": "^5.7.2",
41
+ "vue": "^3.5.13"
42
+ },
43
+ "allowScripts": {
44
+ "esbuild@0.28.2": true
45
+ },
46
+ "exports": {
47
+ ".": {
48
+ "types": "./dist/index.d.ts",
49
+ "import": "./dist/index.js"
50
+ },
51
+ "./react": {
52
+ "types": "./dist/react.d.ts",
53
+ "import": "./dist/react.js"
54
+ },
55
+ "./vue": {
56
+ "types": "./dist/vue.d.ts",
57
+ "import": "./dist/vue.js"
58
+ },
59
+ "./browser": "./dist/daybook.js"
60
+ },
61
+ "sideEffects": [
62
+ "./dist/browser.js",
63
+ "./dist/daybook.js"
64
+ ],
65
+ "license": "MIT",
66
+ "publishConfig": {
67
+ "access": "public"
68
+ },
69
+ "homepage": "https://daybook.team",
70
+ "keywords": [
71
+ "analytics",
72
+ "product-analytics",
73
+ "events",
74
+ "pageviews",
75
+ "react",
76
+ "vue",
77
+ "nextjs",
78
+ "nuxt"
79
+ ]
80
+ }