github tinyhttp/tinyhttp v1.1.0
v1.1.0. Markdown server upgrade & minor fixes

latest releases: @tinyhttp/url@2.1.1, @tinyhttp/type-is@2.2.2, @tinyhttp/send@2.2.1...
3 years ago

Core

  • Fixes bugs with req.url, req.path and req.originaUrl (#203)
  • Fixes res.redirect incorrect URI encoding (#205)
  • Fixes res.set (and extensions using it) not adding charset
  • Fixes res.render not inheriting template engine settings

Middleware

  • @tinyhttp/markdown now sends a stream instead of plain text using streamdown
  • @tinyhttp/markdown doesn't have recursive option anymore. Instead of file listing, the current directory is switched in case the path contains a directory. Therefore, the ware no longer depends on readdirp
  • @tinyhttp/markdown now has a caching setting to configure Cache-Control header
  • @tinyhttp/session now uses express-session as direct dependency instead of dev (#201)

Docs

  • Fix typo with router methods in the docs (#204)

Don't miss a new tinyhttp release

NewReleases is sending notifications on new releases.