Repository navigation
fit-file-parser v6.2.6 — Structural error positions
Fixed
- Add
byteOffsetand the rawrecordHeaderbyte to structural errors thrown by the record decoder: invalid headers, invalid or incomplete definitions, record bounds and compressed timestamp failures. - Retain
localMessageTypeon missing-local-definition errors. OmitrecordHeaderwhen the attempted position is outside the FIT data section. - Preserve input-relative offsets across Buffer views and preceding files in
parseFilesAsync().
Migration
No data migration or historical activity reparse is required. Consumers investigating rejected files can inspect the additional properties after updating. The reported position is where decoding stopped and may follow the malformed record that caused the misalignment.
Compatibility
Existing error messages, callback behavior, successful decoded output and validation remain unchanged. File-level validation errors retain their existing representation. The parser continues rejecting malformed input without automatically skipping bytes or repairing source data. Array decoding is unchanged.
Full changelog: v6.2.5...v6.2.6