Skip to content

Commit 098989e

Browse files
ashwin153Gobot1234
andauthored
Bump version to 2.0.0b6 (#500)
Co-authored-by: James Hilton-Balfe <[email protected]>
1 parent 182aeda commit 098989e

File tree

2 files changed

+23
-1
lines changed

2 files changed

+23
-1
lines changed

CHANGELOG.md

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,28 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
77

88
- Versions suffixed with `b*` are in `beta` and can be installed with `pip install --pre betterproto`.
99

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+
1032
## [2.0.0b5] - 2022-08-01
1133

1234
- **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)

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[tool.poetry]
22
name = "betterproto"
3-
version = "2.0.0b5"
3+
version = "2.0.0b6"
44
description = "A better Protobuf / gRPC generator & library"
55
authors = ["Daniel G. Taylor <[email protected]>"]
66
readme = "README.md"

0 commit comments

Comments
 (0)