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

fix(deps): update all non-major dependencies #173

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

renovate[bot]
Copy link
Contributor

@renovate renovate bot commented Jan 13, 2025

This PR contains the following updates:

Package Change Age Adoption Passing Confidence Type Update
@hono/vite-dev-server ^0.18.0 -> ^0.19.0 age adoption passing confidence dependencies minor
@hono/zod-validator 0.4.2 -> 0.4.3 age adoption passing confidence dependencies patch
@types/node (source) 22.10.5 -> 22.13.11 age adoption passing confidence devDependencies minor
hono (source) 4.6.16 -> 4.7.5 age adoption passing confidence dependencies minor
prettier (source) 3.4.2 -> 3.5.3 age adoption passing confidence devDependencies minor
python 3.12.1 -> 3.13.2 age adoption passing confidence uses-with minor
tsx (source) 4.19.2 -> 4.19.3 age adoption passing confidence devDependencies patch
typescript (source) 5.7.2 -> 5.8.2 age adoption passing confidence devDependencies minor
vite (source) 6.0.7 -> 6.2.2 age adoption passing confidence devDependencies minor
vite-plugin-dts 4.4.0 -> 4.5.3 age adoption passing confidence devDependencies minor
zod (source) 3.24.1 -> 3.24.2 age adoption passing confidence dependencies patch
zod-to-json-schema 3.24.1 -> 3.24.5 age adoption passing confidence devDependencies patch

Release Notes

honojs/vite-plugins (@​hono/vite-dev-server)

v0.19.0

Compare Source

Minor Changes

v0.18.3

Compare Source

Patch Changes

v0.18.2

Compare Source

Patch Changes

v0.18.1

Compare Source

Patch Changes
honojs/middleware (@​hono/zod-validator)

v0.4.3

Compare Source

Patch Changes
honojs/hono (hono)

v4.7.5

Compare Source

v4.7.4

Compare Source

What's Changed

Full Changelog: honojs/hono@v4.7.3...v4.7.4

v4.7.3

Compare Source

What's Changed
New Contributors

Full Changelog: honojs/hono@v4.7.2...v4.7.3

v4.7.2

Compare Source

What's Changed

Full Changelog: honojs/hono@v4.7.1...v4.7.2

v4.7.1

Compare Source

What's Changed
New Contributors

Full Changelog: honojs/hono@v4.7.0...v4.7.1

v4.7.0

Compare Source

Release Notes

Hono v4.7.0 is now available!

This release introduces one helper and two middleware.

  • Proxy Helper
  • Language Middleware
  • JWK Auth Middleware

Plus, Standard Schema Validator has been born.

Let's look at each of these.

Proxy Helper

We sometimes use the Hono application as a reverse proxy. In that case, it accesses the backend using fetch. However, it sends an unintended headers.

app.all('/proxy/:path', (c) => {
  // Send unintended header values to the origin server
  return fetch(`http://${originServer}/${c.req.param('path')}`)
})

For example, fetch may send Accept-Encoding, causing the origin server to return a compressed response. Some runtimes automatically decode it, leading to a Content-Length mismatch and potential client-side errors.

Also, you should probably remove some of the headers sent from the origin server, such as Transfer-Encoding.

Proxy Helper will send requests to the origin and handle responses properly. The above headers problem is solved simply by writing as follows.

import { Hono } from 'hono'
import { proxy } from 'hono/proxy'

app.get('/proxy/:path', (c) => {
  return proxy(`http://${originServer}/${c.req.param('path')}`)
})

You can also use it in more complex ways.

app.get('/proxy/:path', async (c) => {
  const res = await proxy(
    `http://${originServer}/${c.req.param('path')}`,
    {
      headers: {
        ...c.req.header(),
        'X-Forwarded-For': '127.0.0.1',
        'X-Forwarded-Host': c.req.header('host'),
        Authorization: undefined,
      },
    }
  )
  res.headers.delete('Set-Cookie')
  return res
})

Thanks @​usualoma!

Language Middleware

Language Middleware provides 18n functions to Hono applications. By using the languageDetector function, you can get the language that your application should support.

import { Hono } from 'hono'
import { languageDetector } from 'hono/language'

const app = new Hono()

app.use(
  languageDetector({
    supportedLanguages: ['en', 'ar', 'ja'], // Must include fallback
    fallbackLanguage: 'en', // Required
  })
)

app.get('/', (c) => {
  const lang = c.get('language')
  return c.text(`Hello! Your language is ${lang}`)
})

You can get the target language in various ways, not just by using Accept-Language.

  • Query parameters
  • Cookies
  • Accept-Language header
  • URL path

Thanks @​lord007tn!

JWK Auth Middleware

Finally, middleware that supports JWK (JSON Web Key) has landed. Using JWK Auth Middleware, you can authenticate by verifying JWK tokens. It can access keys fetched from the specified URL.

import { Hono } from 'hono'
import { jwk } from 'hono/jwk'

app.use(
  '/auth/*',
  jwk({
    jwks_uri: `https://${backendServer}/.well-known/jwks.json`,
  })
)

app.get('/auth/page', (c) => {
  return c.text('You are authorized')
})

Thanks @​Beyondo!

Standard Schema Validator

Standard Schema provides a common interface for TypeScript validator libraries. Standard Schema Validator is a validator that uses it. This means that Standard Schema Validator can handle several validators, such as Zod, Valibot, and ArkType, with the same interface.

The code below really works!

import { Hono } from 'hono'
import { sValidator } from '@​hono/standard-validator'
import { type } from 'arktype'
import * as v from 'valibot'
import { z } from 'zod'

const aSchema = type({
  agent: 'string',
})

const vSchema = v.object({
  slag: v.string(),
})

const zSchema = z.object({
  name: z.string(),
})

const app = new Hono()

app.get(
  '/:slag',
  sValidator('header', aSchema),
  sValidator('param', vSchema),
  sValidator('query', zSchema),
  (c) => {
    const headerValue = c.req.valid('header')
    const paramValue = c.req.valid('param')
    const queryValue = c.req.valid('query')
    return c.json({ headerValue, paramValue, queryValue })
  }
)

const res = await app.request('/foo?name=foo', {
  headers: {
    agent: 'foo',
  },
})

console.log(await res.json())

Thanks @​muningis!

New features
All changes
New Contributors

Full Changelog: honojs/hono@v4.6.20...v4.7.0

v4.6.20

Compare Source

What's Changed
New Contributors

Full Changelog: honojs/hono@v4.6.19...v4.6.20

v4.6.19

Compare Source

What's Changed

Full Changelog: honojs/hono@v4.6.18...v4.6.19

v4.6.18

Compare Source

What's Changed

Full Changelog: honojs/hono@v4.6.17...v4.6.18

v4.6.17

Compare Source

What's Changed
New Contributors

Full Changelog: honojs/hono@v4.6.16...v4.6.17

prettier/prettier (prettier)

v3.5.3

Compare Source

v3.5.2

Compare Source

diff

Remove module-sync condition (#​17156 by @​fisker)

In Prettier 3.5.0, we added module-sync condition to package.json, so that require("prettier") can use ESM version, but turns out it doesn't work if CommonJS and ESM plugins both imports builtin plugins. To solve this problem, we decide simply remove the module-sync condition, so require("prettier") will still use the CommonJS version, we'll revisit until require(ESM) feature is more stable.

v3.5.1

Compare Source

diff

Fix CLI crash when cache for old version exists (#​17100 by @​sosukesuzuki)

Prettier 3.5 uses a different cache format than previous versions, Prettier 3.5.0 crashes when reading existing cache file, Prettier 3.5.1 fixed the problem.

Support dockercompose and github-actions-workflow in VSCode (#​17101 by @​remcohaszing)

Prettier now supports the dockercompose and github-actions-workflow languages in Visual Studio Code.

v3.5.0

Compare Source

diff

🔗 Release Notes

actions/python-versions (python)

v3.13.2: 3.13.2

Compare Source

Python 3.13.2

v3.13.1: 3.13.1

Compare Source

Python 3.13.1

v3.13.0: 3.13.0

Compare Source

Python 3.13.0

v3.12.9: 3.12.9

Compare Source

Python 3.12.9

v3.12.8: 3.12.8

Compare Source

Python 3.12.8

v3.12.7: 3.12.7

Compare Source

Python 3.12.7

v3.12.6: 3.12.6

Compare Source

Python 3.12.6

v3.12.5: 3.12.5

Compare Source

Python 3.12.5

v3.12.4: 3.12.4

Compare Source

Python 3.12.4

v3.12.3: 3.12.3

Compare Source

Python 3.12.3

v3.12.2: 3.12.2

Compare Source

Python 3.12.2

privatenumber/tsx (tsx)

v4.19.3

Compare Source

Bug Fixes
  • upgrade esbuild to ~0.25.0 to address vuln report (#​698) (e04e6c6)

This release is also available on:

microsoft/TypeScript (typescript)

v5.8.2

Compare Source

v5.7.3: TypeScript 5.7.3

Compare Source

For release notes, check out the release announcement.

Downloads are available on npm

vitejs/vite (vite)

v6.2.2

Compare Source

v6.2.1

Compare Source

v6.2.0

Compare Source

v6.1.1

Compare Source

v6.1.0

Compare Source

Features
Fixes

Configuration

📅 Schedule: Branch creation - "* 0-3 * * 1" (UTC), Automerge - At any time (no schedule defined).

🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.

Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

👻 Immortal: This PR will be recreated if closed unmerged. Get config help if that's undesired.


  • If you want to rebase/retry this PR, check this box

This PR was generated by Mend Renovate. View the repository job log.

Copy link

cloudflare-workers-and-pages bot commented Jan 13, 2025

Deploying sona-api with  Cloudflare Pages  Cloudflare Pages

Latest commit: fe5e42f
Status: ✅  Deploy successful!
Preview URL: https://339aae9e.sona-f2s.pages.dev
Branch Preview URL: https://renovate-all-minor-patch.sona-f2s.pages.dev

View logs

@renovate renovate bot force-pushed the renovate/all-minor-patch branch 2 times, most recently from ab6f6b5 to 01ccb97 Compare January 16, 2025 09:35
@renovate renovate bot changed the title chore(deps): update all non-major dependencies fix(deps): update all non-major dependencies Jan 16, 2025
@renovate renovate bot force-pushed the renovate/all-minor-patch branch 8 times, most recently from 01c9879 to 1b36cf9 Compare January 23, 2025 21:28
@renovate renovate bot force-pushed the renovate/all-minor-patch branch 5 times, most recently from 30b2fb1 to 25c90d7 Compare January 31, 2025 20:47
@renovate renovate bot force-pushed the renovate/all-minor-patch branch 4 times, most recently from 0cbf84b to 68bb545 Compare February 9, 2025 14:14
@renovate renovate bot force-pushed the renovate/all-minor-patch branch 8 times, most recently from bd19a6f to 933df28 Compare February 19, 2025 02:05
@renovate renovate bot force-pushed the renovate/all-minor-patch branch from 933df28 to 119d754 Compare February 19, 2025 11:46
@renovate renovate bot force-pushed the renovate/all-minor-patch branch 6 times, most recently from c3bbefd to ff9baf6 Compare February 25, 2025 05:40
@renovate renovate bot force-pushed the renovate/all-minor-patch branch 11 times, most recently from e966bc7 to 3d21921 Compare March 5, 2025 02:26
@renovate renovate bot force-pushed the renovate/all-minor-patch branch 5 times, most recently from 8ccc0e7 to 2779454 Compare March 13, 2025 19:03
@renovate renovate bot force-pushed the renovate/all-minor-patch branch 4 times, most recently from 191ccb0 to 910104c Compare March 20, 2025 11:49
@renovate renovate bot force-pushed the renovate/all-minor-patch branch from 910104c to fe5e42f Compare March 21, 2025 10:27
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.

0 participants