Unverified Commit c3086f56 authored by Hong Minhee's avatar Hong Minhee
Browse files

Deno 2 will require `jsr:` prefix for `deno add`

parent f75c19cf
Loading
Loading
Loading
Loading
+5 −1
Original line number Diff line number Diff line
@@ -1303,7 +1303,11 @@ async function addDependencies(
  const deps = Object.entries(dependencies)
    .map(([name, version]) =>
      `${
        runtime !== "deno" && name.startsWith("npm:") ? name.substring(4) : name
        runtime !== "deno" && name.startsWith("npm:")
          ? name.substring(4)
          : runtime === "deno" && !name.startsWith("npm:")
          ? `jsr:${name}`
          : name
      }@${
        runtime !== "deno" && version.includes("+")
          ? version.substring(0, version.indexOf("+"))
+1 −1
Original line number Diff line number Diff line
@@ -77,7 +77,7 @@ Deno 1.41.0 or later installed on your system. Then you can install Fedify
via the following command:

~~~~ sh
deno add @fedify/fedify
deno add jsr:@fedify/fedify
~~~~

Since Fedify requires [`Temporal`] API, which is an unstable feature in Deno as
+1 −1
Original line number Diff line number Diff line
@@ -350,7 +350,7 @@ install the package:
::: code-group

~~~~ sh [Deno]
deno add @hongminhee/x-forwarded-fetch
deno add jsr:@hongminhee/x-forwarded-fetch
~~~~

~~~~ sh [Node.js]
+1 −1
Original line number Diff line number Diff line
@@ -29,7 +29,7 @@ To enable logging in your federated server app, you need to install the
::: code-group

~~~~ sh [Deno]
deno add @logtape/logtape
deno add jsr:@logtape/logtape
~~~~

~~~~ sh [Node.js]
+3 −3
Original line number Diff line number Diff line
@@ -50,7 +50,7 @@ Let's create a new project directory and initialize a new project:
mkdir follow-server
cd follow-server/
echo '{ "unstable": ["kv", "temporal"] }' > deno.json
deno add @fedify/fedify
deno add jsr:@fedify/fedify
~~~~

~~~~ sh [Bun]
@@ -321,7 +321,7 @@ to the next step.
> ::: code-group
>
> ~~~~ sh [Deno]
> deno add @logtape/logtape
> deno add jsr:@logtape/logtape
> ~~~~
>
> ~~~~ sh [Bun]
@@ -609,7 +609,7 @@ To do this, you need to install the package:
::: code-group

~~~~ sh [Deno]
deno add @hongminhee/x-forwarded-fetch
deno add jsr:@hongminhee/x-forwarded-fetch
~~~~

~~~~ sh [Bun]