Open yoshuawuyts opened 6 years ago
When https://github.com/choojs/nanorouter/pull/9 lands, we should deprecate the other API. We should probably also take that chance to deprecate .curry (related to #10) and rewrite this to prototypes (as per #6).
.curry
The new .match method only returns a matched route, but doesn't invoke the handler. So I'd still keep the .emit method.
.match
.emit
@marcbachmann yeah, alright. Sounds fair!
When https://github.com/choojs/nanorouter/pull/9 lands, we should deprecate the other API. We should probably also take that chance to deprecate
.curry
(related to #10) and rewrite this to prototypes (as per #6).