@entrolytics/shared 2.2.1 → 2.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/README.md CHANGED
@@ -6,9 +6,13 @@ Shared utilities and constants for Entrolytics packages.
6
6
 
7
7
  ```bash
8
8
  npm install @entrolytics/shared
9
+
9
10
  # or
11
+
10
12
  pnpm add @entrolytics/shared
13
+
11
14
  # or
15
+
12
16
  yarn add @entrolytics/shared
13
17
  ```
14
18
 
@@ -19,20 +23,20 @@ import {
19
23
  EVENT_TYPES,
20
24
  DEFAULT_CONFIG,
21
25
  validateWebsiteId,
22
- formatAnalyticsQuery
23
- } from '@entrolytics/shared';
26
+ formatAnalyticsQuery,
27
+ } from "@entrolytics/shared";
24
28
 
25
29
  // Use constants
26
30
  console.log(EVENT_TYPES.PAGEVIEW); // 'pageview'
27
31
 
28
32
  // Validate data
29
- const isValid = validateWebsiteId('abc123'); // true
33
+ const isValid = validateWebsiteId("abc123"); // true
30
34
 
31
35
  // Format queries
32
36
  const query = formatAnalyticsQuery({
33
- websiteId: 'abc123',
34
- startDate: '2025-01-01',
35
- endDate: '2025-01-31',
37
+ websiteId: "abc123",
38
+ startDate: "2025-01-01",
39
+ endDate: "2025-01-31",
36
40
  });
37
41
  ```
38
42
 
package/package.json CHANGED
@@ -1,7 +1,18 @@
1
1
  {
2
2
  "name": "@entrolytics/shared",
3
- "version": "2.2.1",
3
+ "version": "2.3.0",
4
4
  "description": "Shared utilities for Entrolytics - First-party growth analytics for the edge",
5
+ "keywords": [
6
+ "analytics",
7
+ "constants",
8
+ "entrolytics",
9
+ "types"
10
+ ],
11
+ "license": "MIT",
12
+ "files": [
13
+ "dist",
14
+ "README.md"
15
+ ],
5
16
  "type": "module",
6
17
  "main": "./dist/index.cjs",
7
18
  "module": "./dist/index.js",
@@ -18,26 +29,20 @@
18
29
  }
19
30
  }
20
31
  },
21
- "files": [
22
- "dist",
23
- "README.md"
24
- ],
25
32
  "devDependencies": {
26
- "@types/node": "^25.0.3",
27
- "tsup": "^8.5.1",
28
- "typescript": "^5.9.3",
29
- "vitest": "^4.0.16"
33
+ "@types/node": "^25.5.0",
34
+ "typescript": "rc",
35
+ "vite-plus": "latest",
36
+ "vitest": "^4.1.0"
30
37
  },
31
- "keywords": [
32
- "entrolytics",
33
- "analytics",
34
- "constants",
35
- "types"
36
- ],
37
- "license": "MIT",
38
38
  "scripts": {
39
- "build": "tsup",
40
- "dev": "tsup --watch",
41
- "typecheck": "tsc --noEmit"
39
+ "build": "vp pack",
40
+ "check": "vp check",
41
+ "dev": "vp pack --watch",
42
+ "lint": "vp lint --fix . && vp fmt --write .",
43
+ "lint:check": "vp lint . && vp fmt --check .",
44
+ "lint:fix-unsafe": "vp lint -f stylish --import-plugin --type-aware --type-check --vitest-plugin --fix --fix-suggestions --fix-dangerously src/",
45
+ "format": "vp fmt --write .",
46
+ "typecheck": "tsgo --noEmit"
42
47
  }
43
48
  }