Deno

D

Deno

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

Join

Segmentation fault when using johnny-five with deno

I want to using johnny-five with deno, here is my code: ```ts // @deno-types="npm:@types/johnny-five" import { Board, Led } from "johnny-five"; ...

ReadableStream doesn't work in production

I'm following the Deno SSE example to set up a GET route for SSE payloads. Exact I got from the SSE examples works ONLY in local development. In production, the requests are stuck in "pending" forever. Is there something different about localhost and production environment that I have to change?...

making a cli with arrow keys for navigating prior commands

How would one do this with Deno? I've tried messing with "prompt" and Deno.stdin, but I can't seem to figure it out, nor can I find examples online

Using SSL with deno deploy and supabase postgres direct connection

Hello 👋 I've been trying to setup an SSL connection with a supabase postgreSQL database using a direct connection. Unfortunaly it looks impossible to do it on Deno deploy. Am I right? I've been trying my best to figure out a solution but it looks like I need to either use --cert or the environment variables SSL_CERT_FILE and DENO_TLS_CA_STORE to make it work locally. However, on deno deploy, both options can't work: --cert isn't usable and DENO_TLS_CA_STORE is forbidden 😢 ...

tailwind 4 How to update?

Hey, everybody. How to upgrade tailwind in fresh.deno to version 4?...

Caching node dependencies in CI error

When I run my workflow without DENO_DIR set, my tests in CI pass. https://github.com/udibo/juniper/actions/runs/14962769325/job/42027376603 When I tried adding caching like in the deno docs, I get a failure. https://docs.deno.com/runtime/reference/continuous_integration/#caching-dependencies Here you can see a build that failed with the following errors. It appears the node dependencies work differently if you have a DENO_DIR specified, resulting in failure....

Using deno_kv in rust?

I like Deno's api and kv integration works with Sqlite for local installation. I was wondering if it's possible to use the new Rust crate for rust projects with Rust structs and enums using some form of serde integration? And what something like this would like.

How to use permissions with node scripts

I wanted to setup an Angular project with deno and i noticed that if i run deno task ng or deno task serve it just runs those commands from the package.json without using the deno permission system. I guess that makes sense for compatibility reasons but I want to run ng with only the permissions it needs e.g. --allow-read=. --allow-net or something like that. Is there any way of doing that? Are other people doing Angular 19 projects with deno and have a working setup with minimal permiss...

Multiple kv connections in deno deploy

Hey guys, New to Deno & deno deploy 🤗 ! I'm trying to understand if I can create a subhosting deployment with its own databases created with the API, so that this subhosting deployment get its own queue / store...

error: unexpected argument --experimental-network-inspection when trying to debug

I'm using the following vscode launch.json config ```json { "name": "deno run",...

build as CommonJS a deno module built for ESM only

Hi, i was trying to import a npm module @fedify/fedify to a nestjs backend and was not sucessful, cause I figured out that fedify is built for ESM only (with deno) and nestjs is built on commonjs. but i found out this tutorial https://deno.com/blog/publish-esm-cjs-module-dnt ...

Lock file in JSR library?

Should one use a lock file in a JSR library or not? If not, should one put it in .gitignore or rather set lock: false in deno.json?

Support for tags in custom Deno lint plugins

Hi everyone! I’m working on a custom Deno lint plugin that currently defines about ten rules. I’d like to be able to group those rules into named “tags” (for example, frontend, backend, performance, etc.) so that in one project I can enable only the rules tagged frontend and in another project only those tagged backend. Right now, Deno’s built-in lint rules support tagging and allow you to enable or disable rules by tag, but custom plugins don’t expose that same functionality. Would it be possible to add tag support for custom lint plugins so we can define and consume tags just like the built-in rules? Any guidance on how to implement this or interest in adding it to the core would be greatly appreciated thanks!...

Possible to use CsvParseStream in Node.js

Hi, is it possible to use nodejs file streams with deno's stdlib? ```js import fs from "node:fs"; import { CsvParseStream } from "@std/csv"; ...

Unexpected `deno.lock` update?

In this commit, how was deno.lock updated to add a new transitive dependency to @deno/cache-dir, when its version wasn’t touched at all?

Deno 2.4 emit for bundling with "npm:" imports inside code

Hi People, i try to bundle my code with Deno emit. Inside my code i am using packages from npm, like npm:solid-js@^1.9.6. It looks like the loader from bundle can not resolve the package. Does someone know, if it is somehow possible to make it work ? The Error: Bundler.loader.load(npm:solid-js@^1.9.6) failed: Module "npm:solid-js@^1.9.6" was an unsupported module kind....

Deno constantly panics after reporting error about NPM modules

HI, I am having quite the issue atm, i wanted to use elevenlabs SDK from Npm, but apparently this has corrupted something in my Deno installation I am now unable to import any kind of module (in the REPL) and the LSP dont work anymore....
No description

How can I instantiate a FetchEvent in my test?

Hi! I'm testing my Service Worker library that accepts a FetchEvent as an input. In my tests of that library, I want to instantiate a FetchEvent to test it, but I'm getting
error: ReferenceError: FetchEvent is not defined
instead. My compiler options are:...

Freeh mono repro example?

Anyone made a monorepro with nx or turbo that uses shadcn ui components?