All Versions
6
Latest Version
Avg Release Cycle
5 days
Latest Release
2457 days ago

Changelog History

  • v1.0.5 Changes

    March 22, 2018
    โœจ Enhancements
    • Add Result type example in tests.
    ๐Ÿ› Bug Fixes
    • Binding non guarded variables to expressions just replaces those vars.
  • v1.0.4 Changes

    March 22, 2018
    โœจ Enhancements
    • Add union patterns with examples for nats, maybe, either, struct.
    • Report lines at expansion point not as pattern definition line.
    ๐Ÿ› Bug Fixes
    • nil values were not able to be bound.
    • vars should be made unique on each expansion.
    • guarded vars were being counted first
  • v1.0.3 Changes

    March 12, 2018
    โœจ Enhancements
    • Add HOW_IT_WORKS.md to add some details on how guards are expanded.
    • Add bang ! macro for named pattern that can be used as constructor.
    ๐Ÿ› Bug Fixes
    • Pattern variables starting with _ were able to be bound.
  • v1.0.2 Changes

    โœจ Enhancements
    • Allow positional arguments in adition to named bindings.
    • Document generated macros
    • Support expat with
  • v1.0.1 Changes

    โœจ Enhancements
    • Added a usage guide in README.md
    ๐Ÿ› Bug Fixes
    • Ensure pattern expassion happens in all arguments of a def
  • v1.0.0 Changes

    โœจ Enhancements
    • Major rewrite to let defpat support guards being defined on it
    • Introduced expat to expand patterns inside Elixir expressions
    ๐Ÿ—„ Deprecations
    • Removed the ... syntax that introduced all pattern variables into scope. Now you must be explicit on what variables you want to bind.

    • Removed passing _ to ignore all variables in pattern, now you must use the macro generated with zero arity, or bind all vars to _