Skip to content

Releases: lukeed/polka

v0.2.0

12 Jan 22:01
Compare
Choose a tag to compare

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