Skip to content

fit-file-parser v6.2.2 — Restore bounded device-header compatibility

Choose a tag to compare

@jimmykane jimmykane released this 11 Oct 14:14
· 20 commits to main since this release

Fixed

  • Restore activity decoding for existing Bryton and Magene FIT files that set reserved bit 4 in normal record headers. These files were readable before 5.2.0.
  • Require complete definitions and native/developer payloads for messages using this compatibility behavior, without modifying the original bytes.

Compatibility

  • Strict mode, full raw-message retention, and the standalone raw reader continue rejecting reserved header bits. The other reserved data-header bit remains invalid in all modes.
  • Checksum validation continues to follow force. No parser options, output fields, or public API signatures changed.
  • Retry previously rejected originals after upgrading. Existing successful imports require no migration.

Validation

  • All 238 tests across 28 test files pass, including ordinary/strict/raw modes, malformed definitions, truncated payloads, developer fields, compressed timestamps, checksum policy, and concatenated-file isolation.
  • CI passes on Node.js 20, 22, 24, and 25, including builds, lint, type checks, and profile checks.
  • Compared 1,563 private FIT originals against 6.2.1: the two previously rejected files recover, with 4,272 and 4,169 records; the other 1,561 outputs are identical. No new failures.