Skip to content

Commit e428f30

Browse files
committed
Switch from deno.land to JSR
1 parent 79802d5 commit e428f30

6 files changed

Lines changed: 23 additions & 13 deletions

File tree

README.md

Lines changed: 14 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -44,15 +44,25 @@ is written in Deno using WebUI as the GUI library.
4444
## Installation
4545

4646
Specific version:
47-
`import { WebUI } from "https://deno.land/x/webui@2.5.4/mod.ts";`
4847

49-
Latest version: `import { WebUI } from "https://deno.land/x/webui/mod.ts";`
48+
```js
49+
import { WebUI } from "@webui/deno-webui@2.5.4";
50+
// Or
51+
import { WebUI } from "https://deno.land/x/webui@2.5.4/mod.ts";
52+
```
53+
54+
Latest version:
55+
56+
```js
57+
import { WebUI } from "jsr:@webui/deno-webui";
58+
// Or
59+
import { WebUI } from "https://deno.land/x/webui/mod.ts";
60+
```
5061

5162
## Minimal Example
5263

5364
```js
54-
import { WebUI } from "https://deno.land/x/webui@2.5.4/mod.ts";
55-
// Or import { WebUI } from "jsr:@webui/deno-webui";
65+
import { WebUI } from "jsr:@webui/deno-webui";
5666

5767
const myWindow = new WebUI();
5868
myWindow.show('<html><script src="webui.js"></script> Hello World! </html>');

examples/custom_file_handler/custom_file_handler.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@
44
// To import from local (Debugging and Development)
55
// import { WebUI } from "../../mod.ts";
66

7-
// To import from online `https://deno.land` (Production)
8-
import { WebUI } from "https://deno.land/x/webui@2.5.4/mod.ts";
7+
// To import from online package registry (Production)
8+
import { WebUI } from "@webui/deno-webui@2.5.4"; // import {WebUI} from "https://deno.land/x/webui@2.5.4/mod.ts";
99

1010
// Return HTTP header + file raw binary content
1111
const getFile = async (

examples/custom_web_server/custom_web_server.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@
44
// To import from local (Debugging and Development)
55
// import { WebUI } from "../../mod.ts";
66

7-
// To import from online `https://deno.land` (Production)
8-
import { WebUI } from "https://deno.land/x/webui@2.5.4/mod.ts";
7+
// To import from online package registry (Production)
8+
import { WebUI } from "@webui/deno-webui@2.5.4"; // import {WebUI} from "https://deno.land/x/webui@2.5.4/mod.ts";
99

1010
function allEvents(e: WebUI.Event) {
1111
/*

examples/hello_world/hello_world.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@
44
// To import from local (Debugging and Development)
55
// import { WebUI } from "../../mod.ts";
66

7-
// To import from online `https://deno.land` (Production)
8-
import { WebUI } from "https://deno.land/x/webui@2.5.4/mod.ts";
7+
// To import from online package registry (Production)
8+
import { WebUI } from "@webui/deno-webui@2.5.4"; // import {WebUI} from "https://deno.land/x/webui@2.5.4/mod.ts";
99

1010
const myHtml = `<!DOCTYPE html>
1111
<html>

examples/send_raw_binary/send_raw_binary.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@
44
// To import from local (Debugging and Development)
55
// import { WebUI } from "../../mod.ts";
66

7-
// To import from online `https://deno.land` (Production)
8-
import { WebUI } from "https://deno.land/x/webui@2.5.4/mod.ts";
7+
// To import from online package registry (Production)
8+
import { WebUI } from "@webui/deno-webui@2.5.4"; // import {WebUI} from "https://deno.land/x/webui@2.5.4/mod.ts";
99

1010
const myHtml = `<!DOCTYPE html>
1111
<html>

mod.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
* ## Minimal Example
1717
*
1818
* ```ts
19-
* import { WebUI } from "https://deno.land/x/webui@2.5.4/mod.ts";
19+
* import { WebUI } from "@webui/deno-webui@2.5.4";
2020
*
2121
* const myWindow = new WebUI();
2222
* myWindow.show("<html><script src=\"webui.js\"></script> Hello World! </html>");

0 commit comments

Comments
 (0)