change(tracker): 6.0.0

This commit is contained in:
nick-delirium 2023-03-29 18:25:56 +02:00
parent ea838c171b
commit 725b0d56ed
5 changed files with 9 additions and 7 deletions

View file

@ -221,7 +221,7 @@ export default class MessageManager {
fileReader.append(b)
const msgs: Array<Message> = []
for (let msg = fileReader.readNext();msg !== null;msg = fileReader.readNext()) {
msgs.push(msg)
msg && msgs.push(msg)
}
const sorted = msgs.sort((m1, m2) => {
// @ts-ignore

View file

@ -800,8 +800,9 @@ export default class RawMessageReader extends PrimitiveReader {
}
default:
throw new Error(`Unrecognizable message type: ${ tp }; Pointer at the position ${this.p} of ${this.buf.length}`)
return null;
console.error(`Unrecognizable message type: ${ tp }; Pointer at the position ${this.p} of ${this.buf.length}`)
// skipping unrecognized messages
return false;
}
}
}

View file

@ -30,8 +30,9 @@ export default class RawMessageReader extends PrimitiveReader {
}
<% end %>
default:
throw new Error(`Unrecognizable message type: ${ tp }; Pointer at the position ${this.p} of ${this.buf.length}`)
return null;
console.error(`Unrecognizable message type: ${ tp }; Pointer at the position ${this.p} of ${this.buf.length}`)
// skipping unrecognized messages
return false;
}
}
}

View file

@ -1,4 +1,4 @@
# 5.0.2
# 6.0.0
- Capture mouse thrashing, input hesitation+duration, click hesitation
- Capture DOM node drop event (>30% nodes removed)

View file

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