webui-dev / deno-webui

Use any web browser as GUI, with Deno in the backend and HTML5 in the frontend.
https://webui.me/
MIT License
241 stars 14 forks source link

Update for Deno2 #59

Open nhrones opened 1 week ago

nhrones commented 1 week ago

Update for Deno-2.0, In the /deno-webui/src/utils.ts runCommand function, line# 30: Deno.run is deprecated and Deno recommends using Deno.Command instead.

Note: This symbol is soft-removed as of Deno 2. Its types have been removed but its implementation remains in order to reduce breaking changes. You could ignore "property does not exist" TypeScript errors by using the //@ts-ignore directive, In my opinion, it would be best to update to using new Deno.Command().

AlbertShown commented 1 week ago

Since Deno wrapper is not stable yet, I guess it's okay to update APIs. Can you push a PR?