Deno

D

Deno

Chat about Deno, a modern runtime for JavaScript and TypeScript.

Join

LSP becomes slow when importing large json

Filtered perf measures ``` semantic_tokens_range (6638ms) request (6638ms) inlay_hint (105800ms)...

Can you specify a git hash instead of version for npm modules?

As the title mentions, I'd like to use a specific commit for an npm package. Is this possible?

arch linux deno package might be broken

Installing deno on arch linux appears to 404 on all the mirrors. I just synchronized them all as well so I think theres something else going on... sudo pacman -Sy deno ``` :: Synchronizing package databases......

500 error in httpsdeno.landxfresh1.1.2srcserverhtmlescape.ts

I'm having problems on my CI because this dependency returns a 500 error from deno.land. How can I debug it/fix the problem?

Disable Deno VSCode TS types

This is a recent updates. I like to code in Javascript and the new types are incredibly distracting- I can't read the code. How to disable this please?...

discord.js with new npm imports

Has anyone successfully used https://www.npmjs.com/package/discord.js with Deno's new import functionality? I ran their basic example and found it hangs without error when trying to login using Client.login

Websocket client with headers

I'm trying to create a websocket client that has an authorization header. It seems that a lot of the functionality of websockets has been moved out of the standard library, and I don't see much in the core. Any advice on how to proceed? For reference, I'm trying to do the following in Deno, rather than by using websocat: https://trading-api.readme.io/reference/introduction#connecting...

Can I programatically trigger a SIGINT event?

I would like to trigger a SIGINT event from a file, is there a way to do this? For example in Node, you can do process.emit('sigint');

i think the language server is broken

was working perfectly fine last night, and im not sure how to fix

How to forward a reference to a component

I created this sample to exemplify what I don't understand. Using the Fresh framework, I created the following Input component: ```typescript import { JSX } from "preact"; interface Input...

[Fixed] Package cannot read a file from itself when loaded from url

I have a package A, which has to read an html file located at the package's root, such as the following file tree exists : --- mod.ts --- swagger.html Locally it works, but as soon as I load it into Package B from deno.land/x/ it cannot find the swagger.html file....

how can I enable Deno vscode all inlay hints at once?

There seem to be too many config options that I have to set to true. Is there a way to just enable everything inlay hints with one option?

--max-stack-size

I can set the maximum call stack size on deno?

Deno Subprocess piping is slow when piping large data between processes

I could be wrong about this but this is what I have been facing on my M1 Mac. The following code snippet, pipes stdout of one process to another, and it works seamlessly for small json data. ```js import { copyN } from "https://deno.land/std/io/util.ts";...

Deno Deploy --cert flag

I am using deno fresh and supabase postgres. When in local environment I use --cert flag to set ssl certificate, but in deno deploy I didn't know how to set --cert flag

Import from variable path?

Howdy - I'm trying to make my Cloudflare Workers app self-hostable in a Docker Container. To do this, I'm going to run it with Deno when self-hosting. Ideally I would like to change none of my actual application code and defer any environment-specific setup to different files. ...

What is the best database service to plug into your application hosted on Deno Deploy?

Deno Deploy is hosted on Google Cloud, but I was wondering: is a database service from another company, but also hosted on Google Cloud, would result in a good latency that resolve inside the same region datacenter, or will it fatally get out in the internet and induce terrible latency? What about a database service hosted on AWS then? Is anybody have numbers to share?...

Sharing streams

So I have a small project where I want to use streams. But now I need two different transform streams on the same input ```ts const file = await Deno.open(path); ...

How can I create connections pool for postgres with denodb?

How can I create connections pool for postgres with denodb?

Fresh and MDX

What is most proper way of using mdx with freshfresh kanalına mesaj gönder