Skip to content

fit-file-parser v6.2.6 — Structural error positions

Choose a tag to compare

@jimmykane jimmykane released this 30 Oct 05:47
· 15 commits to main since this release

Fixed

  • Add byteOffset and the raw recordHeader byte to structural errors thrown by the record decoder: invalid headers, invalid or incomplete definitions, record bounds and compressed timestamp failures.
  • Retain localMessageType on missing-local-definition errors. Omit recordHeader when 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