okwolf / hyperapp-logger

Log Hyperapp state updates and action information to the console.
MIT License
47 stars 5 forks source link

Make options optional #16

Closed okwolf closed 6 years ago

okwolf commented 6 years ago

This would enable the following simplified syntax:

logger(app)(state, actions, view, document.body)

while still preserving support for the current syntax:

logger(options)(app)(state, actions, view, document.body)

I already wrote an implementation that supports this in my hyperapp-effects library, since it started with no options, and then added them without a breaking change.