From 1e0701fd6bd0bf76ac7bf6743ee1c0cbe6aac746 Mon Sep 17 00:00:00 2001 From: goenning Date: Sun, 2 Apr 2023 13:48:59 +0100 Subject: [PATCH] v2 --- README.md | 4 ++-- package.json | 2 +- src/index.ts | 2 -- 3 files changed, 3 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index 1123a89..570c968 100644 --- a/README.md +++ b/README.md @@ -32,9 +32,9 @@ import { init } from "@aptabase/web"; init(""); // 👈 this is where you enter your App Key ``` -The init function also supports an optional second parameter, which is an object with the `appVersion` and `appBuildNumber` properties. +The init function also supports an optional second parameter, which is an object with the `appVersion` property. -It's up to you to decide what to get the values to use on these properties, but it's generally recommended to use your bundler (like Webpack, Vite, Rollup, etc.) to inject the values at build time. +It's up to you to decide what to get the version of your app, but it's generally recommended to use your bundler (like Webpack, Vite, Rollup, etc.) to inject the values at build time. Afterwards you can start tracking events with `trackEvent`: diff --git a/package.json b/package.json index 8a9e4d5..f6a5931 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@aptabase/web", - "version": "0.0.1", + "version": "0.0.2", "private": false, "description": "JavaScript SDK for Aptabase: Privacy-first and simple analytics for apps", "browser": "dist/index.js", diff --git a/src/index.ts b/src/index.ts index 8a905d0..d5206dd 100644 --- a/src/index.ts +++ b/src/index.ts @@ -5,7 +5,6 @@ const sdkVersion = "aptabase-web@env.PKG_VERSION"; export type AptabaseOptions = { appVersion?: string; - appBuildNumber?: string; }; let _appKey = ""; @@ -55,7 +54,6 @@ export function trackEvent( systemProps: { locale: _locale, appVersion: _options?.appVersion ?? "", - appBuildNumber: _options?.appBuildNumber ?? "", sdkVersion, }, props: props,