saplingjs / sapling

🌿 Sapling is a Node.js framework for faster-than-light web development.
https://www.saplingjs.com
MIT License
14 stars 0 forks source link

Bump @tinyhttp/url from 2.0.7 to 2.0.8 #569

Closed dependabot[bot] closed 1 year ago

dependabot[bot] commented 1 year ago

⚠️ Dependabot is rebasing this PR ⚠️

Rebasing might not happen immediately, so don't worry if this takes some time.

Note: if you make any changes to this PR yourself, they will take precedence over the rebase.


Bumps @tinyhttp/url from 2.0.7 to 2.0.8.

Release notes

Sourced from @​tinyhttp/url's releases.

v1.1.0. Markdown server upgrade & minor fixes

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)

v1.0. The time has come.

Finally, after months of hard work, different implementation decisions, collaborations with contributors I'm thrilled to announce the first stable release of tinyhttp!

Express API implementation

100% ready. The only method that isn't implemented is app.param, which was deprecated in Express 4.11.

Core

Catching errors in async handlers

errors thrown in async handlers are now catched and passed to next, e.g. if an error is throwed in a handler it won't crash and will keep working.

Example:

import { App } from '@tinyhttp/app'

const app = new App()

app.use(async (_req, _res) => { throw error })

app.listen(3000)

The app will return the error and send 500 status:

$ curl localhost:3000
</tr></table> 

... (truncated)

Commits


Dependabot compatibility score

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR: - `@dependabot rebase` will rebase this PR - `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it - `@dependabot merge` will merge this PR after your CI passes on it - `@dependabot squash and merge` will squash and merge this PR after your CI passes on it - `@dependabot cancel merge` will cancel a previously requested merge and block automerging - `@dependabot reopen` will reopen this PR if it is closed - `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually - `@dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
codecov[bot] commented 1 year ago

Codecov Report

Merging #569 (7ad158f) into master (7c2426d) will not change coverage. The diff coverage is n/a.

@@           Coverage Diff           @@
##           master     #569   +/-   ##
=======================================
  Coverage   97.78%   97.78%           
=======================================
  Files          39       39           
  Lines        4792     4792           
=======================================
  Hits         4686     4686           
  Misses        106      106           

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.