Skip to content

Releases: timrburnham/paperjson

Release list

v0.2.0

Choose a tag to compare

@timrburnham timrburnham released this 21 May 04:09

Breaking changes

  • SerdesBasePaperJsonBase — inherit from PaperJsonBase for type-safe to_json() / from_json().
  • SerdesProtocolPaperJsonProtocol — use in type annotations for structural typing.
  • Removed .pyi type stub files.

Docs & DX

  • Added Overview section to the README explaining automatic type stringification (the round-trip str() fallback).
  • Updated docstrings across the codebase to reflect the new class names.

Infrastructure

  • Bumped CI workflow actions: actions/checkout@v4v6, astral-sh/setup-uv@v5v8.1.0.

v0.1.0

Choose a tag to compare

@timrburnham timrburnham released this 19 May 05:06

v0.1.0 — Initial release

paperjson is a paper-thin JSON serialization/deserialization library for Python dataclasses.

  • SerdesBase — inherit for full type-checker/LSP support with to_json() / from_json()
  • @serdes decorator — inject methods at runtime without a base class
  • SerdesProtocol — use in type annotations for structural typing
  • register_serializer / register_deserializer — add custom type support
  • Built-in support for datetime, Path, Decimal, and nested dataclasses