Skip to content

Releases: wise0704/python-cs-events

v0.5.0

19 May 22:34
Compare
Choose a tag to compare

What's Changed

Full Changelog: v0.4.1...v0.5.0

v0.4.1

16 Apr 14:08
Compare
Choose a tag to compare

Changed:

  • @events now treats collection="" the same as collection=None.

Full Changelog: v0.4.0...v0.4.1

v0.4.0

28 Mar 18:10
Compare
Choose a tag to compare

Breaking Changes:

  • Module name cs_eventsevents.

Changed:

  • EventHandlerCollection now has __slots__.
  • Removed @final from Event to allow subclasses. @events decorator will not detect subclasses to generate fields as before.

Full Changelog: v0.3.0...v0.4.0

v0.3.0

10 Mar 03:43
Compare
Choose a tag to compare

Breaking Changes:

  • @events decorator
    • Argument prefix is removed.
    • The generated __init__ method will always call the original or the super __init__ method before assigning event fields.
    • Accepts both Event and event annotations simultaneously and generates necessary fields/properties if any is found.

Added:

  • event_key() can be used to use a different key when using the @events decorator for event properties.

Changed:

  • EventHandlerCollection is now @runtime_checkable.
  • @events will look for an annotation of type EventHandlerCollection if collection attribute name is not specified.
  • event() constructor also accepts a direct accessor tuple instead of a function returning an accessor tuple.

Full Changelog: v0.2.2...v0.3.0

v0.2.2

04 Mar 18:05
Compare
Choose a tag to compare

Fixed:

  • Fix private name resolution in @events#3

Full Changelog: v0.2.1...v0.2.2

v0.2.1

27 Feb 18:02
Compare
Choose a tag to compare

Fixed:

  • Fixed event name bug in @events#2

Full Changelog: v0.2.0...v0.2.1

v0.2.0

26 Feb 05:58
Compare
Choose a tag to compare

Added:

  • Added event class for event property support.
  • Added EventHandlerCollection, EventHandlerList, and EventHandlerDict.

Changed:

  • Decorator @events supports event properties.

Full Changelog: v0.1.0...v0.2.0

v0.1.0

23 Feb 02:39
Compare
Choose a tag to compare

Initial development release.