Skip to content

Releases: yukinarit/pyserde

v0.10.7

27 May 10:21
a9f44d5
Compare
Choose a tag to compare

What's Changed

Bug fixes

Refactoring

Documentation

Other changes

New Contributors

Full Changelog: v0.10.6...v0.10.7

v0.10.6

20 May 06:34
07f0cdc
Compare
Choose a tag to compare

What's Changed

Bug fixes

Full Changelog: v0.10.5...v0.10.6

v0.10.5

13 May 02:00
e2c8740
Compare
Choose a tag to compare

What's Changed

Bug fixes

Documentation

Full Changelog: v0.10.4...v0.10.5

v0.10.4

26 Mar 12:13
2c24ce0
Compare
Choose a tag to compare

What's Changed

New features

Full Changelog: v0.10.3...v0.10.4

v0.10.3

25 Mar 14:16
a442e7e
Compare
Choose a tag to compare

What's Changed

Bug fixes

Documentation

New Contributors

Full Changelog: v0.10.2...v0.10.3

v0.10.2

03 Mar 12:50
4d66e94
Compare
Choose a tag to compare

What's Changed

Bug fixes

  • Add type annotations to from_dict, from_tuple and from_msgpack by @yukinarit in #325

Refactoring

Full Changelog: v0.10.1...v0.10.2

v0.10.1

02 Mar 11:47
0a597e5
Compare
Choose a tag to compare

What's Changed

Bug fixes

Full Changelog: v0.10.0...v0.10.1

v0.10.0

24 Feb 09:38
322805f
Compare
Choose a tag to compare

What's Changed

New features

pyserde can (de)serialize dataclasses without @serde since v0.10.0. This feature is convenient when you want to use classes declared in external libraries or a type checker doesn't work with @serde decorator. See this example. Thanks @Kobzol!

@dataclass
class Foo:
    i: int
    s: str
    f: float
    b: bool


f = Foo(i=10, s='foo', f=100.0, b=True)
print(f"Into Json: {to_json(f)}")

s = '{"i": 10, "s": "foo", "f": 100.0, "b": true}'
print(f"From Json: {from_json(Foo, s)}")
  • Generate serialization/deserialization code for dataclasses not marked with @serde by @Kobzol in #312
  • Use default options for unmarked dataclass code generation by @Kobzol in #314
  • Allow serializing and deserializing root dataclasses by @Kobzol in #315

Bug fixes

  • Fix deserialization with NewType and Untagged Union by @yukinarit in #313

CI

  • Set commit author and title for commits in gh-pages by @yukinarit in #316

Documentation

New Contributors

Full Changelog: v0.9.8...v0.10.0

v0.9.8

20 Feb 11:24
6ad29b4
Compare
Choose a tag to compare

What's Changed

New features

CI

Other changes

Full Changelog: v0.9.7...v0.9.8

v0.9.7

15 Dec 08:39
Compare
Choose a tag to compare

A bug for optional unions was fixed, Thanks @soaxelbrooke!

@serde
@dataclass(frozen=True)
class Bar:
    request: Optional[Union[str, int]]
  • docs: add @soaxelbrooke as a contributor (063e705)
  • Add support for optional unions (075949b)
  • Add typing-utils for compatibility with python ver < 3.8 (620b9f6)
  • Rely on compay.get_args instead of adding dependency (d93f894)