Skip to content

v0.4.0

Choose a tag to compare

@B4PT0R B4PT0R released this 26 Mar 14:53
· 24 commits to main since this release

What's new

Removed

  • Pydantic interoperability (from_model, to_model, TypeCache)
  • JSON Schema export (json_schema) and field constraints
  • invalidate_all_computed() — use invalidate_computed() with no arguments
  • filter() / filtered() — redundant with native Python; also blocked those key names

Added

  • Query(path, value) primitive for combined path+value deep search
  • find() / found() on modict instances via Query or inline constraints
  • update(other=(), /, **kwargs) override routing all assignments through the validation pipeline

Fixed

  • popitem() now returns the last-inserted item (LIFO, matching native dict)
  • update() no longer lets CPython bypass __setitem__ validation

Changed

  • README rewritten: intro compares modict to dict, dataclass, TypedDict, Pydantic, attrs
  • All French inline comments translated to English
  • +120 tests covering all native dict methods and modict-specific ops