[Snyk] Upgrade hono from 4.3.3 to 4.4.7 #15
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR was automatically created by Snyk using the credentials of a real user.
![snyk-top-banner](https://github.com/andygongea/OWASP-Benchmark/assets/818805/c518c423-16fe-447e-b67f-ad5a49b5d123)
Snyk has created this PR to upgrade hono from 4.3.3 to 4.4.7.
ℹ️ Keep your dependencies up-to-date. This makes it easier to fix existing vulnerabilities and to more quickly identify and fix newly disclosed vulnerabilities when they affect your project.
The recommended version is 17 versions ahead of your current version.
The recommended version was released on 22 days ago.
Release notes
Package name: hono
What's Changed
New Contributors
Full Changelog: v4.4.6...v4.4.7
What's Changed
Full Changelog: v4.4.5...v4.4.6
What's Changed
Hono
toJSX
and exportJSX
namespace by @ yusukebe in #2937app.route()
required by @ yusukebe in #2945app.on()
by @ yusukebe in #2946parseBody
and remove unnecessary check by @ yusukebe in #2947Full Changelog: v4.4.4...v4.4.5
What's Changed
Prettify
as duplicated withSimplify
by @ NamesMT in #2914never
by @ NamesMT in #2915c.redirect()
supportsTypedResponse
by @ yusukebe in #2908-
and_
by @ yusukebe in #2910_
prefix toTypedResponse
properties by @ yusukebe in #2917SimplifyDeepArray
should now actually be "deep" by @ NamesMT in #2920text
andhtml
for coverage reporter by @ yusukebe in #2923types.ts
for type definitions by @ yusukebe in #2924New Contributors
Full Changelog: v4.4.3...v4.4.4
What's Changed
deno.land/x
to JSR by @ yusukebe in #2879wrangler
toworkerd
by @ yusukebe in #2888hono/quick
andhono/tiny
by @ yusukebe in #2892replaceRequest
option forapp.mount
by @ yusukebe in #2852New Contributors
Full Changelog: v4.4.2...v4.4.3
What's Changed
Full Changelog: v4.4.1...v4.4.2
What's Changed
{ server: server }
by @ nakasyou in #2812New Contributors
Full Changelog: v4.4.0...v4.4.1
Hono v4.4.0 is now available! Let's take a look at the new features.
Support JSR
Now, Hono is available on JSR - a new JavaScript/TypeScript registry! You can install the Hono package from JSR right now. If you want to run your Hono app on Deno, you can install it with the following command:
Then, use it in your code!
import { Hono } from '@ hono/hono'
const app = new Hono()
app.get('/', (c) => c.text('Hello JSR!'))
export default app
And run it:
If you edit the
deno.json
and set the paths appropriately, the exact same code that you are familiar with will work in Deno, Cloudflare Workers, and Bun.deno.json
:Area.mp4
Area.mp4
JSR is not exclusive to Deno. You can use it with npm and Bun.
npx jsr add @ hono/hono
# bun
bunx jsr add @ hono/hono
And, removing "slow types" has improved the performance of TypeScript type inference.
With the introduction of JSR, the previous package publishing from
deno.land/x
will be obsolete.Introduce ConnInfo Helper
The ConnInfo Helper is a helper helps you to get the connection information. For example, you can get the client's remote address easily.
import { getConnInfo } from 'hono/deno' // For Deno
const app = new Hono()
app.get('/', (c) => {
const info = getConnInfo(c) // info is
ConnInfo
return c.text(
Your remote address is <span class="pl-s1"><span class="pl-kos">${</span><span class="pl-s1">info</span><span class="pl-kos">.</span><span class="pl-c1">remote</span><span class="pl-kos">.</span><span class="pl-c1">address</span><span class="pl-kos">}</span></span>
)})
export default app
Thank you for creating the feature,