@stacksjs/mobile 0.75.160 → 0.75.161

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/README.md CHANGED
@@ -88,7 +88,10 @@ heart rate and elevation, keyed on HealthKit's UUID so an import can be run
88
88
  again without duplicating. `health.getDailyStatistics(type)` returns one value
89
89
  per local day: a sum for `steps`, `activeEnergy` and `distance`, an average for
90
90
  `heartRate`, `restingHeartRate` and `heartRateVariability`, the latest
91
- `bodyMass`, and hours asleep for `sleep`, counted on the day you woke.
91
+ `bodyMass`, and hours asleep for `sleep`, counted on the day you woke. What a
92
+ food log (MyFitnessPal, Lose It!, Cronometer) writes there comes in as a day's
93
+ sum too: kcal for `dietaryEnergy`, grams for `dietaryProtein`,
94
+ `dietaryCarbohydrates` and `dietaryFat`. Those four are read only.
92
95
 
93
96
  ```ts
94
97
  import { health } from '@stacksjs/mobile'
package/dist/index.d.ts CHANGED
@@ -1779,7 +1779,12 @@ type HealthDataType = | 'steps'
1779
1779
  | 'restingHeartRate'
1780
1780
  | 'heartRateVariability'
1781
1781
  | 'bodyMass'
1782
- | 'sleep';
1782
+ | 'sleep'
1783
+ /** Food logged by any app, per day: kcal eaten, then grams of protein, carbohydrate and fat. Read only (Craft 0.0.160). */
1784
+ | 'dietaryEnergy'
1785
+ | 'dietaryProtein'
1786
+ | 'dietaryCarbohydrates'
1787
+ | 'dietaryFat';
1783
1788
  /** The types with one value per day. `sleep` is hours asleep, counted on the day you woke. */
1784
1789
  type HealthDailyType = Exclude<HealthDataType, 'workouts'>;
1785
1790
  type HealthWorkoutType = 'running' | 'walking' | 'hiking' | 'cycling';
package/dist/types.d.ts CHANGED
@@ -551,7 +551,12 @@ export type HealthDataType = | 'steps'
551
551
  | 'restingHeartRate'
552
552
  | 'heartRateVariability'
553
553
  | 'bodyMass'
554
- | 'sleep';
554
+ | 'sleep'
555
+ /** Food logged by any app, per day: kcal eaten, then grams of protein, carbohydrate and fat. Read only (Craft 0.0.160). */
556
+ | 'dietaryEnergy'
557
+ | 'dietaryProtein'
558
+ | 'dietaryCarbohydrates'
559
+ | 'dietaryFat';
555
560
  /** The types with one value per day. `sleep` is hours asleep, counted on the day you woke. */
556
561
  export type HealthDailyType = Exclude<HealthDataType, 'workouts'>;
557
562
  export type HealthWorkoutType = 'running' | 'walking' | 'hiking' | 'cycling';
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@stacksjs/mobile",
3
3
  "type": "module",
4
4
  "sideEffects": false,
5
- "version": "0.75.160",
5
+ "version": "0.75.161",
6
6
  "description": "Craft-powered native mobile runtime for Stacks and STX applications",
7
7
  "author": "Chris Breuer",
8
8
  "license": "MIT",
@@ -38,11 +38,11 @@
38
38
  "test": "bun test"
39
39
  },
40
40
  "dependencies": {
41
- "@stacksjs/types": "0.75.160",
42
- "craft-native": ">=0.0.158"
41
+ "@stacksjs/types": "0.75.161",
42
+ "craft-native": ">=0.0.160"
43
43
  },
44
44
  "devDependencies": {
45
- "@stacksjs/build": "0.75.160",
45
+ "@stacksjs/build": "0.75.161",
46
46
  "better-dx": "^0.2.24"
47
47
  }
48
48
  }