@metarouter/react-native-sdk 0.1.24 → 0.1.25

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
@@ -21,7 +21,7 @@ import MetaRouter from "@metarouter/react-native-sdk";
21
21
  // Initialize the analytics client
22
22
  const analytics = await MetaRouter.analytics.init({
23
23
  writeKey: "your-write-key",
24
- ingestionEndpoint: "https://your-ingestion-endpoint.com/events",
24
+ ingestionHost: "https://your-ingestion-endpoint.com",
25
25
  debug: true, // Optional: enable debug mode
26
26
  flushInterval: 30, // Optional: flush events every 30 seconds
27
27
  });
@@ -46,7 +46,7 @@ const App = () => {
46
46
  // Initialize the analytics client
47
47
  await MetaRouter.analytics.init({
48
48
  writeKey: "your-write-key",
49
- ingestionEndpoint: "https://your-ingestion-endpoint.com",
49
+ ingestionHost: "https://your-ingestion-endpoint.com",
50
50
  });
51
51
 
52
52
  setMetaRouterInstance(MetaRouter);
@@ -91,7 +91,7 @@ import MetaRouter from "@metarouter/react-native-sdk";
91
91
  // Initialize
92
92
  const analytics = await MetaRouter.analytics.init({
93
93
  writeKey: "your-write-key",
94
- ingestionEndpoint: "https://your-ingestion-endpoint.com/events",
94
+ ingestionHost: "https://your-ingestion-endpoint.com/events",
95
95
  });
96
96
 
97
97
  // Track events
@@ -136,7 +136,7 @@ Initializes the analytics client and returns a promise that resolves to the clie
136
136
  **Options:**
137
137
 
138
138
  - `writeKey` (string, required): Your write key
139
- - `ingestionEndpoint` (string, required): Your custom ingestion endpoint URL
139
+ - `ingestionHost` (string, required): Your MetaRouter ingestor host
140
140
  - `debug` (boolean, optional): Enable debug mode
141
141
  - `flushInterval` (number, optional): Interval in seconds to flush events
142
142
 
@@ -188,7 +188,7 @@ If you're not seeing API calls being made, here are some steps to troubleshoot:
188
188
  // Initialize with debug enabled
189
189
  const analytics = await MetaRouter.analytics.init({
190
190
  writeKey: "your-write-key",
191
- ingestionEndpoint: "https://your-ingestion-endpoint.com",
191
+ ingestionHost: "https://your-ingestion-endpoint.com",
192
192
  debug: true, // This enables detailed logging
193
193
  });
194
194
 
@@ -12,7 +12,7 @@ export declare class MetaRouterAnalyticsClient {
12
12
  private queue;
13
13
  private flushIntervalMs;
14
14
  private flushTimer;
15
- private endpoint;
15
+ private ingestionHost;
16
16
  private writeKey;
17
17
  private context;
18
18
  private appState;
@@ -87,10 +87,10 @@ export declare class MetaRouterAnalyticsClient {
87
87
  */
88
88
  screen(name: string, properties?: Record<string, any>): void;
89
89
  /**
90
- * Alias an anonymous user to a known user ID.
91
- * This updates internal identity state and enqueues an alias event.
92
- * @param newUserId - The new user ID to alias to.
93
- */
90
+ * Alias an anonymous user to a known user ID.
91
+ * This updates internal identity state and enqueues an alias event.
92
+ * @param newUserId - The new user ID to alias to.
93
+ */
94
94
  alias(newUserId: string): void;
95
95
  /**
96
96
  * Enable debug logging for troubleshooting
@@ -102,7 +102,7 @@ export declare class MetaRouterAnalyticsClient {
102
102
  getDebugInfo(): {
103
103
  initialized: boolean;
104
104
  queueLength: number;
105
- endpoint: string;
105
+ ingestionHost: string;
106
106
  writeKey: string | undefined;
107
107
  flushIntervalMs: number;
108
108
  anonymousId: string | null;
@@ -1 +1 @@
1
- {"version":3,"file":"MetaRouterAnalyticsClient.d.ts","sourceRoot":"","sources":["../../src/analytics/MetaRouterAnalyticsClient.ts"],"names":[],"mappings":"AAAA,OAAO,EAAiD,WAAW,EAAE,MAAM,SAAS,CAAC;AAQrF;;;;;;GAMG;AACD,qBAAa,yBAAyB;IACpC,OAAO,CAAC,WAAW,CAAS;IAC5B,OAAO,CAAC,WAAW,CAAgB;IACnC,OAAO,CAAC,KAAK,CAAsB;IACnC,OAAO,CAAC,eAAe,CAAS;IAChC,OAAO,CAAC,UAAU,CAA+B;IACjD,OAAO,CAAC,QAAQ,CAAS;IACzB,OAAO,CAAC,QAAQ,CAAS;IACzB,OAAO,CAAC,OAAO,CAAgB;IAC/B,OAAO,CAAC,QAAQ,CAAyC;I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IAOnD;;;;OAIG;IACH,MAAM,CAAC,IAAI,EAAE,MAAM,EAAE,UAAU,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC;IAWrD;;;;OAIG;IACH,KAAK,CAAC,SAAS,EAAE,MAAM;IAOvB;;OAEG;IACH,kBAAkB;IAKlB;;OAEG;IACH,YAAY;;;;;;;;;;IAaZ;;OAEG;IACG,KAAK;;;;;;;;;;IAkDX;;OAEG;IACH,KAAK;IAML;;OAEG;IACH,OAAO;CAOR"}
@@ -1,4 +1,4 @@
1
- import { AppState } from 'react-native';
1
+ import { AppState } from "react-native";
2
2
  import { retryWithBackoff } from "./utils/retry";
3
3
  import { error, log, setDebugLogging, warn } from "./utils/logger";
4
4
  import { IdentityManager } from "./IdentityManager";
@@ -29,20 +29,20 @@ export class MetaRouterAnalyticsClient {
29
29
  * @param nextState - The new app state.
30
30
  */
31
31
  this.handleAppStateChange = (nextState) => {
32
- if (this.appState === 'active' && nextState.match(/inactive|background/)) {
32
+ if (this.appState === "active" && nextState.match(/inactive|background/)) {
33
33
  this.flush();
34
34
  }
35
35
  this.appState = nextState;
36
36
  };
37
- log('Initializing analytics client', options);
38
- const { writeKey, ingestionEndpoint, flushInterval } = options;
39
- this.endpoint = ingestionEndpoint;
37
+ log("Initializing analytics client", options);
38
+ const { writeKey, ingestionHost, flushInterval } = options;
39
+ this.ingestionHost = ingestionHost;
40
40
  this.writeKey = writeKey;
41
41
  this.flushIntervalMs = flushInterval !== null && flushInterval !== void 0 ? flushInterval : 10000;
42
42
  setDebugLogging((_a = options.debug) !== null && _a !== void 0 ? _a : false);
43
43
  this.identityManager = new IdentityManager();
44
44
  this.initPromise = this.init();
45
- log('Analytics client constructor completed, initialization in progress...');
45
+ log("Analytics client constructor completed, initialization in progress...");
46
46
  }
47
47
  /**
48
48
  * Initializes the analytics client.
@@ -50,23 +50,23 @@ export class MetaRouterAnalyticsClient {
50
50
  */
51
51
  async init() {
52
52
  if (this.initialized) {
53
- log('Analytics client already initialized');
53
+ log("Analytics client already initialized");
54
54
  return;
55
55
  }
56
- log('Starting analytics client initialization...');
56
+ log("Starting analytics client initialization...");
57
57
  try {
58
58
  await this.identityManager.init();
59
- log('IdentityManager initialized successfully');
59
+ log("IdentityManager initialized successfully");
60
60
  this.startFlushLoop();
61
- log('Flush loop started with interval:', this.flushIntervalMs, 'ms');
61
+ log("Flush loop started with interval:", this.flushIntervalMs, "ms");
62
62
  this.setupAppStateListener();
63
- log('App state listener setup completed');
63
+ log("App state listener setup completed");
64
64
  this.context = await getContextInfo();
65
65
  this.initialized = true;
66
- log('Analytics client initialization completed successfully');
66
+ log("Analytics client initialization completed successfully");
67
67
  }
68
68
  catch (error) {
69
- warn('Analytics client initialization failed:', error);
69
+ warn("Analytics client initialization failed:", error);
70
70
  // Still mark as initialized to prevent infinite retries
71
71
  this.initialized = true;
72
72
  throw error;
@@ -99,14 +99,14 @@ export class MetaRouterAnalyticsClient {
99
99
  enqueue(event) {
100
100
  const eventWithIdentity = this.identityManager.addIdentityInfo(event);
101
101
  const enrichedEvent = enrichEvent(eventWithIdentity, this.writeKey, this.context);
102
- log('Enqueuing event', enrichedEvent);
102
+ log("Enqueuing event", enrichedEvent);
103
103
  this.queue.push(enrichedEvent);
104
104
  }
105
105
  /**
106
106
  * Sets up the app state listener.
107
107
  */
108
108
  setupAppStateListener() {
109
- this.appStateSubscription = AppState.addEventListener('change', this.handleAppStateChange);
109
+ this.appStateSubscription = AppState.addEventListener("change", this.handleAppStateChange);
110
110
  }
111
111
  /**
112
112
  * Tracks an event.
@@ -114,9 +114,9 @@ export class MetaRouterAnalyticsClient {
114
114
  * @param properties - The properties to track.
115
115
  */
116
116
  track(event, properties) {
117
- log('Tracking event:', event, 'with properties:', properties);
118
- this.enqueue({ type: 'track', event, properties, timestamp: this.now() });
119
- log('Event enqueued, queue length:', this.queue.length);
117
+ log("Tracking event:", event, "with properties:", properties);
118
+ this.enqueue({ type: "track", event, properties, timestamp: this.now() });
119
+ log("Event enqueued, queue length:", this.queue.length);
120
120
  }
121
121
  /**
122
122
  * Identifies a user.
@@ -124,10 +124,10 @@ export class MetaRouterAnalyticsClient {
124
124
  * @param traits - The traits to identify the user with.
125
125
  */
126
126
  identify(userId, traits) {
127
- log('Identifying user:', userId, 'with traits:', traits);
127
+ log("Identifying user:", userId, "with traits:", traits);
128
128
  this.identityManager.identify(userId);
129
- this.enqueue({ type: 'identify', userId, traits, timestamp: this.now() });
130
- log('Identify event enqueued, queue length:', this.queue.length);
129
+ this.enqueue({ type: "identify", userId, traits, timestamp: this.now() });
130
+ log("Identify event enqueued, queue length:", this.queue.length);
131
131
  }
132
132
  /**
133
133
  * Tracks a page view.
@@ -135,9 +135,14 @@ export class MetaRouterAnalyticsClient {
135
135
  * @param properties - The properties to track.
136
136
  */
137
137
  page(name, properties) {
138
- log('Tracking page:', name, 'with properties:', properties);
139
- this.enqueue({ type: 'page', event: name, properties, timestamp: this.now() });
140
- log('Page event enqueued, queue length:', this.queue.length);
138
+ log("Tracking page:", name, "with properties:", properties);
139
+ this.enqueue({
140
+ type: "page",
141
+ event: name,
142
+ properties,
143
+ timestamp: this.now(),
144
+ });
145
+ log("Page event enqueued, queue length:", this.queue.length);
141
146
  }
142
147
  /**
143
148
  * Groups a user.
@@ -145,10 +150,10 @@ export class MetaRouterAnalyticsClient {
145
150
  * @param traits - The traits to group the user with.
146
151
  */
147
152
  group(groupId, traits) {
148
- log('Grouping user:', groupId, 'with traits:', traits);
153
+ log("Grouping user:", groupId, "with traits:", traits);
149
154
  this.identityManager.group(groupId);
150
- this.enqueue({ type: 'group', groupId, traits, timestamp: this.now() });
151
- log('Group event enqueued, queue length:', this.queue.length);
155
+ this.enqueue({ type: "group", groupId, traits, timestamp: this.now() });
156
+ log("Group event enqueued, queue length:", this.queue.length);
152
157
  }
153
158
  /**
154
159
  * Tracks a screen view.
@@ -156,27 +161,32 @@ export class MetaRouterAnalyticsClient {
156
161
  * @param properties - The properties to track.
157
162
  */
158
163
  screen(name, properties) {
159
- log('Tracking screen:', name, 'with properties:', properties);
160
- this.enqueue({ type: 'screen', event: name, properties, timestamp: this.now() });
161
- log('Screen event enqueued, queue length:', this.queue.length);
164
+ log("Tracking screen:", name, "with properties:", properties);
165
+ this.enqueue({
166
+ type: "screen",
167
+ event: name,
168
+ properties,
169
+ timestamp: this.now(),
170
+ });
171
+ log("Screen event enqueued, queue length:", this.queue.length);
162
172
  }
163
173
  /**
164
- * Alias an anonymous user to a known user ID.
165
- * This updates internal identity state and enqueues an alias event.
166
- * @param newUserId - The new user ID to alias to.
167
- */
174
+ * Alias an anonymous user to a known user ID.
175
+ * This updates internal identity state and enqueues an alias event.
176
+ * @param newUserId - The new user ID to alias to.
177
+ */
168
178
  alias(newUserId) {
169
- log('Aliasing user to:', newUserId);
179
+ log("Aliasing user to:", newUserId);
170
180
  this.identityManager.identify(newUserId);
171
- this.enqueue({ type: 'alias', userId: newUserId, timestamp: this.now() });
172
- log('Alias event enqueued, queue length:', this.queue.length);
181
+ this.enqueue({ type: "alias", userId: newUserId, timestamp: this.now() });
182
+ log("Alias event enqueued, queue length:", this.queue.length);
173
183
  }
174
184
  /**
175
185
  * Enable debug logging for troubleshooting
176
186
  */
177
187
  enableDebugLogging() {
178
188
  setDebugLogging(true);
179
- log('Debug logging enabled');
189
+ log("Debug logging enabled");
180
190
  }
181
191
  /**
182
192
  * Get current state for debugging
@@ -185,8 +195,8 @@ export class MetaRouterAnalyticsClient {
185
195
  return {
186
196
  initialized: this.initialized,
187
197
  queueLength: this.queue.length,
188
- endpoint: this.endpoint,
189
- writeKey: this.writeKey ? '***' + this.writeKey.slice(-4) : undefined,
198
+ ingestionHost: this.ingestionHost,
199
+ writeKey: this.writeKey ? "***" + this.writeKey.slice(-4) : undefined,
190
200
  flushIntervalMs: this.flushIntervalMs,
191
201
  anonymousId: this.identityManager.getAnonymousId(),
192
202
  userId: this.identityManager.getUserId(),
@@ -199,12 +209,12 @@ export class MetaRouterAnalyticsClient {
199
209
  async flush() {
200
210
  const anonId = this.identityManager.getAnonymousId();
201
211
  if (!anonId) {
202
- warn('Anonymous ID not yet ready, delaying flush');
212
+ warn("Anonymous ID not yet ready, delaying flush");
203
213
  // Anon ID not yet ready, delay flushing
204
214
  return;
205
215
  }
206
216
  if (this.queue.length === 0) {
207
- log('No events to flush');
217
+ log("No events to flush");
208
218
  return;
209
219
  }
210
220
  const batch = this.queue.map((event) => ({
@@ -212,29 +222,29 @@ export class MetaRouterAnalyticsClient {
212
222
  sentAt: new Date().toISOString(),
213
223
  }));
214
224
  this.queue = [];
215
- log(`Flushing ${batch.length} events to ${this.endpoint}/v1/batch`);
225
+ log(`Flushing ${batch.length} events to ${this.ingestionHost}/v1/batch`);
216
226
  try {
217
227
  await retryWithBackoff(async () => {
218
- log('Making API call to:', this.endpoint + '/v1/batch');
219
- const response = await fetch(this.endpoint + '/v1/batch', {
220
- method: 'POST',
228
+ log("Making API call to:", this.ingestionHost + "/v1/batch");
229
+ const response = await fetch(this.ingestionHost + "/v1/batch", {
230
+ method: "POST",
221
231
  headers: {
222
- 'Content-Type': 'application/json',
232
+ "Content-Type": "application/json",
223
233
  },
224
234
  body: JSON.stringify({ batch }),
225
235
  });
226
236
  if (!response.ok) {
227
- error('HTTP error', response);
237
+ error("HTTP error", response);
228
238
  throw new Error(`HTTP ${response.status}: ${response.statusText}`);
229
239
  }
230
- log('API call successful, status:', response.status);
240
+ log("API call successful, status:", response.status);
231
241
  return response;
232
242
  });
233
- log('Flush completed successfully');
243
+ log("Flush completed successfully");
234
244
  return batch;
235
245
  }
236
246
  catch (err) {
237
- warn('Flush failed, re-queueing events', err);
247
+ warn("Flush failed, re-queueing events", err);
238
248
  this.queue.unshift(...batch);
239
249
  }
240
250
  }
@@ -244,14 +254,14 @@ export class MetaRouterAnalyticsClient {
244
254
  reset() {
245
255
  this.identityManager.reset();
246
256
  this.queue = [];
247
- log('Analytics client reset');
257
+ log("Analytics client reset");
248
258
  }
249
259
  /**
250
260
  * Cleans up the analytics client.
251
261
  */
252
262
  cleanup() {
253
263
  var _a, _b;
254
- log('Cleaning up analytics client');
264
+ log("Cleaning up analytics client");
255
265
  if (this.flushTimer)
256
266
  clearInterval(this.flushTimer);
257
267
  this.queue = [];
@@ -1,4 +1,4 @@
1
- export type EventType = 'track' | 'identify' | 'group' | 'screen' | 'alias' | 'page';
1
+ export type EventType = "track" | "identify" | "group" | "screen" | "alias" | "page";
2
2
  export interface EventPayload {
3
3
  type: EventType;
4
4
  event?: string;
@@ -19,7 +19,7 @@ export interface EnrichedEventPayload extends EventWithIdentity {
19
19
  }
20
20
  export interface InitOptions {
21
21
  writeKey: string;
22
- ingestionEndpoint: string;
22
+ ingestionHost: string;
23
23
  flushInterval?: number;
24
24
  debug?: boolean;
25
25
  }
@@ -1 +1 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../src/analytics/types.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,SAAS,GAAG,OAAO,GAAG,UAAU,GAAG,OAAO,GAAG,QAAQ,GAAG,OAAO,GAAG,MAAM,CAAC;AAErF,MAAM,WAAW,YAAY;IAC3B,IAAI,EAAE,SAAS,CAAC;IAChB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,MAAM,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;IAC7B,UAAU,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;IACjC,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED,MAAM,WAAW,iBAAkB,SAAQ,YAAY;IACrD,WAAW,EAAE,MAAM,CAAC;CACrB;AAED,MAAM,WAAW,oBAAqB,SAAQ,iBAAiB;IAC7D,SAAS,EAAE,MAAM,CAAC;IAClB,MAAM,EAAE,MAAM,CAAC;IACf,OAAO,EAAE,YAAY,CAAC;IACtB,QAAQ,EAAE,MAAM,CA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AAM,CAAC;KACd,CAAC;IACF,OAAO,EAAE;QACP,IAAI,EAAE,MAAM,CAAC;QACb,OAAO,EAAE,MAAM,CAAC;KACjB,CAAC;IACF,EAAE,EAAE;QACF,IAAI,EAAE,MAAM,CAAC;QACb,OAAO,EAAE,MAAM,CAAC;KACjB,CAAC;IACF,MAAM,EAAE;QACN,OAAO,EAAE,MAAM,CAAC;QAChB,KAAK,EAAE,MAAM,CAAC;QACd,MAAM,EAAE,MAAM,CAAC;KAChB,CAAC;IACF,OAAO,EAAE;QACP,IAAI,EAAE,OAAO,CAAC;KACf,CAAC;IACF,MAAM,EAAE,MAAM,CAAC;IACf,QAAQ,EAAE,MAAM,CAAC;IACjB,CAAC,GAAG,EAAE,MAAM,GAAG,GAAG,CAAC;CACpB"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@metarouter/react-native-sdk",
3
- "version": "0.1.24",
3
+ "version": "0.1.25",
4
4
  "main": "./lib/index.js",
5
5
  "types": "./lib/index.d.ts",
6
6
  "exports": {