Skip to content

Release 4.1.0

Choose a tag to compare

@github-actions github-actions released this 01 Aug 21:48
· 13 commits to main since this release

4.1.0 (2026-08-01)

Features

  • add MindfulnessSession record (bumps connect-client to 1.1.0 stable) (#256) (455dc2d)

Adds support for the MindfulnessSession record type and moves the Android
dependency from connect-client:1.1.0-alpha11 to stable 1.1.0.

MindfulnessSession

await insertRecords([
  {
    recordType: 'MindfulnessSession',
    startTime: '2026-08-01T10:00:00.000Z',
    endTime: '2026-08-01T10:20:00.000Z',
    mindfulnessSessionType: MindfulnessSessionType.MEDITATION,
    title: 'Morning meditation',
  },
]);
  • New MindfulnessSessionType constant: UNKNOWN, MEDITATION, BREATHING,
    MUSIC, MOVEMENT, UNGUIDED.
  • Requires android.permission.health.READ_MINDFULNESS / WRITE_MINDFULNESS.
  • Aggregation is not supported for this record type by Health Connect.
  • Still experimental upstream (ExperimentalMindfulnessSessionApi in
    connect-client:1.1.0) — fields and permissions may change, and it may not be
    available on every device or Health Connect version.

Health Connect 1.1.0

The Metadata constructor is now internal, so id, dataOrigin and
lastModifiedTime are assigned by Health Connect on write and ignored if
supplied from JS. recordingMethod, clientRecordId, clientRecordVersion
and device are unaffected, as is metadata on read.

Docs and the example app cover the new record type.