chore(deps): update dependency hono to ^3.6.3#87
Merged
renovate[bot] merged 1 commit intomasterfrom Sep 17, 2023
Merged
Conversation
645d67c to
30f87ab
Compare
ffe9354 to
0f43e5e
Compare
0f43e5e to
10a3e53
Compare
10a3e53 to
1a77077
Compare
AdiRishi
approved these changes
Sep 17, 2023
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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 contains the following updates:
^3.5.8->^3.6.3Release Notes
honojs/hono (hono)
v3.6.3Compare Source
What's Changed
jsonT()should be union by @yusukebe in https://github.com/honojs/hono/pull/1471Full Changelog: honojs/hono@v3.6.2...v3.6.3
v3.6.2Compare Source
What's Changed
stringby @yusukebe in https://github.com/honojs/hono/pull/1470New Contributors
Full Changelog: honojs/hono@v3.6.1...v3.6.2
v3.6.1Compare Source
This release includes tiny features and bug fixes.
What's Changed
deprecateshould bedeprecatedby @yusukebe in https://github.com/honojs/hono/pull/1448MiddlewareHandlerInterfaceby @yusukebe in https://github.com/honojs/hono/pull/1449Full Changelog: honojs/hono@v3.6.0...v3.6.1
v3.6.0Compare Source
Hono v3.6.0 is now available! Let's take a look at the new features.
Introduce
c.render()We introduce
c.render()andc.setRenderer()functions.These functions enhance Hono's response handling, allowing for more flexible and modular response structures, especially useful for defining common parts of responses, like HTML layouts.
You can set a layout using
c.setRenderer()within a custom middleware, as shown below:Then, you can utilize
c.render()to create responses within this layout:The output of which will be:
Additionally, this feature offers the flexibility to customize arguments. To ensure type safety, types can be defined as:
Here's an example of how you can use this:
Using
c.render()with JSX and html middleware, you can create HTML pages more easily!Introduce
c.varThe next feature we're introducing is
c.var.Before this release, to access the actual value of a variable, you had to use
c.get():Now, with
c.var, a more intuitive syntax is available:For instance, you can set an instance of the client for accessing an API with a middleware and then retrieve it using
c.var.client:FCfor JSXThe type
FCis exported fromhono/jsx. You can use it to specify types for your function components.$url()in Hono ClientYou can get a
URLobject for accessing the the endpoint by using$url().Thanks @renzor-fist !
Factory helper
Now, Hono offers a
middlewarefactory method to create a middleware handler.By defining your middleware with
middleware, the appropriate types will be added.Vite dev-server for Hono
Now, we introduce a new Vite Plugin to enhance developing your Hono application.
@hono/vite-dev-serveris a Vite Plugin that provides a custom dev-server forfetch-based web applications like those using Hono.You can develop your application with Vite. It's fast.
Features
fetch-based applications.Demo
Screen.Recording.2023-09-07.at.15.05.25.mov
Usage
Installation
You can install
viteand@hono/vite-dev-servervia npm.Or you can install them with Bun.
Settings
Add
"type": "module"to yourpackage.json. Then, createvite.config.tsand edit it.Development
Just run
vite.Or
See more details
Visit the GitHub project: https://github.com/honojs/vite-plugins/tree/main/packages/dev-server
Deprecate some properties in HonoRequest
These properties in the
HonoRequesthave been deprecated.headers()body()bodyUsed()integrity()keepalive()referrer()signal()For instance, if you want to use
headers, please usec.req.raw.headers().Replaced Jest with Vitest
This might not be a new feature, but it's a significant change.
We've switched the test framework used in Hono's core project from Jest to Vitest! It's fast!
Thanks @ThatOneBro for the great work!
All Updates
statustoTypedResponseby @ThatOneBro in https://github.com/honojs/hono/pull/1403c.render()by @yusukebe in https://github.com/honojs/hono/pull/1397c.req.headers(notc.req.header) and others by @yusukebe in https://github.com/honojs/hono/pull/1410RequestContextby @yusukebe in https://github.com/honojs/hono/pull/1421jestwithvitestby @ThatOneBro in https://github.com/honojs/hono/pull/1404sandboxdir by @yusukebe in https://github.com/honojs/hono/pull/1424--no-warningsoption formainby @yusukebe in https://github.com/honojs/hono/pull/1425MergeSchemaPathcorrect by @yusukebe in https://github.com/honojs/hono/pull/1426tscbeforevitestby @yusukebe in https://github.com/honojs/hono/pull/1427$url()by @yusukebe in https://github.com/honojs/hono/pull/1430c.varby @yusukebe in https://github.com/honojs/hono/pull/1406FCby @yusukebe in https://github.com/honojs/hono/pull/1420factoryhelper by @yusukebe in https://github.com/honojs/hono/pull/1434New Contributors
Full Changelog: honojs/hono@v3.5.8...v3.6.0
Configuration
📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).
🚦 Automerge: Enabled.
♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
This PR has been generated by Mend Renovate. View repository job log here.