Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Snyk] Upgrade hono from 4.3.3 to 4.4.7 #15

Merged
merged 2 commits into from
Jul 11, 2024

Conversation

WomB0ComB0
Copy link
Owner

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
  • 4.4.7 - 2024-06-19

    What's Changed

    New Contributors

    Full Changelog: v4.4.6...v4.4.7

  • 4.4.6 - 2024-06-13

    What's Changed

    Full Changelog: v4.4.5...v4.4.6

  • 4.4.5 - 2024-06-11

    What's Changed

    • fix(cors): allow custom vary header by @ fzn0x in #2934
    • fix(jsx): rename Hono to JSX and export JSX namespace by @ yusukebe in #2937
    • refactor(hono-base): make 2nd arg of app.route() required by @ yusukebe in #2945
    • refactor(hono-base): don't check 1st argument of app.on() by @ yusukebe in #2946
    • refactor(context): remove unnecessary initialization add add tests for Context by @ yusukebe in #2949
    • test(hono-base): add tests for covering 100% by @ yusukebe in #2952
    • fix(context): default JSONRespond and TextRespond StatusCode generic arg by @ EdamAme-x in #2954
    • refactor(request): shorten parseBody and remove unnecessary check by @ yusukebe in #2947
    • refactor(jsx): reduce code size and improve maintainability by @ usualoma in #2956

    Full Changelog: v4.4.4...v4.4.5

  • 4.4.4 - 2024-06-06

    What's Changed

    • fix(typo): Fix typo in request.test.ts by @ yasuaki640 in #2899
    • feat(hono-base): skip import HTTPException by using HTTPResponseError by @ usualoma in #2898
    • chore: improve unfinalized response error by @ Cherry in #2902
    • chore: create .gitpod.yml by @ EdamAme-x in #2868
    • fix(cloudflare-workers): export getConnInfo() by @ ryuapp in #2906
    • fix(hono-base): return 404 if lacking response in a single sync handler by @ yusukebe in #2909
    • refactor: remove Prettify as duplicated with Simplify by @ NamesMT in #2914
    • fix(types): #2912: interfaces array's respond typed as never by @ NamesMT in #2915
    • feat(context): c.redirect() supports TypedResponse by @ yusukebe in #2908
    • feat(jsx): support htmlfor attribute alias by @ akira-tsuno in #2916
    • fix(filepath): allow suffix includes - and _ by @ yusukebe in #2910
    • fix(types): add _ prefix to TypedResponse properties by @ yusukebe in #2917
    • fix(types): SimplifyDeepArray should now actually be "deep" by @ NamesMT in #2920
    • refactor(middleware/serve-static): call getContent only once if the file does not exist by @ usualoma in #2922
    • chore: add text and html for coverage reporter by @ yusukebe in #2923
    • refactor(conninfo): create types.ts for type definitions by @ yusukebe in #2924

    New Contributors

    Full Changelog: v4.4.3...v4.4.4

  • 4.4.3 - 2024-06-03

    What's Changed

    • ci: Update workflow name of release.yml by @ siguici in #2874
    • refactor: removed unnecessary line by @ EdamAme-x in #2869
    • ci: change name of workflow jobs by @ EdamAme-x in #2875
    • docs(jsdoc): add jsdoc of some modules by @ EdamAme-x in #2836
    • ci: Report coverage with CodeCov by @ exoego in #2862
    • docs: update readme and migrate guide for migrating deno.land/x to JSR by @ yusukebe in #2879
    • chore: add coverage badge to README by @ exoego in #2881
    • fix(websocket): the onopen event cannot be triggered during delayed operations in deno by @ JetLua in #2864
    • fix(cloudflare-workers): Update websocket.ts to return 101 status code by @ ronkeiser in #2886
    • test(workerd): rename the runtime test wrangler to workerd by @ yusukebe in #2888
    • test(workerd): add tests for WebSocket by @ yusukebe in #2891
    • refactor(aws-lambda): merge custom-context into types by @ exoego in #2889
    • chore: Exclude type-only files from coverage by @ exoego in #2890
    • test(presets): add tests for hono/quick and hono/tiny by @ yusukebe in #2892
    • fix(types): fix typo for unofficial status code type by @ ryuapp in #2894
    • feat(hono-base): add replaceRequest option for app.mount by @ yusukebe in #2852

    New Contributors

    Full Changelog: v4.4.2...v4.4.3

  • 4.4.2 - 2024-05-30

    What's Changed

    Full Changelog: v4.4.1...v4.4.2

  • 4.4.1 - 2024-05-30

    What's Changed

    • refactor(pretty-json): remove useless condition by @ 6km in #2815
    • fix(aws-lambda): Update handler.ts getQueryString by @ qualipsolutions in #2782
    • refactor(aws-lambda): Object.hasOwn is recommended by @ exoego in #2831
    • fix(client): allow multiple files on the same key in form by @ olivier-drieux in #2791
    • fix(helper/ssg): fix bug of joinPaths by @ EdamAme-x in #2809
    • chore: Author should include JSDoc by @ fzn0x in #2840
    • fix(middleware/body-limit): set default duplex option for readable stream by @ fzn0x in #2837
    • refactor(websocket): remove unused condition by @ fzn0x in #2839
    • feat(bun): WebSocket helper supports that env be { server: server } by @ nakasyou in #2812
    • refactor: added paths-ignore for ignore files of dont need tests by @ EdamAme-x in #2850
    • ci: include node22 tests by @ Jayllyz in #2851
    • docs(src/*): Add TSDoc comments to improve code documentation by @ fzn0x in #2841
    • fix(types): allow blank env by @ fzn0x in #2834
    • refactor: removed v4 branch in actions. by @ EdamAme-x in #2849
    • refactor(helper/adapter): improve runtime detection by @ 6km in #2846
    • fix(jsx/dom): Fixed to not add "px" for certain properties, even if numeric value is given by @ usualoma in #2845
    • refactor(aws-lambda): remove unused setHeadersToResult by @ exoego in #2828
    • fix(validator): support json api header by @ dil-borosz in #2855
    • refactor(helper/testing): remove some any of helper/testing by @ EdamAme-x in #2833
    • docs: change to shell highlight by @ EdamAme-x in #2848
    • refactor(compose): Remove type definition of ComposeContext that was defined twice by @ chimame in #2858

    New Contributors

    Full Changelog: v4.4.0...v4.4.1

  • 4.4.0 - 2024-05-27

    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:

    deno add @ hono/hono

    Then, use it in your code!

    // main.ts
    import { Hono } from '@ hono/hono'

    const app = new Hono()

    app.get('/', (c) => c.text('Hello JSR!'))

    export default app

    And run it:

    deno serve main.ts

    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:

    {
      "imports": {
        "hono": "jsr:@ hono/hono@^4.4.0"
      }
    }
    Area.mp4
    Area.mp4

    JSR is not exclusive to Deno. You can use it with npm and Bun.

    # npm
    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 { Hono } from 'hono'
    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,

Snyk has created this PR to upgrade hono from 4.3.3 to 4.4.7.

See this package in npm:
hono

See this project in Snyk:
https://app.snyk.io/org/womb0comb0/project/286a6ce4-fd83-4870-bc06-30c610cac58c?utm_source=github&utm_medium=referral&page=upgrade-pr
Copy link

vercel bot commented Jul 11, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
gdsc-farmingdale-links-api ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jul 11, 2024 11:49am

Copy link

render bot commented Jul 11, 2024

@WomB0ComB0 WomB0ComB0 merged commit f01ca72 into main Jul 11, 2024
6 checks passed
@WomB0ComB0 WomB0ComB0 deleted the snyk-upgrade-0be881acdf61b0be3b57f371c0e39dbf branch July 11, 2024 11:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants