Skip to content

v0.16.0

Choose a tag to compare

@jollytoad jollytoad released this 17 Jun 11:39
· 53 commits to main since this release

Changed

  • [@http/interceptor/logger] move response logging into finally interceptor so
    that it groups and accounts for timing of streamed responses
  • [@http/discovery] default options functions are now dynamically imported when
    required

Removed

  • [@http/discovery] defaultPathMapper(), defaultRouteMapper(),
    defaultPathCompare() removed from module (moved into separate modules and
    renamed)

Added

  • [@http/discovery] indexPathMapper(), tsRouteMapper(),
    pathnameLexicalRouteComparator() added into own modules (replace the old
    default functions)
  • [@http/discovery] combinedRouteMapper() added to create a single combined
    RouteMapper from several
  • [@http/discovery/discover-routes] allow custom readDir function, support
    both Deno.readDir and Node's opendir by default
  • [@http/generate] supports multiple RouteMappers in routeMapper option