From b33e42e093625ca6959e0f434a5c5515cd44cc5c Mon Sep 17 00:00:00 2001 From: MAKS11060 <31521952+MAKS11060@users.noreply.github.com> Date: Sat, 15 Mar 2025 12:24:43 +0200 Subject: [PATCH 1/5] Replace deno.land to jsr --- deploy/api/runtime-broadcast-channel.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/deploy/api/runtime-broadcast-channel.md b/deploy/api/runtime-broadcast-channel.md index dcc806650..85ed5731a 100644 --- a/deploy/api/runtime-broadcast-channel.md +++ b/deploy/api/runtime-broadcast-channel.md @@ -59,7 +59,7 @@ a simple server that uses `BroadcastChannel` to synchornize state across all running instances of the server. ```ts -import { Hono } from "https://deno.land/x/hono/mod.ts"; +import { Hono } from "jsr:@hono/hono"; // in-memory cache of messages const messages = []; From f6ef223d62c37f953890d14d8f493186f1f17f91 Mon Sep 17 00:00:00 2001 From: MAKS11060 <31521952+MAKS11060@users.noreply.github.com> Date: Sat, 15 Mar 2025 12:41:54 +0200 Subject: [PATCH 2/5] Replace deno.land to jsr --- examples/tutorials/word_finder.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/examples/tutorials/word_finder.md b/examples/tutorials/word_finder.md index 75521fe55..0530f6c34 100644 --- a/examples/tutorials/word_finder.md +++ b/examples/tutorials/word_finder.md @@ -133,7 +133,7 @@ export function search(pattern, dictionary) { ## Running a Deno Server -[Oak](https://deno.land/x/oak@v11.1.0) is a framework that lets you easily setup +[Oak](https://jsr.io/@oak/oak) is a framework that lets you easily setup a server in Deno (analogous to JavaScript's Express) and we'll be using it to host our application. Our server will use our search function to populate our HTML template with data and then return the customized HTML back to the viewer. @@ -141,7 +141,7 @@ We can conveniently rely on the `/usr/share/dict/words` file as our dictionary which is a standard file present on most Unix-like operating systems. ```jsx title="server.js" -import { Application, Router } from "https://deno.land/x/oak/mod.ts"; +import { Application, Router } from "jsr:@oak/oak"; import { search } from "./search.js"; import { renderHtml } from "./render.js"; From 368383a823d7138d3fe7efc74cb638efadc23836 Mon Sep 17 00:00:00 2001 From: MAKS11060 <31521952+MAKS11060@users.noreply.github.com> Date: Sat, 15 Mar 2025 12:54:26 +0200 Subject: [PATCH 3/5] Replace deno.land to jsr --- examples/tutorials/aws_lightsail.md | 2 +- examples/tutorials/digital_ocean.md | 2 +- examples/tutorials/google_cloud_run.md | 2 +- examples/tutorials/prisma.md | 4 ++-- 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/examples/tutorials/aws_lightsail.md b/examples/tutorials/aws_lightsail.md index c00e31666..9b591bd04 100644 --- a/examples/tutorials/aws_lightsail.md +++ b/examples/tutorials/aws_lightsail.md @@ -27,7 +27,7 @@ To focus on the deployment, our app will simply be a `main.ts` file that returns a string as an HTTP response: ```ts -import { Application } from "https://deno.land/x/oak/mod.ts"; +import { Application } from "jsr:@oak/oak"; const app = new Application(); diff --git a/examples/tutorials/digital_ocean.md b/examples/tutorials/digital_ocean.md index df9b4e068..87cc6e8c0 100644 --- a/examples/tutorials/digital_ocean.md +++ b/examples/tutorials/digital_ocean.md @@ -26,7 +26,7 @@ To focus on the deployment, our app will simply be a `main.ts` file that returns a string as an HTTP response: ```ts title="main.ts" -import { Application } from "https://deno.land/x/oak/mod.ts"; +import { Application } from "jsr:@oak/oak"; const app = new Application(); diff --git a/examples/tutorials/google_cloud_run.md b/examples/tutorials/google_cloud_run.md index 2936d8c80..a9e59dacb 100644 --- a/examples/tutorials/google_cloud_run.md +++ b/examples/tutorials/google_cloud_run.md @@ -31,7 +31,7 @@ To focus on the deployment, our app will simply be a `main.ts` file that returns a string as an HTTP response: ```ts title="main.ts" -import { Application } from "https://deno.land/x/oak/mod.ts"; +import { Application } from "jsr:@oak/oak"; const app = new Application(); diff --git a/examples/tutorials/prisma.md b/examples/tutorials/prisma.md index ff6913062..8662e5978 100644 --- a/examples/tutorials/prisma.md +++ b/examples/tutorials/prisma.md @@ -163,7 +163,7 @@ You should see something similar to the following screenshot: ## Create your API routes -We'll use [`oak`](https://deno.land/x/oak) to create the API routes. Let's keep +We'll use [`oak`](https://jsr.io/@oak/oak) to create the API routes. Let's keep them simple for now. Let's create a `main.ts` file: @@ -176,7 +176,7 @@ Then, in your `main.ts` file: ```ts import { PrismaClient } from "./generated/client/deno/edge.ts"; -import { Application, Router } from "https://deno.land/x/oak@v11.1.0/mod.ts"; +import { Application, Router } from "jsr:@oak/oak"; /** * Initialize. From dc62c403e1b7c4d79b38dbeea95eda919dd2ae0d Mon Sep 17 00:00:00 2001 From: MAKS11060 <31521952+MAKS11060@users.noreply.github.com> Date: Sat, 15 Mar 2025 13:22:42 +0200 Subject: [PATCH 4/5] fix: fmt --- examples/tutorials/word_finder.md | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/examples/tutorials/word_finder.md b/examples/tutorials/word_finder.md index 0530f6c34..7b9ec3a54 100644 --- a/examples/tutorials/word_finder.md +++ b/examples/tutorials/word_finder.md @@ -41,7 +41,7 @@ export function renderHtml(pattern, words) { } searchResultsContent = `
Words found: ${words.length}
-
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).
@@ -133,8 +133,8 @@ export function search(pattern, dictionary) {
## Running a Deno Server
-[Oak](https://jsr.io/@oak/oak) is a framework that lets you easily setup
-a server in Deno (analogous to JavaScript's Express) and we'll be using it to
+[Oak](https://jsr.io/@oak/oak) is a framework that lets you easily setup a
+server in Deno (analogous to JavaScript's Express) and we'll be using it to
host our application. Our server will use our search function to populate our
HTML template with data and then return the customized HTML back to the viewer.
We can conveniently rely on the `/usr/share/dict/words` file as our dictionary
From 9cb09ff99db29f9fcf67775c88824afe16ce1d20 Mon Sep 17 00:00:00 2001
From: MAKS11060 <31521952+MAKS11060@users.noreply.github.com>
Date: Sat, 15 Mar 2025 11:32:40 +0000
Subject: [PATCH 5/5] fmt
---
examples/tutorials/word_finder.md | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/examples/tutorials/word_finder.md b/examples/tutorials/word_finder.md
index 7b9ec3a54..23a75dc71 100644
--- a/examples/tutorials/word_finder.md
+++ b/examples/tutorials/word_finder.md
@@ -134,10 +134,10 @@ export function search(pattern, dictionary) {
## Running a Deno Server
[Oak](https://jsr.io/@oak/oak) is a framework that lets you easily setup a
-server in Deno (analogous to JavaScript's Express) and we'll be using it to
-host our application. Our server will use our search function to populate our
-HTML template with data and then return the customized HTML back to the viewer.
-We can conveniently rely on the `/usr/share/dict/words` file as our dictionary
+server in Deno (analogous to JavaScript's Express) and we'll be using it to host
+our application. Our server will use our search function to populate our HTML
+template with data and then return the customized HTML back to the viewer. We
+can conveniently rely on the `/usr/share/dict/words` file as our dictionary
which is a standard file present on most Unix-like operating systems.
```jsx title="server.js"