Skip to content

v0.3.0

Choose a tag to compare

@thecloudseeker thecloudseeker released this 16 Nov 21:24
· 151 commits to main since this release
3259eb9

Added

  • ActivityFiles.export produces encoded payloads with optional validation, normalization, and aggregated diagnostics in a single helper.
  • ActivityFiles.convertAndExport exposes the same workflow directly from raw sources, including optional validation.
  • ActivityFiles.exportAsync and convertAndExportStream mirror the export workflow off the UI thread and for streamed payloads.
  • ActivityExportRequest and ActivityFiles.runPipeline let callers describe parse → normalize → export pipelines with consistent isolate controls.
  • Diagnostic summary getters (warningCount, hasErrors,
    diagnosticsSummary, etc.) are now available on load, conversion, and export results to simplify UI surfacing.
  • ActivityProcessingStats and NormalizationStats capture normalization and validation metrics alongside export diagnostics.
  • Facade convenience wrappers expose common transforms (sortAndDedup,
    trimInvalid, smoothHeartRate, crop), structural validation, and channel snapshots.
  • RawActivity and RawActivityBuilder gained device metadata and namespace aware GPX extension support, enabling richer encoder output without custom glue.
  • DiagnosticsFormatter provides reusable helpers for summarising ParseDiagnostic collections across logs and UI surfaces.
  • Stream-aware builder/export helpers (builderFromStreams,
    convertAndExport with location/channels) accept timestamp/value tuples
    so backends can export without manual model translation.
  • ActivityFiles.registerSportMapper supplies pluggable sport inference and
    ships string/ID heuristics for common wearable categories.
  • GPX encoders honour builder-supplied metadata/track names and expose helper
    factories (gpxActivityLabelNode, gpxDeviceSummaryNode) for custom
    extensions with automatic namespace registration.

Changed

  • GPX encoder now emits device metadata and custom extensions, automatically declaring any additional namespaces used.
  • TCX encoder/parser preserve device metadata and custom extensions, and FIT files now round-trip device metadata, including explicit manufacturer/product identifiers supplied via ActivityDeviceMetadata.
  • ActivityFiles.convert and convertAndExport now accept exportInIsolate, bringing isolate offloading parity while ensuring FIT byte caches refresh when the encoded payload changes.

Fixed

  • RawEditor.markLapsByDistance now reports per-split distances correctly and
    always emits a trailing partial lap when applicable, ensuring summary totals
    stay accurate.
  • RawEditor.downsampleTime keeps the final point in the activity and performs
    sample matching without quadratic scans, avoiding data loss on closely spaced
    tracks.
  • Channel deduplication retains the most recent sample when multiple readings
    share the same timestamp instead of discarding later values.
  • ActivityFiles.channelSnapshot now uses binary search when resolving channel
    samples, reducing lookup cost from O(n) to O(log n) for large time-series
    streams.