diff --git a/CHANGELOG.md b/CHANGELOG.md index dd0a26d..a625fea 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,11 +1,19 @@ # Changelog -## Unreleased +## 0.10.0 Breaking changes: - `client.integrations` is gone: `sync`, `status` and `disconnect`, with the types `IntegrationProvider`, `SyncProvider`, `IntegrationStatusDetail`, `IntegrationStatusResponse`, `IntegrationSyncResult`, `IntegrationSyncResponse` and `IntegrationDisconnectResponse`. The API no longer takes another app's intervals.icu access token: intervals.icu's API Terms, in force from 31 December 2026, have each developer use its credentials only for its own app (3.3) and bar sharing or transferring them (4.2, 10.2). Send an athlete's workouts from another platform with `activities.import_activities`. The error codes `invalid_provider`, `integration_not_found`, `sync_error`, `status_error` and `disconnect_error` leave the catalog with them. +Fixed: + +- A 200 with an empty or non-JSON body raises `SaturdayError` with code `invalid_response`; it raised `json.JSONDecodeError`. +- Every typed error carries the `Retry-After` value in `retry_after`; 4xx errors always reported `None`. +- An empty path segment (`athletes.get("")`) raises `ValueError` before any request; it requested the collection route. +- Two docstrings named the builtin `PermissionError`; the SDK raises `PermissionDeniedError`. +- The README resource table lists `athletes.create_onboarding_link`. + ## 0.9.0 Breaking changes: diff --git a/pyproject.toml b/pyproject.toml index e7f208f..b22c65c 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -4,7 +4,7 @@ build-backend = "hatchling.build" [project] name = "saturday" -version = "0.9.0" +version = "0.10.0" description = "Official Python SDK for the Saturday Nutrition Intelligence API" readme = "README.md" license = "MIT" diff --git a/saturday/client.py b/saturday/client.py index dc5f01c..0ce7274 100644 --- a/saturday/client.py +++ b/saturday/client.py @@ -75,7 +75,7 @@ WebhookTestResponse, ) -SDK_VERSION = "0.9.0" +SDK_VERSION = "0.10.0" DEFAULT_BASE_URL = "https://api.saturday.fit" DEFAULT_TIMEOUT = 30.0 DEFAULT_MAX_RETRIES = 3