You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Sep 9, 2026. It is now read-only.
Repository navigation
This repository was archived by the owner on Sep 9, 2026. It is now read-only.
This release contains 3 bug fixes and 4 documentation improvements, including 1 breaking change.
馃挜 Breaking Changes
Changes to the return type of DocList.to_json() and DocVec.to_json()
In order to make the to_json method consistent across different classes, we changed its return type in DocList and DocVec to str.
This means that, if you use this method in your application, make sure to update your codebase to expect str instead of bytes.
馃悶 Bug Fixes
Make DocList.to_json() and DocVec.to_json() return str instead of bytes (#1769)
This release changes the return type of the methods DocList.to_json() and DocVec.to_json() in order to be consistent with BaseDoc .to_json() and other pydantic models. After this release, these methods will return str type data instead of bytes.
馃挜 Since the return type is changed, this is considered a breaking change.
This release introduces type casting internally in the reduce helper function, casting its inputs before appending them to the final result. This will make it possible to reduce documents whose schemas are compatible but not exactly the same.
Skip doc attributes in __annotations__ but not in __fields__ (#1777)
This release fixes an issue in the create_pure_python_type_model helper function. Starting with this release, only attributes in the class __fields__ will be considered during type creation.
The previous behavior broke applications when users introduced a ClassVar in an input class:
This release changes the return type of the methods DocList.to_json() and DocVec.to_json() in order to be consistent with BaseDoc .to_json() and other pydantic models. After this release, these methods will return str type data instead of bytes.
馃挜 Since the return type is changed, this is considered a breaking change.
Activity
scott-martens commentedon Sep 7, 2023
This release contains 3 bug fixes and 4 documentation improvements, including 1 breaking change.
scott-martens commentedon Sep 7, 2023
This release changes the return type of the methods
DocList.to_json()andDocVec.to_json()in order to be consistent withBaseDoc .to_json()and other pydantic models. After this release, these methods will returnstrtype data instead ofbytes.馃挜 Since the return type is changed, this is considered a breaking change.
JoanFM commentedon Sep 7, 2023
Since this is a brraking change @alaeddine-13 , I will release a minor and not a patch
JoanFM commentedon Sep 7, 2023
Add a clear list of breaking changes as we have done before. I believe @JohannesMessner did something on some release notes in the past
JohannesMessner commentedon Sep 7, 2023
I did it exactly like it is done right now, except using 馃挜 instead of 馃挘