tracker: release 15.0.5-beta.1

This commit is contained in:
nick-delirium 2025-02-20 17:58:06 +01:00
parent da9b926b25
commit bf56cc53a7
No known key found for this signature in database
GPG key ID: 93ABD695DF5FDBA0
4 changed files with 10 additions and 11 deletions

View file

@ -3,6 +3,7 @@
- update medv/finder to 4.0.2 for better support of css-in-js libs
- fixes for single tab recording
- add option to disable network completely `{ network: { disabled: true } }`
- fix for batching during offline recording syncs
## 15.0.4

View file

@ -1,7 +1,7 @@
{
"name": "@openreplay/tracker",
"description": "The OpenReplay tracker main package",
"version": "15.0.5",
"version": "15.0.5-beta.1",
"keywords": [
"logging",
"replay"

View file

@ -918,7 +918,6 @@ export default class App {
private postToWorker(messages: Array<Message>) {
this.worker?.postMessage(messages)
this.commitCallbacks.forEach((cb) => cb(messages))
//messages.length = 0
}
private delay = 0
@ -1639,20 +1638,19 @@ export default class App {
flushBuffer = async (buffer: Message[]) => {
return new Promise((res) => {
if (buffer.length === 0) {
res(null);
return;
res(null)
return
}
// Since the first element is always a Timestamp, include it by default.
let endIndex = 1;
// Continue until you hit another Timestamp or run out of messages.
let endIndex = 1
while (endIndex < buffer.length && buffer[endIndex][0] !== MType.Timestamp) {
endIndex++;
endIndex++
}
const messagesBatch = buffer.splice(0, endIndex);
this.postToWorker(messagesBatch);
res(null);
const messagesBatch = buffer.splice(0, endIndex)
this.postToWorker(messagesBatch)
res(null)
})
}

View file

@ -1,4 +1,4 @@
import App, { DEFAULT_INGEST_POINT } from './app/index.js'
import App from './app/index.js'
export { default as App } from './app/index.js'