github lukeed/polka v0.2.0

latest releases: v1.0.0-next.28, v1.0.0-next.27, v1.0.0-next.26...
6 years ago

Minor Changes

  • Add support for sub-applications 🎉 (#1): 17f1e85

    This was a core chunk for releasing 1.0. Still not quite ready as there are a few other API decisions to be made, but this takes us most of the way there.

  • Reverted app.handler's signautre to (req, res, parsed): ddbf15c, d72cd14

    Exposing a next callback was completely useless as it would never be called, unless by accident — even though, it shouldn't have been allowed. 😆

    Instead, an optional parsed parameter allows the developer to parse the URL on their own terms, do whatever they want with the info, and then pass down the same information to the (nested?) app handler. Although parseurl is super fast, the fastest function is the one you never call~ 😉

Examples

Patches

  • Removed unused import & renamed parseurl import: 0f559b6
  • Added sub-application tests: b07d146

Don't miss a new polka release

NewReleases is sending notifications on new releases.