Skip to content

Releases: TheWii/integrity

v0.9.0

02 Aug 03:19
Compare
Choose a tag to compare

Feature

  • Add function hooks. A hook is a special location in a function that allows for external commands to be inserted for customization purposes. It differs from the usual append and prepend operations as it's possible to create a hook anywhere, including between nested commands. Use the Hook API to create and use function hooks. (060c78c)
from integrity import Hook

function ./load:
    say Loading data pack.
    Hook.create("load")
    as @a[tag=!first_load]:
        Hook.create("player:first_load")
        tag @s add first_load
    say Loaded!

with Hook.at("load"):
    scoreboard players reset @a obj.test

with Hook.at("player:first_load"):
    tag @s abc.testing
    say I am nice.

v0.8.0

18 Jun 00:38
Compare
Choose a tag to compare

Feature

  • Component method decorators (af94217)

Fix

  • Incorrect dependency versioning (ef1e1c8)

v0.7.1

30 Apr 01:19
Compare
Choose a tag to compare

Fix

  • Update mecha.contrib.bolt to bolt (0269a85)

Documentation

  • Change mecha.contrib.bolt (4ee6f74)

v0.7.0

22 Apr 22:17
Compare
Choose a tag to compare

Feature

  • Bind bolt functions to components with setmethod (e3857f8)
  • Components now behave like dicts for setting/getting the data field (f34e942)

Documentation

v0.6.1

13 Apr 20:44
Compare
Choose a tag to compare

Fix

  • Incorrect dependency versioning. (8eae45b)

v0.6.0

12 Apr 21:42
Compare
Choose a tag to compare

Feature

  • Function tags for Component.on with tags argument (367dda3)

v0.5.0

12 Apr 15:06
Compare
Choose a tag to compare

Feature

  • Component functions are event-based. (aba8e55)

v0.4.0

10 Apr 19:49
Compare
Choose a tag to compare

Feature

  • Ability to enforce function paths when using Component.on. (8ebef8f)
  • Create components at specific paths by using the path parameter. (ad07f1d)

v0.3.0

09 Apr 16:03
Compare
Choose a tag to compare

Feature

Documentation