w7a9q
Explore posts from serversCDCloudflare Developers
•Created by w7a9q on 4/29/2025 in #workers-help
Compatibility date releasing
Are versions of
@cloudflare/workers-types
released in hand with a new compatibility date? For example, @cloudflare/workers-types
4.20250429 was released, does that mean you can now set 2025-04-29 as the compatibility_date
in Wrangler config? I know you can put there any date and it automatically falls back to the nearest one but I would like to move only to actually existing ones and don't know how to find out that a new date is available.1 replies
CDCloudflare Developers
•Created by w7a9q on 4/21/2025 in #workers-help
Vite with WorkerEntrypoint (RPC)
I'm trying to run Hono app on Vite as Cloudflare Worker. I'm using
@cloudflare/vite-plugin
and I'm getting following error when vite serve
: Worker "core:user:minerva-gateway"'s binding "AUTH_SERVICE" refers to a service "core:user:minerva-auth", but no such service is defined.
The problem might be because I use WorkerEntrypoint (to enable RPC), does Vite support it? If so, where should I define the service?8 replies
Prettier plugin support with deno fmt
Hi, is there any way how to achieve this using
deno fmt
? Work around here is to chain deno fmt
with prettier execution (which handles only the plugin action), but that's a bit awkward.
https://tailwindcss.com/blog/automatic-class-sorting-with-prettier1 replies
CRON on Deploy
Hey, is CRON working fine on Deploy? Maybe I don't know how to use it. I have created a file cron.ts a put there:
Deno.cron('Run once a minute', '* * * * *', () => {
console.log('Hello, cron!');
});
It deployed on prod but there is nothing in CRON tab.
1 replies
Zed code completion
Does anyone uses Zed with auto completion for Deno as in: https://zed.dev/docs/languages/deno
My config:
and
What should I config?
5 replies
Exclude packages from test coverage
Hi, I would like to exclude the packages from the coverage when I run
deno test --coverage
.
Currently I also get generated jsons inside coverage
directory with url
like this: "url": "file:///Users/johndoe/Workspace/Dev/lld-test/node_modules/.deno/[email protected]/node_modules/wawoff2/decompress.js"",
How do I avoid it?
Note that I have it excluded in my deno.json
as:
3 replies
Types for global variables
I have defined a global variable:
globalThis.Args = validateArguments(Deno.args);
Now whenever I use it I get TS error: Element implicitly has an 'any' type because type 'typeof globalThis' has no index signature.deno-ts(7017)
How can I fix this?3 replies
Converting package.json into deno.json
Is there any documentation about what properties
deno.json
have and what are the expected values? I'm unable to find any.
I would like to put as many things as possible into deno.lock
from the package.json
. This would be really helpful.2 replies
Cannot run Nitro project
I have created a new Nitro project using
deno run -A npm:giget@latest nitro nitro-app --install
. It was successfull but after trying deno run dev
I get an error saying:
Is there any fix for that or is it a bug in Deno itself?8 replies