Skip to content

v1.6.0

Compare
Choose a tag to compare
@sejori sejori released this 06 Feb 16:31
· 321 commits to main since this release
bc1e031

What's Changed

  • feat: route.route => route.path by @sebringrose in #123
  • Static dir by @sebringrose in #124
  • Export fix by @sebringrose in #122

A lovely little utility has been added, staticDir ✨ It will recursively generate routes from a directory that use the staticHandler along with any supplied middleware. These routes are returned as an array that can be implemented via server.addRoutes!

This is a minor feature but sooo nice for dev as I can't count the amount of times I've written this logic manually, awesome to have this util.

Along with that there was a significant renaming of the route.route param to route.path, seemed quite sensible. And also, all utils and helper functions are now exported in mod.ts simply because. Happy coding 🔥

Full Changelog: 1.5.3...1.6.0