choojs / nanorouter

🛤 - Small frontend router
MIT License
116 stars 20 forks source link

deprecate the non `.match()` API #12

Open yoshuawuyts opened 6 years ago

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

marcbachmann commented 6 years ago

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

yoshuawuyts commented 6 years ago

@marcbachmann yeah, alright. Sounds fair!