@openreplay/tracker 18.1.2 → 18.1.4

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.
@@ -163,7 +163,6 @@ export default class App {
163
163
  private worker?;
164
164
  attributeSender: AttributeSender;
165
165
  socketMode: boolean;
166
- private compressionThreshold;
167
166
  private readonly bc;
168
167
  private readonly contextId;
169
168
  private canvasRecorder;
@@ -12,24 +12,16 @@ type Start = {
12
12
  url: string;
13
13
  tabId: string;
14
14
  localDebug?: boolean;
15
+ compressionThreshold?: number;
15
16
  } & Options;
16
17
  type Auth = {
17
18
  type: 'auth';
18
19
  token: string;
19
20
  beaconSizeLimit?: number;
20
21
  protocolVersion?: number;
22
+ compressionThreshold?: number;
21
23
  };
22
- export type ToWorkerData = null | 'stop' | Start | Auth | Array<Message> | {
23
- type: 'compressed';
24
- batch: Uint8Array;
25
- dataType: DataType;
26
- split?: number;
27
- } | {
28
- type: 'uncompressed';
29
- batch: Uint8Array;
30
- dataType: DataType;
31
- split?: number;
32
- } | 'forceFlushBatch' | 'closing' | 'check_queue';
24
+ export type ToWorkerData = null | 'stop' | Start | Auth | Array<Message> | 'forceFlushBatch' | 'closing' | 'check_queue';
33
25
  type Failure = {
34
26
  type: 'failure';
35
27
  reason: string;
@@ -42,10 +34,5 @@ type LocalSave = {
42
34
  name: string;
43
35
  batch: Uint8Array;
44
36
  };
45
- export type FromWorkerData = 'a_stop' | 'a_start' | Failure | 'not_init' | {
46
- type: 'compress';
47
- batch: Uint8Array;
48
- dataType: DataType;
49
- split?: number;
50
- } | QEmpty | LocalSave;
37
+ export type FromWorkerData = 'a_stop' | 'a_start' | Failure | 'not_init' | QEmpty | LocalSave;
51
38
  export {};
@@ -163,7 +163,6 @@ export default class App {
163
163
  private worker?;
164
164
  attributeSender: AttributeSender;
165
165
  socketMode: boolean;
166
- private compressionThreshold;
167
166
  private readonly bc;
168
167
  private readonly contextId;
169
168
  private canvasRecorder;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@openreplay/tracker",
3
3
  "description": "The OpenReplay tracker main package",
4
- "version": "18.1.2",
4
+ "version": "18.1.4",
5
5
  "keywords": [
6
6
  "logging",
7
7
  "replay"
@@ -43,40 +43,41 @@
43
43
  "build:common": "tsc -b src/common",
44
44
  "compile": "tsc --project src/main/tsconfig.json",
45
45
  "create-types": "mkdir dist/lib/ dist/cjs && cp -r dist/types/* dist/lib/ && cp -r dist/types/* dist/cjs/",
46
- "build": "bun run clean && bun compile && bun create-types && rollup --config rollup.config.js",
46
+ "build": "bun run clean && bun run compile && bun run create-types && rollup --config rollup.config.js",
47
+ "build:fast": "bun run compile && rollup --config rollup.config.js",
47
48
  "test": "jest --coverage=false",
48
49
  "test:ci": "jest --coverage=true",
49
50
  "postversion": "bun run build",
50
51
  "prepublishOnly": "bun run test && bun run build"
51
52
  },
52
53
  "devDependencies": {
53
- "@babel/core": "^7.29.0",
54
- "@jest/globals": "^29.7.0",
54
+ "@babel/core": "^7.29.7",
55
+ "@babel/plugin-transform-modules-commonjs": "^7.29.7",
56
+ "@jest/globals": "^30.4.1",
55
57
  "@rollup/plugin-babel": "^6.1.0",
56
- "@rollup/plugin-commonjs": "^29.0.0",
58
+ "@rollup/plugin-commonjs": "^29.0.3",
57
59
  "@rollup/plugin-node-resolve": "^16.0.3",
58
60
  "@rollup/plugin-replace": "^6.0.3",
59
- "@rollup/plugin-terser": "0.4.4",
61
+ "@rollup/plugin-terser": "^1.0.0",
60
62
  "@rollup/plugin-typescript": "^12.3.0",
61
- "@typescript-eslint/eslint-plugin": "^8.54.0",
62
- "@typescript-eslint/parser": "^8.54.0",
63
- "eslint": "^9.39.2",
64
- "eslint-config-prettier": "^9.1.0",
65
- "eslint-plugin-prettier": "^5.5.5",
66
- "jest": "^30.2.0",
67
- "jest-environment-jsdom": "^30.2.0",
68
- "prettier": "^3.8.1",
69
- "replace-in-files": "^2.0.3",
70
- "rollup": "^4.57.1",
63
+ "@typescript-eslint/eslint-plugin": "^8.65.0",
64
+ "@typescript-eslint/parser": "^8.65.0",
65
+ "eslint": "^9.39.5",
66
+ "eslint-config-prettier": "^10.1.8",
67
+ "eslint-plugin-prettier": "^5.5.6",
68
+ "jest": "^30.4.2",
69
+ "jest-environment-jsdom": "^30.4.1",
70
+ "prettier": "^3.9.6",
71
+ "rollup": "^4.62.3",
71
72
  "semver": "^6.3.0",
72
- "ts-jest": "^29.4.6",
73
+ "ts-jest": "^29.4.12",
73
74
  "tslib": "^2.8.1",
74
75
  "typescript": "^5.9.3"
75
76
  },
76
77
  "dependencies": {
77
78
  "@openreplay/network-proxy": "^1.2.5",
78
79
  "error-stack-parser-es": "2.0.1",
79
- "web-vitals": "^5.1.0"
80
+ "web-vitals": "^5.3.0"
80
81
  },
81
82
  "engines": {
82
83
  "node": ">=14.0"