✨ Stravalib Release -- v2.0 ✨ #561
lwasser
announced in
Announcements
Replies: 1 comment 1 reply
-
All - stravalib 2.0 is now out. it should be pushed to pypi within the next few minutes!! once it is there, please test it out!! release notes are above!! ✨ |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
v2.0.0
Attention users: breaking changes + many enhancements!
Major Changes in This Release
Breaking: Added support for Pydantic 2.x; 1.x behavior is no longer supported.
Refer to Pydantic’s V2 migration guide
if you use extensions of Stravalib model classes or Pydantic’s serialization
mechanisms (
parse_obj()
,dict()
,json()
).Removed deprecated (de-)serialization methods
deserialize()
,from_dict()
,and
to_dict()
. Use Pydantic’s serialization mechanisms.Renamed
unithelper
module tounit_helper
. Helper functions likefeet()
and
miles()
now return a PintQuantity
object.Introduced new types for distances, velocities, durations, and time zones.
activity.distance
now returns aDistance
type. Retrieve distance in meterswith
activity.distance
or as aQuantity
usingactivity.distance.quantity
.Please see the migration guide in our docs for more details on the changes.
Added
naive_datetime()
test to thepydantic-v2 branch
. (@bmeares, Addnaive_datetime()
test to thepydantic-v2
branch. #522)Fixed
unithelper.py
-->unit_helper.py
(@lwasser, Rename unithelper ... #535)Removed
Contributors to this release
@jsamoocha, @lwasser, @bmeares
naive_datetime()
test to thepydantic-v2
branch. #522 ✨Full Changelog: v1.7...v2.0
This discussion was created from the release ✨ Stravalib Release -- v2.0 ✨ .
Beta Was this translation helpful? Give feedback.
All reactions