@product-intelligence-hub/sdk-react-native 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 -4
  2. package/package.json +2 -2
package/README.md CHANGED
@@ -30,7 +30,6 @@ import PIH from "@product-intelligence-hub/sdk-react-native";
30
30
 
31
31
  // Initialize the SDK
32
32
  const pih = PIH.init({
33
- apiUrl: "https://your-ingest-api.com",
34
33
  apiKey: "your-api-key",
35
34
  projectId: "proj_xxx",
36
35
  environment: "production",
@@ -54,12 +53,12 @@ pih.identify("user_123", {
54
53
  ```typescript
55
54
  PIH.init({
56
55
  // Required
57
- apiUrl: string; // Ingestion API URL
58
56
  apiKey: string; // Environment API key
59
57
  projectId: string; // Project ID (proj_xxx)
60
58
  environment: string; // Environment name
61
59
 
62
60
  // Optional
61
+ apiUrl?: string; // Ingest API URL (has default, override for self-hosted)
63
62
  tenantId?: string; // Tenant ID for multi-tenant apps
64
63
  debug?: boolean; // Enable debug logging (default: false)
65
64
  flushInterval?: number; // Batch flush interval in ms (default: 10000)
@@ -194,5 +193,5 @@ import type {
194
193
 
195
194
  ## Related
196
195
 
197
- - [SDK Core](../sdk-core/README.md) - Core SDK internals
198
- - [SDK Spec](/docs/06_SDK_SPEC.md) - Full SDK specification
196
+ - [@product-intelligence-hub/sdk-core](https://www.npmjs.com/package/@product-intelligence-hub/sdk-core) - Core SDK internals
197
+ - [SDK Spec](https://github.com/maxivarela/product-intelligence-hub/blob/main/docs/06_SDK_SPEC.md) - Full SDK specification
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@product-intelligence-hub/sdk-react-native",
3
- "version": "0.1.0",
3
+ "version": "0.1.2",
4
4
  "description": "React Native SDK for Product Intelligence Hub",
5
5
  "license": "MIT",
6
6
  "type": "module",
@@ -34,7 +34,7 @@
34
34
  "mobile"
35
35
  ],
36
36
  "dependencies": {
37
- "@product-intelligence-hub/sdk-core": "0.1.0"
37
+ "@product-intelligence-hub/sdk-core": "0.1.2"
38
38
  },
39
39
  "peerDependencies": {
40
40
  "@react-native-async-storage/async-storage": ">=1.0.0",