Skip to content

Version 0.15.6

Compare
Choose a tag to compare
@pengwyn pengwyn released this 01 Jun 05:19
· 1344 commits to main since this release

New Features

  • Zef repo has been open-sourced under the Apache License 2.0.

  • New traversal syntax...

    • Instead of z >> RT.Something use z | Out[RT.Something]
    • Instead of z >> L[RT.Something] use z | Outs[RT.Something]
    • Instead of z < RT.Something use z | in_rel[RT.Something]
  • The traversal operators now can take another argument to filter on the target/source, e.g. z | Outs[RT.Something][ET.SpecificEntity].

  • PyPI packages. Zef can now be installed via pip install zef.

  • General movement from predicates to types:

    • is_a compares its argument to a type.
    • Use Is[<predicate>] to create a type which is the set of all items where the predicate is satisfied.
  • pattern matching with the match operator. match_apply has been retired, if a constant value is to be returned this is easily done with a lambda.

  • the Pattern function: returns a ValueType and allows very concise pattern matching on dictionaries and lists.

  • Preliminary Windows support.

New ZefOps

  • schema to show delegate entities/relations. Note: the output of this is not stable and likely to change.

  • events on a ZefRef replaces instantiation_tx, termination_tx, etc...

  • events on a TX replaces instantiated, terminated, etc...

  • absorbed and without_absorbed manipulate parameters absorbed into ZefOps.

Bug Fixes

  • Many fixes!

Deprecations

  • New traversal syntax with ZefOps.

    • The operators >>, <<, >, < are deprecated along with the L[...] and O[...] syntax.
    • Instead use the operators like the following examples for single values:
      • z | Out[...] returns a ZefRef to the target of the outgoing relation
      • z | In[...]
      • z | out_rel[...] the ZefRef to the relation itself is returned
      • z | in_rel[...]
    • Multiple relations are obtained with a plural form of these operators:
      • z | Outs[...] for multary relations (a list of ZefRef is returned)
      • z | Ins[...]
      • z | out_rels[...]
      • z | in_rels[...]
  • match_apply is retired for match.