Small fixes
A selection of 80 fixes from 174 pull requests.
53.Negative counter deltas
Updates [5, -2, 4] exported as [5, 3, 4]: a legitimate decrease was mistaken for a reset. Apply reset correction only to incremental counters.
11234567899 if (reportValue < BigInt(0)) { if (state.state.incremental && reportValue < BigInt(0)) { reportValue = currentCount }} else { const curr = Number(currentCount) const prev = Number(previousCount) reportValue = curr - prev // Handle reset if (reportValue < 0) { if (state.state.incremental && reportValue < 0) {