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.5 to 2.0.6 #491

Closed dependabot[bot] closed 2 years ago

dependabot[bot] commented 2 years ago

Bumps @tinyhttp/url from 2.0.5 to 2.0.6.

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 2 years ago

Codecov Report

Merging #491 (a217d25) into master (c7e8532) will not change coverage. The diff coverage is n/a.

:exclamation: Current head a217d25 differs from pull request most recent head 8b24a4f. Consider uploading reports for the commit 8b24a4f to get more accurate results

@@           Coverage Diff           @@
##           master     #491   +/-   ##
=======================================
  Coverage   98.05%   98.05%           
=======================================
  Files          37       37           
  Lines        4668     4668           
=======================================
  Hits         4577     4577           
  Misses         91       91           

Continue to review full report at Codecov.

Legend - Click here to learn more Δ = absolute <relative> (impact), ø = not affected, ? = missing data Powered by Codecov. Last update c7e8532...8b24a4f. Read the comment docs.