Deno

D

Deno

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

Join

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

TTY vs console.log vs stdin and setRaw for dummies?

Hi all! Would someone be able to clear some things out with regards to deno inputs and outputs: - what exactly is one referring to, when talking about TTY? (in deno) is it just another name for console, or some of the std streams (stdin/stdout/stderr) - what about raw mode? there has been Deno.setRaw() but apparently removed in Deno 1.26. I think there was at some point a writer/reader/stream.setRaw() method or somesuch, but they maybe disappeared too. What is raw mode supposed to do, and can one enable it in the current Deno version somehow. - does deno do a lot of processing on console.log(stuff) versus writing raw bytes to std streams? What kind of processing, if any? And is the amount of processing the same whether deno is running on a windows terminal/vs code terminal, or as a child process of another deno process? ...

Is there an event that triggers when an Oak Deploy instance is closing?

I cannot find anything in the Deploy docs, specifically. But I see that the Oak app runs a callback when the server closes. Something like this should work, I think: ```ts app.listen({ port: 8080 }).then(() => {...

How to get my Deno nameserver accessible to the internet?

This is how it's setup: ``` const socket = Deno.listenDatagram({ hostname: "127.0.0.1", port: 53,...

How to debug why an island is working locally but not working when deployed?

I have an Island containing a select that changes the URL when a new item is selected. It is also disabled afterwards, since the "selected page" might need a bit time to load. When testing it locally everything works fine, but when pushing and it is deployed to deno deploy the select does nothing. The devtools also say that no event listener has been attached. The code that is being fetched looks correct. I added two console.log to see whether they are called on the client: first line in the Island and first line in the event handler. None of them reports to the browser console, so they are not executed on the client. I disabled all adblockers. How can I debug / understand what is going on?...

deps.ts & importMap.json

I a looking at system in ultra1 What determine what should go in importMap.json vs what sdhould go in deps.ts`...

OR interfaces?

What should EITHER mean? ``` interface ONE { one: number;...

`multipart` file upload streams

I'm trying to handle multipart forms and I am new to Deno and noticed that the MultipartReader mentioned in a few blog posts seems to be gone in newer versions of the standard library. Does that also mean that there is no way anymore to control memory usage with something like a maxMemory property? Because as far as I understand you are supposed to just use request.formData() which provides no way of handling this.

Is it possible to compile a project using `Deno.connectTlsalpnProtocols` (unstable API)?

error: Module not found
^ This is the error I get when I try to run my compiled program. Not sure if the unstable API is the issue or something else....

deno_runtime inspector service not starting...

Hi! I'm embedding deno_runtime, and I can't get the inspector working. I set BootstrapOptions.inspect to true, and WorkerOptions maybe_inspector_server and should_break_on_first_statement. The server is set to listen on 127.0.0.1:9229. server in inspector_server.rs is called, and prints
Debugger listening on ws://127.0.0.1:9229/ws/5b5725e4-ac19-4f4d-ba1b-f6d44ce9430f
Visit chrome://inspect to connect to the debugger.
Deno is waiting for debugger to connect.
Debugger listening on ws://127.0.0.1:9229/ws/5b5725e4-ac19-4f4d-ba1b-f6d44ce9430f
Visit chrome://inspect to connect to the debugger.
Deno is waiting for debugger to connect.
...

types not inferred from npm packages

im importing deepSignal an npm package with ts support however non of the returned types are inferred, i tested the same package in nodejs and it works there