@usermaven/sdk-js 1.5.10-rc.110 → 1.5.10-rc.112

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.
@@ -12,12 +12,17 @@ export declare class RetryQueue {
12
12
  private batchTimeoutId;
13
13
  private persistence;
14
14
  private isOnline;
15
- constructor(transport: Transport, maxRetries?: number, retryInterval?: number, batchSize?: number, batchInterval?: number, logger?: Logger, namespace?: string);
15
+ private maxQueueItems;
16
+ private maxQueueBytes;
17
+ private totalQueueBytes;
18
+ constructor(transport: Transport, maxRetries?: number, retryInterval?: number, batchSize?: number, batchInterval?: number, logger?: Logger, namespace?: string, maxQueueItems?: number, maxQueueBytes?: number);
16
19
  add(payload: any): void;
17
20
  private initNetworkListeners;
18
21
  private scheduleBatch;
19
22
  private processBatch;
20
23
  private handleBatchFailure;
24
+ private enforceQueueLimits;
25
+ private estimateItemBytes;
21
26
  private loadQueueFromStorage;
22
27
  private saveQueueToStorage;
23
28
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@usermaven/sdk-js",
3
- "version": "1.5.10-rc.110",
3
+ "version": "1.5.10-rc.112",
4
4
  "description": "Usermaven JavaScript SDK",
5
5
  "main": "dist/lib.js",
6
6
  "module": "dist/usermaven.es.js",
@@ -37,7 +37,6 @@
37
37
  "jsdom": "^25.0.1",
38
38
  "morgan": "^1.10.0",
39
39
  "playwright": "^1.40.0",
40
- "prettier": "^2.8.7",
41
40
  "typescript": "^5.0.3",
42
41
  "vite": "^5.4.8",
43
42
  "vite-plugin-dts": "^4.2.3",
@@ -57,7 +56,7 @@
57
56
  "test:e2e:ui": "npm run build && playwright test --ui --config=./playwright.local.config.ts",
58
57
  "test:browserstack": "npx browserstack-node-sdk playwright test --config=./playwright.config.ts",
59
58
  "lint": "eslint . --ext .ts",
60
- "format": "prettier --write \"src/**/*.ts\"",
59
+ "format": "biome format --write .",
61
60
  "mock": "wait-on dist/lib.js && node server/mockServer.js",
62
61
  "example:build": "tsc examples/test.ts --outDir examples",
63
62
  "example:serve": "wait-on dist/lib.js && vite --config vite.config.ts",