github lukeed/polka v0.3.1

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

Patches

  • FIX: Only mutate req.url and req.pathname if sub-group is known: f4e62bf

    This is an important fix! Any cases of serve-static that were mounted without a basename path were behaving unexpectedly. This is because req.url was mutated as soon as a route-handler was not found, turning incoming assets like /app.js into /, which meant that the target directory's index.html content was always sent.

  • Ensure that sub-groups & basenames always include a leading slash: 531c92d

    This makes it easier & quicker to mutate the req.url and req.pathname values once a sub-group is found.

  • Update README benchmarks after polka.handler changes: d8016cc

Examples

Don't miss a new polka release

NewReleases is sending notifications on new releases.