Skip to content

0.8.0

Choose a tag to compare

@allenporter allenporter released this 03 Aug 15:22
· 124 commits to main since this release

๐ŸŒŸ Release v0.8.0

This release introduces native support for in-progress (active) sleep sessions and improves sleep query indexing, alongside substantial CLI refactorings and test suite enhancements.

๐ŸŒ™ In-Progress Sleep Session Support (#64)

  • Active Sleep Deserialization: SessionTimeInterval.end_time, OutOfBedSegment.end_time, and SleepStage.end_time are now optional (str | None = None), allowing real-time ongoing sleep sessions (where endTime is null) to be deserialized without type errors.
  • is_in_progress Property: Added Sleep.is_in_progress helper property to easily detect whether a sleep session is actively ongoing.
  • Query Indexing Fix: Updated SLEEP DataType time filter path to sleep.interval.start_time. Queries via api.sleep.list(start_time=...) now return both completed and currently active sleep sessions.

๐Ÿ› ๏ธ CLI Refactoring & Test Infrastructure

  • Modular CLI Architecture: Refactored CLI commands and subcommands into structured submodules.
  • Aiohttp Integration Testing: Upgraded CLI tests to execute against a live aiohttp mock server rather than relying on monkeypatching.
  • Agent & Human DX: Enhanced dry-run execution, raw JSON payload handling, and field masking across all 36 supported Google Health API data types.

What's Changed

  • feat(sleep): support in-progress sleep sessions and query filtering by start_time (#64) by @allenporter in #66
  • refactor: Split CLI commands and tests into modular submodules by @allenporter in #60
  • test: Migrate CLI subcommand tests to use real SDK and aiohttp test server by @allenporter in #62
  • Toolchain & dependency updates (Ruff, Cruft) by @allenporter and @renovate[bot]

Full Changelog: 0.7.0...0.8.0