Skip to content

Commit 6083ad0

Browse files
fix: replace imports deno.land to jsr (#1565)
Co-authored-by: Jo Franchetti <[email protected]>
1 parent 85829a4 commit 6083ad0

File tree

6 files changed

+17
-17
lines changed

6 files changed

+17
-17
lines changed

deploy/api/runtime-broadcast-channel.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ a simple server that uses `BroadcastChannel` to synchornize state across all
5959
running instances of the server.
6060

6161
```ts
62-
import { Hono } from "https://deno.land/x/hono/mod.ts";
62+
import { Hono } from "jsr:@hono/hono";
6363

6464
// in-memory cache of messages
6565
const messages = [];

examples/tutorials/aws_lightsail.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ To focus on the deployment, our app will simply be a `main.ts` file that returns
2727
a string as an HTTP response:
2828

2929
```ts
30-
import { Application } from "https://deno.land/x/oak/mod.ts";
30+
import { Application } from "jsr:@oak/oak";
3131

3232
const app = new Application();
3333

examples/tutorials/digital_ocean.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ To focus on the deployment, our app will simply be a `main.ts` file that returns
2626
a string as an HTTP response:
2727

2828
```ts title="main.ts"
29-
import { Application } from "https://deno.land/x/oak/mod.ts";
29+
import { Application } from "jsr:@oak/oak";
3030

3131
const app = new Application();
3232

examples/tutorials/google_cloud_run.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ To focus on the deployment, our app will simply be a `main.ts` file that returns
3131
a string as an HTTP response:
3232

3333
```ts title="main.ts"
34-
import { Application } from "https://deno.land/x/oak/mod.ts";
34+
import { Application } from "jsr:@oak/oak";
3535

3636
const app = new Application();
3737

examples/tutorials/prisma.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -163,7 +163,7 @@ You should see something similar to the following screenshot:
163163

164164
## Create your API routes
165165

166-
We'll use [`oak`](https://deno.land/x/oak) to create the API routes. Let's keep
166+
We'll use [`oak`](https://jsr.io/@oak/oak) to create the API routes. Let's keep
167167
them simple for now.
168168

169169
Let's create a `main.ts` file:
@@ -176,7 +176,7 @@ Then, in your `main.ts` file:
176176

177177
```ts
178178
import { PrismaClient } from "./generated/client/deno/edge.ts";
179-
import { Application, Router } from "https://deno.land/x/[email protected]/mod.ts";
179+
import { Application, Router } from "jsr:@oak/oak";
180180

181181
/**
182182
* Initialize.

examples/tutorials/word_finder.md

+11-11
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ export function renderHtml(pattern, words) {
4141
}
4242
searchResultsContent = `
4343
<p id="search-result-count" data-count="${words.length}">Words found: ${words.length}</p>
44-
<ul id="search-result" name="search-results">
44+
<ul id="search-result" name="search-results">
4545
${wordList}
4646
</ul>
4747
`;
@@ -54,17 +54,17 @@ export function renderHtml(pattern, words) {
5454
</head>
5555
<body>
5656
<h1>Deno Word Finder</h1>
57-
57+
5858
<form id="perform-search" name="perform-search" method="get" action="/api/search">
5959
<label for="search-text">Search text:</label>
6060
<input id="search-text" name="search-text" type="text" value="${pattern}" />
6161
<input type="submit" />
6262
</form>
63-
63+
6464
${searchResultsContent}
65-
65+
6666
<h2>Instructions</h2>
67-
67+
6868
<p>
6969
Enter a word using _ and ? as needed for unknown characters. Using ? means to include letters that aren't already used (you can think of it as a "Wheel of Fortune" placeholder). Using _ will find words that contain any character (whether it's currently "revealed" or not).
7070
<br />
@@ -133,15 +133,15 @@ export function search(pattern, dictionary) {
133133

134134
## Running a Deno Server
135135

136-
[Oak](https://deno.land/x/oak@v11.1.0) is a framework that lets you easily setup
137-
a server in Deno (analogous to JavaScript's Express) and we'll be using it to
138-
host our application. Our server will use our search function to populate our
139-
HTML template with data and then return the customized HTML back to the viewer.
140-
We can conveniently rely on the `/usr/share/dict/words` file as our dictionary
136+
[Oak](https://jsr.io/@oak/oak) is a framework that lets you easily setup a
137+
server in Deno (analogous to JavaScript's Express) and we'll be using it to host
138+
our application. Our server will use our search function to populate our HTML
139+
template with data and then return the customized HTML back to the viewer. We
140+
can conveniently rely on the `/usr/share/dict/words` file as our dictionary
141141
which is a standard file present on most Unix-like operating systems.
142142

143143
```jsx title="server.js"
144-
import { Application, Router } from "https://deno.land/x/oak/mod.ts";
144+
import { Application, Router } from "jsr:@oak/oak";
145145
import { search } from "./search.js";
146146
import { renderHtml } from "./render.js";
147147

0 commit comments

Comments
 (0)