@allem-sdk/analytics 0.1.0 → 0.1.2

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/README.md +3 -2
  2. package/package.json +10 -4
package/README.md CHANGED
@@ -3,8 +3,9 @@
3
3
  </p>
4
4
 
5
5
  <p align="center">
6
+ <a href="https://www.npmjs.com/package/@allem-sdk/analytics"><img src="https://img.shields.io/npm/v/@allem-sdk/analytics.svg" alt="npm version" /></a>
6
7
  <a href="https://github.com/kingofmit/allem-sdk/blob/main/LICENSE"><img src="https://img.shields.io/badge/license-MIT-blue.svg" alt="License" /></a>
7
- <img src="https://img.shields.io/badge/react-18+-61dafb" alt="React 18+" />
8
+ <img src="https://img.shields.io/badge/react-19-61dafb" alt="React 19" />
8
9
  <img src="https://img.shields.io/badge/typescript-strict-blue" alt="TypeScript" />
9
10
  </p>
10
11
 
@@ -23,7 +24,7 @@ npm install @allem-sdk/analytics
23
24
  ```tsx
24
25
  import { AnalyticsProvider, useTrack, usePageView, useIdentify } from "@allem-sdk/analytics";
25
26
 
26
- // Define adapters for your providers use one or many
27
+ // Define adapters for your providers (use one or many)
27
28
  const mixpanelAdapter = {
28
29
  track: (event, properties) => mixpanel.track(event, properties),
29
30
  page: (name, properties) => mixpanel.track_pageview({ page: name, ...properties }),
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@allem-sdk/analytics",
3
- "version": "0.1.0",
4
- "description": "Provider-agnostic analytics hooks for React",
3
+ "version": "0.1.2",
4
+ "description": "Provider-agnostic analytics hooks for React. Works with Mixpanel, Segment, PostHog, Amplitude, and any custom adapter. useTrack, usePageView, useIdentify.",
5
5
  "license": "MIT",
6
6
  "author": "Ahmed Allem",
7
7
  "main": "./dist/index.js",
@@ -39,11 +39,17 @@
39
39
  "keywords": [
40
40
  "allem-sdk",
41
41
  "react",
42
- "hooks",
42
+ "react-hooks",
43
43
  "analytics",
44
44
  "tracking",
45
45
  "mixpanel",
46
- "segment"
46
+ "segment",
47
+ "posthog",
48
+ "amplitude",
49
+ "event-tracking",
50
+ "page-view",
51
+ "typescript",
52
+ "nextjs"
47
53
  ],
48
54
  "publishConfig": {
49
55
  "access": "public"