From 9735283462827db17552e257e9f794dbc301b401 Mon Sep 17 00:00:00 2001 From: Yusuke Wada Date: Sat, 1 Jun 2024 06:15:49 +0900 Subject: [PATCH] docs: update readme and migrate guide for migrating `deno.land/x` to JSR (#2879) --- README.md | 2 +- docs/MIGRATION.md | 18 ++++++++++++++++++ 2 files changed, 19 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 2663e4d7..bfe3bcff 100644 --- a/README.md +++ b/README.md @@ -8,7 +8,7 @@

Documentation 👉 hono.dev
-v4 has been released! Migration guide +Now supports JSR and deno.land/x is deprecated! See Migration guide.


diff --git a/docs/MIGRATION.md b/docs/MIGRATION.md index 3a8917d3..47550e98 100644 --- a/docs/MIGRATION.md +++ b/docs/MIGRATION.md @@ -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.