nanorouter icon indicating copy to clipboard operation
nanorouter copied to clipboard

deprecate the non `.match()` API

Open yoshuawuyts opened this issue 7 years ago • 2 comments

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).

yoshuawuyts avatar Dec 28 '17 20:12 yoshuawuyts

The new .match method only returns a matched route, but doesn't invoke the handler. So I'd still keep the .emit method.

marcbachmann avatar Dec 28 '17 21:12 marcbachmann

@marcbachmann yeah, alright. Sounds fair!

yoshuawuyts avatar Dec 29 '17 20:12 yoshuawuyts