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
Copy file name to clipboardExpand all lines: CHANGELOG.md
+22Lines changed: 22 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -7,6 +7,28 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
7
7
8
8
- Versions suffixed with `b*` are in `beta` and can be installed with `pip install --pre betterproto`.
9
9
10
+
## [2.0.0b6] - 2023-06-25
11
+
12
+
-**Breaking**: the minimum Python version has been bumped to `3.7`[#444](https://github.com/danielgtaylor/python-betterproto/pull/444)
13
+
14
+
- Support generating [Pydantic dataclasses](https://docs.pydantic.dev/latest/usage/dataclasses).
15
+
Pydantic dataclasses are are drop-in replacement for dataclasses in the standard library that additionally supports validation.
16
+
Pass `--python_betterproto_opt=pydantic_dataclasses` to enable this feature.
17
+
Refer to [#406](https://github.com/danielgtaylor/python-betterproto/pull/406)
18
+
and [README.md](https://github.com/danielgtaylor/python-betterproto#generating-pydantic-models) for more information.
19
+
20
+
- Added support for `@generated` marker [#382](https://github.com/danielgtaylor/python-betterproto/pull/382)
21
+
- Pull down the `include_default_values` argument to `to_json()`[#405](https://github.com/danielgtaylor/python-betterproto/pull/405)
22
+
- Pythonize input_type name in py_input_message [#436](https://github.com/danielgtaylor/python-betterproto/pull/436)
23
+
- Widen `from_dict()` to accept any `Mapping`[#451](https://github.com/danielgtaylor/python-betterproto/pull/451)
24
+
- Replace `pkg_resources` with `importlib`[#462](https://github.com/danielgtaylor/python-betterproto/pull/462)
25
+
26
+
- Fix typechecker compatiblity checks in server streaming methods [#413](https://github.com/danielgtaylor/python-betterproto/pull/413)
27
+
- Fix "empty-valued" repeated fields not being serialised [#417](https://github.com/danielgtaylor/python-betterproto/pull/417)
28
+
- Fix `dict` encoding for timezone-aware `datetimes`[#468](https://github.com/danielgtaylor/python-betterproto/pull/468)
29
+
- Fix `to_pydict()` serialization for optional fields [#495](https://github.com/danielgtaylor/python-betterproto/pull/495)
30
+
- Handle empty value objects properly [#481](https://github.com/danielgtaylor/python-betterproto/pull/481)
31
+
10
32
## [2.0.0b5] - 2022-08-01
11
33
12
34
-**Breaking**: Client and Service Stubs no longer pack and unpack the input message fields as parameters [#331](https://github.com/danielgtaylor/python-betterproto/pull/311)
0 commit comments