v0.10.0 #810
RobertCraigie
started this conversation in
General
v0.10.0
#810
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
What's Changed
This release adds support for Pydantic v2 while maintaining backwards compatibility with Pydantic v1.
This should be a completely transparent change for the majority of users with one exception regarding
prisma.validate
.Due to this bug we can't use the new
TypeAdapter
concept in v2 and instead rely on thev1
re-exports, this has the implication that any errors raised by the validator will need to be caught using the v1ValidationError
type instead, e.g.Improved timeouts inputs
All timeout arguments now accept a
datetime.timedelta
instance as well as the previously acceptedint
/float
types, however support forint
/float
has been deprecated and will be removed in a future release.The previous values were used inconsistently, sometimes it meant seconds and sometimes it meant milliseconds. This new structure is more flexible and allows you to specify the time in whatever format you'd like. Thanks @jonathanblade!
Misc Changes
Thanks @zspine and @jonathanblade for contributing!
This discussion was created from the release v0.10.0.
Beta Was this translation helpful? Give feedback.
All reactions