Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Migrate to using { action, [args] } hook messages #63

Merged
merged 1 commit into from
Sep 3, 2016
Merged

Conversation

whitfin
Copy link
Owner

@whitfin whitfin commented Sep 3, 2016

This fixes #59.

There were many places it would be convenient to match on the action taken when working from inside a hook. This was not possible to do in a function head, which made it kinda awkward. It's now possible to do so with the new format of { action, args_list }. This change also guarantees that hook messages are two-element tuples, which is handy.

In addition, this fixes #60 by tweaking the default hook type to being :post. This is reflected in the documentation for the time being, but I'll make it more clear by v2.x release.

@whitfin whitfin added this to the v2.0.0 milestone Sep 3, 2016
@whitfin whitfin self-assigned this Sep 3, 2016
@whitfin whitfin merged commit ac3b071 into master Sep 3, 2016
@whitfin whitfin deleted the issue-59 branch September 3, 2016 01:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
1 participant