Skip to content

Releases: smart-social-contracts/ic-python-db

v0.7.9

13 Apr 22:01

Choose a tag to compare

Fixes

  • Relax requires-python from ==3.10.7 to >=3.10
  • Update test infrastructure for basilisk 0.11.x (type:custom dfx.json format)
  • Add basilisk upgrade + CPython template download to test entrypoint

v0.7.7

06 Apr 16:30

Choose a tag to compare

What's New

  • Auto-register Entity subclasses at class definition time (#6, #7)
    • Added __init_subclass__ to Entity so subclasses are automatically registered in Database._entity_types when the class is defined
    • Types defined before Database.init() are deferred and flushed when the DB is created
    • Eliminates the need for manual register_entity_type() boilerplate in canister startup code
    • 8 new tests for auto-registration behavior

Release v0.7.6

21 Mar 12:12

Choose a tag to compare

What's Changed

Full Changelog: v0.7.5...v0.7.6

Release v0.7.5

18 Mar 07:11

Choose a tag to compare

What's Changed

New Contributors

Full Changelog: v0.7.4...v0.7.5

Release v0.7.4

15 Mar 14:39

Choose a tag to compare

Release v0.7.3

14 Mar 14:43

Choose a tag to compare

v0.7.2

13 Mar 12:31

Choose a tag to compare

Fix ManyToOne MRO traversal for inherited reverse properties

  • ManyToOne.__set__ now uses getattr(value.__class__, self.reverse_name, None) instead of value.__class__.__dict__.get(self.reverse_name), correctly traversing the Method Resolution Order for inherited properties.
  • Fixes ValueError: Reverse property 'calls' not found when a subclass inherits a OneToMany relationship from a parent class.

Release v0.7.1

03 Mar 11:55

Choose a tag to compare

Release v0.7.0

28 Feb 19:37

Choose a tag to compare