Added
- Adds Strava API changes, and datamodel-code-generator bug fix (jsamoocha, 333)
- Add: Replace full legacy model with extensions from the generated pydantic model (jsamoocha, 324)
- Add: Add support for lazy loading related entities (jsamoocha, 322)
- Add: Add support for nested model attributes(jsamoocha, 316)
- Add: replaces implementations for the classes Club, Gear, ActivityTotals, AthleteStats, and Athlete by the generated Pydantic model & backwards compatibility (jsamoocha, 315)
- Add: Workflow for updating strava model when the API changes (jsamoocha, 302)
- Add: `pydantic_autodoc` to sphinx build and reconfigure api structure - p1 (lwasser, 326)
Fixed
- Fix: Corrects attribute lookup for enum values (jsamoocha,329)
Deprecated
- The `BaseEntity` methods `deserialize()`, `from_dict()`, and `to_dict()` are deprecated and will raise a `DeprecationWarning` when they're used. They should be replaced by the pydantic methods `parse_obj()` and `dict()` or `json()`.
Removed
- The complete `attributes` module
- All the abstract entity types (e.g. `IdentifiableEntity`, `LoadableEntity`) from the `model` module
- Constants used for activity types such as `Activity.RIDE`
- `HeartrateActivityZone`, `PowerActivityZone`, `PaceActivityZone` as subtypes of `BaseActivityZone` (the latter is retained)
- Everything related to segment leaderboards as this is not supported by Strava anymore
Contributors to this release
jsamoocha, lwasser, oliverkurth