0
0
mirror of https://github.com/honojs/hono.git synced 2024-11-24 02:07:30 +01:00

docs: update readme and migrate guide for migrating deno.land/x to JSR (#2879)

This commit is contained in:
Yusuke Wada 2024-06-01 06:15:49 +09:00 committed by GitHub
parent 8cc8a05c89
commit 9735283462
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 19 additions and 1 deletions

View File

@ -8,7 +8,7 @@
<p align="center">
<a href="https://hono.dev"><b>Documentation 👉 hono.dev</b></a><br />
<i>v4 has been released!</i> <a href="docs/MIGRATION.md">Migration guide</b>
<i>Now supports <a href="https://jsr.io/@hono/hono">JSR</a> and <code>deno.land/x</code> is deprecated! See <a href="docs/MIGRATION.md">Migration guide</a>.</i>
</p>
<hr />

View File

@ -1,5 +1,23 @@
# Migration Guide
## v4.3.11 to v4.4.0
### `deno.land/x` to JSR
There is no braking change, but we no longer publish the module from `deno.land/x`. If you want to use Hono on Deno, use JSR instead of it.
If you migrate, replace the path `deno.land/x` with JSR's.
```ts
// From
import { Hono } from 'https://deno.land/x/hono/mod.ts'
// To
import { Hono } from 'jsr:@hono/hono'
```
You can see more details on our website: https://hono.dev/getting-started/deno
## v3.12.x to v4.0.0
There are some breaking changes.