diff --git a/packages/telemetry/browser-telemetry/package.json b/packages/telemetry/browser-telemetry/package.json index 10ce7a5b9..d7180ec0a 100644 --- a/packages/telemetry/browser-telemetry/package.json +++ b/packages/telemetry/browser-telemetry/package.json @@ -43,10 +43,6 @@ "bugs": { "url": "https://github.com/launchdarkly/js-core/issues" }, - "dependencies": { - "rrweb": "2.0.0-alpha.4", - "tracekit": "0.4.6" - }, "devDependencies": { "@jest/globals": "^29.7.0", "@launchdarkly/js-client-sdk": "0.3.2", diff --git a/packages/telemetry/browser-telemetry/src/BrowserTelemetryImpl.ts b/packages/telemetry/browser-telemetry/src/BrowserTelemetryImpl.ts index 4facabebe..6de65b1ed 100644 --- a/packages/telemetry/browser-telemetry/src/BrowserTelemetryImpl.ts +++ b/packages/telemetry/browser-telemetry/src/BrowserTelemetryImpl.ts @@ -134,6 +134,7 @@ export default class BrowserTelemetryImpl implements BrowserTelemetry { this._pendingEvents.forEach((event) => { this._client?.track(event.type, event.data); }); + this._pendingEvents = []; } inspectors(): LDInspection[] {