Rather than adding each argument (generally unused) as trailing
arguments after callback. Callback is always the last argument now.
To handle backwards compatability, we check the type of options and if
it is a function, we treat arguments as corresponding to the old
interface but issue a depreceated warning.
This fixes issue #53 and #50, making CAS also easier to support going
forward.
We now declare methods generally as:
Rather than adding each argument (generally unused) as trailing arguments after callback. Callback is always the last argument now.
To handle backwards compatability, we check the type of
options
and if it is a function, we treat arguments as corresponding to the old interface but issue a depreceated warning.This fixes issue #53 and #50, making CAS also easier to support going forward.