fit-file-parser 5.0.1 → 5.0.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -2,6 +2,15 @@
2
2
 
3
3
  ## Unreleased
4
4
 
5
+ ## 5.0.2
6
+
7
+ ### Fixed
8
+
9
+ - Clarify the 5.0 migration for standard session field 196: use canonical
10
+ `metabolic_calories` rather than the old duplicate `resting_calories` label.
11
+ - Clarify that the removed guessed `recovery_advisor` label was standard
12
+ session field 140, which the SDK defines as `avg_depth` in meters.
13
+
5
14
  ## 5.0.1
6
15
 
7
16
  ### Fixed
package/README.md CHANGED
@@ -54,14 +54,18 @@ SDK-backed names. Common migrations include:
54
54
  | `repeat_dive_time` | `repeat_dive_interval` |
55
55
  | `cadence_zone_high_boundary` | `cadence_zone_high_bondary` |
56
56
  | `HipSwingExcerciseName` | `HipSwingExerciseName` |
57
+ | `resting_calories` | `metabolic_calories` |
57
58
 
58
59
  The same alphanumeric-token rule applies to enum strings, for example
59
60
  `camera_orientation_90` becomes `camera_orientation90`, `po_2_warn` becomes
60
61
  `po2_warn`, and `power_3s` becomes `power3s`. The generated TypeScript
61
62
  declarations are the exhaustive name and value reference for the pinned SDK.
62
63
 
63
- The handwritten `resting_calories` and guessed `recovery_advisor` fields have
64
- no 5.0 replacement. Other behavior to account for during migration:
64
+ Parser 4 exposed standard session field 196 (`metabolic_calories`) a second
65
+ time as `resting_calories`; use the canonical `metabolic_calories` name in 5.0.
66
+ `recovery_advisor` was a guessed label for standard session field 140, whose
67
+ canonical SDK field is `avg_depth` in meters. Other behavior to account for
68
+ during migration:
65
69
 
66
70
  - `product_name` is emitted only when it exists in the FIT input. It is no
67
71
  longer inferred from `manufacturer` and `product`.
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "fit-file-parser",
3
3
  "type": "module",
4
- "version": "5.0.1",
4
+ "version": "5.0.2",
5
5
  "private": false,
6
6
  "description": "Parse your .FIT files easily, directly from JS (Garmin, Polar, Suunto)",
7
7
  "author": {