Leokuma
Leokuma
DDeno
Created by lorenzoy on 2/1/2025 in #help
unable to see documentation on deno.land/x
You can still generate the docs locally First download the package:
deno cache --vendor https://deno.land/x/jose@v5.9.6/index.ts
deno cache --vendor https://deno.land/x/jose@v5.9.6/index.ts
It will be downloaded to a folder called vendor Then generate the docs for it:
deno doc --html --name="jose" ./vendor/deno.land/x/jose@v5.9.6/index.ts
deno doc --html --name="jose" ./vendor/deno.land/x/jose@v5.9.6/index.ts
Docs will be generated in a folder called docs by default. Open the file docs/index.html in your browser to navigate through the docs
3 replies
DDeno
Created by beerman on 1/20/2025 in #help
batching tasks
Something like this (untested):
import { chunk } from "jsr:@std/collections/chunk";

for (const spinGroup of chunk(...data, 100)) {
const spins = spinGroup.map((spin) => this.processSpin(spin));
await Promise.all(spins);
}
import { chunk } from "jsr:@std/collections/chunk";

for (const spinGroup of chunk(...data, 100)) {
const spins = spinGroup.map((spin) => this.processSpin(spin));
await Promise.all(spins);
}
12 replies
DDeno
Created by Abdullah Khan on 1/21/2025 in #help
Deno needs better memory leaks debugging tools
I have double checked all of my code to find any clue, but nothing found!
Have you checked inside your dependencies as well?
I am writing this to know if there are any tools that I can use with Deno to debug this issue?
I know that Deno.test() is able to detect some leaks.
Is there any plan to develop some more lower-level tools that can allow debugging these kind of anonymous memory leaks?
AFAIK, no.
10 replies
DDeno
Created by helloword on 1/18/2025 in #help
Full-stack development based on Deno2?
IDK about projects, but there's this doc: https://docs.deno.com/examples/vue_tutorial/
5 replies
DDeno
Created by xEska on 1/17/2025 in #help
deno on alpine-linux
I just realized you did add to Path. I guess $HOME is not resolving to the right directory. Maybe you should instead add /root/.deno/bin to PATH
6 replies
DDeno
Created by xEska on 1/17/2025 in #help
deno on alpine-linux
Try to log out and then log in again If that doesnt work, I guess deno didnt get added to PATH You can either add deno to PATH manually or call the executable with the full path: /root/.deno/bin/deno
6 replies
DDeno
Created by CodyC on 1/12/2025 in #help
Reliable pattern for cleaning up resources as process exists?
Interesting. Maybe this question is worth opening an issue. I wonder if it would be possible for the Deno runtime itself to automatically cleanup resources declared with using. Not sure if that could work, whether Deno would know the order to cleanup each using
5 replies
DDeno
Created by eriba on 1/10/2025 in #help
deno 2.1.5 not running in Azure Container App environment
No worries. I was just wondering if the "problem" was in the Deno runtime itself or in your code. Wondering if the app was just one line - a simple console.log, or a Deno.serve() - it would work or not. The guys are implementing Otel, maybe it has something to do with the problem, IDK
6 replies
DDeno
Created by eriba on 1/10/2025 in #help
deno 2.1.5 not running in Azure Container App environment
Are you able to provide a simplified, reproducible code snippet?
6 replies
DDeno
Created by scarf on 12/25/2024 in #help
std JSON serializer/deserializer with Set and Map support
There is some builtin serialization because KV supports Map and Set, but I dont think it's exposed to users: https://docs.deno.com/deploy/kv/manual/key_space/#values
6 replies
DDeno
Created by scarf on 12/25/2024 in #help
std JSON serializer/deserializer with Set and Map support
You can also try msgpack, but I'm not sure if it supports Set and Map
6 replies
DDeno
Created by Cyan on 12/19/2024 in #help
How to set reuseaddr in `Deno.serve`?
Not sure. I'm unable to test it right now
6 replies
DDeno
Created by Cyan on 12/19/2024 in #help
How to set reuseaddr in `Deno.serve`?
IDK, but maybe because it probably doesn't work on Windows?
6 replies
DDeno
Created by Cyan on 12/19/2024 in #help
How to set reuseaddr in `Deno.serve`?
Deno.serve(
{reusePort: true},
() => new Response('hello')
)
Deno.serve(
{reusePort: true},
() => new Response('hello')
)
deno run -A --unstable-net
deno run -A --unstable-net
6 replies
DDeno
Created by callmephilip on 12/17/2024 in #help
Cannot access files inside package when running from jsr
If it's a simple init script that doesn't depend on an import map or deno.json, you can try to run it via HTTPS:
deno run https://jsr.io/@myorg/stuff/0.1.21/project-template/init.ts
deno run https://jsr.io/@myorg/stuff/0.1.21/project-template/init.ts
If it does depend on deno.json, I don't know how to make it work
3 replies
DDeno
Created by Robbie on 12/18/2024 in #help
Issues with importing from npm - should I switch to esm.sh?
Feel free to use esm.sh. Even the Deno Team recommends importing Preact from esm.sh for example
2 replies
DDeno
Created by qilp on 12/10/2024 in #help
Support implicit package imports?
What error do you get in Deno?
3 replies
DDeno
Created by Ben on 12/10/2024 in #help
Which logger do you use?
4 replies
DDeno
Created by Cyan on 12/11/2024 in #help
Error sending request too quick to npm
Maybe 2k requests in paralell is too much for Deno to handle? You could try to fetch 100 at a time Anyway, the error msg you're getting could be more clear
5 replies
DDeno
Created by svet on 12/9/2024 in #help
Have a trouble using github hooks and deno
That was fast ⚡
17 replies