@hanzo/event 0.3.29 → 0.3.31

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.
@@ -327,8 +327,6 @@ declare class Analytics {
327
327
  /** capture records a named product event with optional properties. Commerce
328
328
  * fields (productId/quantity/revenue/currency) may be passed for order events. */
329
329
  capture(event: string, properties?: Record<string, unknown>, commerce?: Pick<WireEvent, 'productId' | 'quantity' | 'revenue' | 'currency'>): void;
330
- /** track is an alias of capture (Segment familiarity). */
331
- track: (event: string, properties?: Record<string, unknown>, commerce?: Pick<WireEvent, "productId" | "quantity" | "revenue" | "currency">) => void;
332
330
  /** captureError reports a caught error, an unhandled rejection, a React render
333
331
  * error, or a manual report to BOTH planes, from one call:
334
332
  *
@@ -344,8 +342,6 @@ declare class Analytics {
344
342
  * than pageviews, so both planes flush promptly (a crash may unload the page
345
343
  * moments later). */
346
344
  captureError(err: unknown, context?: CaptureErrorOptions): void;
347
- /** captureException — @sentry-familiar alias of captureError. */
348
- captureException: (err: unknown, context?: CaptureErrorOptions) => void;
349
345
  /** setCohort persists cohort dimensions (e.g. signupWeek at signup) so they ride
350
346
  * every subsequent event. */
351
347
  setCohort(patch: Cohort): void;
@@ -327,8 +327,6 @@ declare class Analytics {
327
327
  /** capture records a named product event with optional properties. Commerce
328
328
  * fields (productId/quantity/revenue/currency) may be passed for order events. */
329
329
  capture(event: string, properties?: Record<string, unknown>, commerce?: Pick<WireEvent, 'productId' | 'quantity' | 'revenue' | 'currency'>): void;
330
- /** track is an alias of capture (Segment familiarity). */
331
- track: (event: string, properties?: Record<string, unknown>, commerce?: Pick<WireEvent, "productId" | "quantity" | "revenue" | "currency">) => void;
332
330
  /** captureError reports a caught error, an unhandled rejection, a React render
333
331
  * error, or a manual report to BOTH planes, from one call:
334
332
  *
@@ -344,8 +342,6 @@ declare class Analytics {
344
342
  * than pageviews, so both planes flush promptly (a crash may unload the page
345
343
  * moments later). */
346
344
  captureError(err: unknown, context?: CaptureErrorOptions): void;
347
- /** captureException — @sentry-familiar alias of captureError. */
348
- captureException: (err: unknown, context?: CaptureErrorOptions) => void;
349
345
  /** setCohort persists cohort dimensions (e.g. signupWeek at signup) so they ride
350
346
  * every subsequent event. */
351
347
  setCohort(patch: Cohort): void;
package/dist/index.cjs CHANGED
@@ -319,7 +319,7 @@ function uuidv7Time(id) {
319
319
  }
320
320
 
321
321
  // src/version.ts
322
- var VERSION = "0.3.29";
322
+ var VERSION = "0.3.31";
323
323
 
324
324
  // src/sentry.ts
325
325
  var MAX_FRAMES = 50;
@@ -767,10 +767,6 @@ var Analytics = class {
767
767
  this.started = false;
768
768
  /** Guards against an error thrown *inside* the error path re-entering it. */
769
769
  this.reentrant = false;
770
- /** track is an alias of capture (Segment familiarity). */
771
- this.track = this.capture.bind(this);
772
- /** captureException — @sentry-familiar alias of captureError. */
773
- this.captureException = this.captureError.bind(this);
774
770
  this.cfg = {
775
771
  host: DEFAULT_HOST,
776
772
  batchSize: 20,