From d4ccf3c616b6cf60f3338d93d2890ff7dbb5584b Mon Sep 17 00:00:00 2001 From: Nbiba Bedis Date: Tue, 7 Oct 2025 22:31:59 +0100 Subject: [PATCH] bump to 2.5.10 --- README.md | 6 +++--- deno.json | 2 +- examples/custom_file_handler/custom_file_handler.ts | 2 +- examples/custom_web_server/custom_web_server.ts | 2 +- examples/hello_world/hello_world.ts | 2 +- examples/send_raw_binary/send_raw_binary.ts | 2 +- mod.ts | 2 +- src/webui.ts | 5 +++-- 8 files changed, 12 insertions(+), 11 deletions(-) diff --git a/README.md b/README.md index 3f2e64c..de7a283 100644 --- a/README.md +++ b/README.md @@ -2,7 +2,7 @@ ![Logo](https://raw.githubusercontent.com/webui-dev/webui-logo/main/webui_deno.png) -# Deno-WebUI v2.5.9 (Beta) +# Deno-WebUI v2.5.10 (Beta) [last-commit]: https://img.shields.io/github/last-commit/webui-dev/webui?style=for-the-badge&logo=github&logoColor=C0CAF5&labelColor=414868 [release-version]: https://img.shields.io/github/v/tag/webui-dev/webui?style=for-the-badge&logo=webtrees&logoColor=C0CAF5&labelColor=414868&color=7664C6 @@ -46,9 +46,9 @@ is written in Deno using WebUI as the GUI library. Specific version: ```js -import { WebUI } from "jsr:@webui/deno-webui@2.5.9"; +import { WebUI } from "jsr:@webui/deno-webui@2.5.10"; // Or -import { WebUI } from "https://deno.land/x/webui@2.5.9/mod.ts"; +import { WebUI } from "https://deno.land/x/webui@2.5.10/mod.ts"; ``` Latest version: diff --git a/deno.json b/deno.json index 4090b80..5d70098 100644 --- a/deno.json +++ b/deno.json @@ -1,6 +1,6 @@ { "name": "@webui/deno-webui", - "version": "2.5.9", + "version": "2.5.10", "exports": "./mod.ts", "imports": { "@std/fs": "jsr:@std/fs@^1.0.19", diff --git a/examples/custom_file_handler/custom_file_handler.ts b/examples/custom_file_handler/custom_file_handler.ts index 4282c3f..4050b67 100644 --- a/examples/custom_file_handler/custom_file_handler.ts +++ b/examples/custom_file_handler/custom_file_handler.ts @@ -5,7 +5,7 @@ // import { WebUI } from "../../mod.ts"; // To import from online package registry (Production) -import { WebUI } from "@webui/deno-webui"; // import {WebUI} from "https://deno.land/x/webui@2.5.9/mod.ts"; +import { WebUI } from "@webui/deno-webui"; // import {WebUI} from "https://deno.land/x/webui@2.5.10/mod.ts"; // Return HTTP header + file raw binary content const getFile = async ( diff --git a/examples/custom_web_server/custom_web_server.ts b/examples/custom_web_server/custom_web_server.ts index 3b4a73a..95ef96e 100644 --- a/examples/custom_web_server/custom_web_server.ts +++ b/examples/custom_web_server/custom_web_server.ts @@ -5,7 +5,7 @@ // import { WebUI } from "../../mod.ts"; // To import from online package registry (Production) -import { WebUI } from "@webui/deno-webui"; // import {WebUI} from "https://deno.land/x/webui@2.5.9/mod.ts"; +import { WebUI } from "@webui/deno-webui"; // import {WebUI} from "https://deno.land/x/webui@2.5.10/mod.ts"; function allEvents(e: WebUI.Event) { /* diff --git a/examples/hello_world/hello_world.ts b/examples/hello_world/hello_world.ts index c0a6019..72f801c 100644 --- a/examples/hello_world/hello_world.ts +++ b/examples/hello_world/hello_world.ts @@ -5,7 +5,7 @@ // import { WebUI } from "../../mod.ts"; // To import from online package registry (Production) -import { WebUI } from "@webui/deno-webui"; // import {WebUI} from "https://deno.land/x/webui@2.5.9/mod.ts"; +import { WebUI } from "@webui/deno-webui"; // import {WebUI} from "https://deno.land/x/webui@2.5.10/mod.ts"; const myHtml = ` diff --git a/examples/send_raw_binary/send_raw_binary.ts b/examples/send_raw_binary/send_raw_binary.ts index b0f95c1..eb0dd84 100644 --- a/examples/send_raw_binary/send_raw_binary.ts +++ b/examples/send_raw_binary/send_raw_binary.ts @@ -5,7 +5,7 @@ // import { WebUI } from "../../mod.ts"; // To import from online package registry (Production) -import { WebUI } from "@webui/deno-webui"; // import {WebUI} from "https://deno.land/x/webui@2.5.9/mod.ts"; +import { WebUI } from "@webui/deno-webui"; // import {WebUI} from "https://deno.land/x/webui@2.5.10/mod.ts"; const myHtml = ` diff --git a/mod.ts b/mod.ts index 85bd280..6b1f964 100644 --- a/mod.ts +++ b/mod.ts @@ -16,7 +16,7 @@ * ## Minimal Example * * ```ts - * import { WebUI } from "jsr:@webui/deno-webui@2.5.9"; + * import { WebUI } from "jsr:@webui/deno-webui@2.5.10"; * * const myWindow = new WebUI(); * await myWindow.show(" Hello World! "); diff --git a/src/webui.ts b/src/webui.ts index dbeef94..d19046d 100644 --- a/src/webui.ts +++ b/src/webui.ts @@ -1,5 +1,5 @@ /* - WebUI Deno 2.5.9 + WebUI Deno 2.5.10 http://webui.me https://github.com/webui-dev/deno-webui Copyright (c) 2020-2025 Hassan Draga. @@ -17,6 +17,7 @@ import type { WebUILib, } from "./types.ts"; import { fromCString, toCString, WebUIError } from "./utils.ts"; +import metadata from "../deno.json" with { type: "json" }; // Register windows to bind instance to WebUI.Event const windows: Map = new Map(); @@ -1146,7 +1147,7 @@ export class WebUI { * @returns The version string (e.g., "2.5.5"). */ static get version(): string { - return "2.5.9"; + return metadata.version; } }