Skip to content

0.3.0

Latest
Compare
Choose a tag to compare
@guludo guludo released this 02 Mar 13:31
· 2 commits to main since this release

0.3.0 - 2023-03-02

Added

  • Added support for type hints.
  • Node can now be used for generic type hint. Example: Node[str]
    represents a node that will have a str as result.
  • The class YapeContext was added.
  • Implemented framework for resource I/O in nodes. A provider for "path
    resources" was implemented.
  • Added decorator yape.node.
  • Caching: modules can now be part of a node descriptor.
  • Functions can use nodes directly in their bodies now.
  • Recursive structures are now possible in values.
  • Added new CLI subcommand: yape deps.
  • It is possible (and recommended) to define nodes inside a nodegen() function
    in the entrypoint module when running yape.

Changed

  • BREAKING: run() now uses the parameter context now and dropped the
    parameters ns, cached and cache_path. If you used those, you should
    pass a YapeContext object using the equivalent parameters.
  • BREAKING: yape list now only lists nodes that have been explicitly
    named. The flag --all must be used to list all nodes.