Deno

D

Deno

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

Join

Problem with my api route

I created a dummy login api route under 'routes/api/login.ts' and when I call fetch on the url like so:
fetch("/api/login")
fetch("/api/login")
it fails because that's an 'invalid route'

ERROR “Promote to Productin” in Deno Deploy

On the “Over view” screen, When I press “Promote to Production” to switch deployments, I get a message like the one in the image. Is there a workaround?...
No description

Tell `deno outdated` to show patch level updates

Is there a way to tell deno outdated to show ALL updates, even those affecting only the patch level? I fI have "@std/cli": "jsr:@std/cli@^1.0.0" in deno.json, deno outdated won't say anything, even though the current version is 1.0.11. It's also unclear what version will actually be used in that case since the ^ is specified. The most recent in the cache? Does deno outdated silently update to the last patch level?...

Bad resource ID ERROR

error: Uncaught (in promise) BadResource: Bad resource ID
at node:http:306:27
at HttpsClientRequest._writeHeader (node:http:398:7) ...

Deno application with just a Websocket connection gives 504 in Prod Deno Deploy

I have a simple Deno application that opens a websocket connection and uses a supabase client to insert the data to the table. When I run the app locally, everything works fine, when I push the code to main and the app gets deployed, when I open the production URL, the site never fully loads and eventually I get a 504, I tried sending a basic Response with Deno.Serve but that did not work. I am not entirely sure what else to do, I started using Deno this weekend and it's also my first time using Websockets, if someone could guide me in the right direction I would hugely appreciate it! Thank you in advance and I apologize if this is not clear enough...

ROAD MAP 2025? Please read whole message

Hi Deno team, Could you please share the roadmap for the Deno ecosystem for 2025 when available? This information is important for companies like ours as we plan our adoption strategies and resource allocation for the coming year. Having visibility into the 2025 roadmap will allow us to: * Effectively evaluate Deno's future direction....

Jupyter Docker with Deno?

Hello all, is there a working Dockerfile based on jupyter/base-notebook that installs the Deno Kernel? Thank UUUUU

hey, I'm trying to use npm:express-openid-connect@^2.17.1. However, when I try to:

import { auth, ConfigParams, requiresAuth } from "express-openid-connect"; I get the error: error: Uncaught SyntaxError: The requested module 'express-openid-connect' does not provide an export named 'requiresAuth' I think this is because of the way this is exported by the library:...

How to get problems solved

Hi all, I would like to know where is the best place to ask for help (and get answers) for someone who wants to move stuff from node to deno? Is it here in this channel or should I better try in one of the project-channels? ...

How to use a private Deno module hosted in a private repository?

Hello, I am trying to publish and use a private Deno module from one repository to another. The repositories are hosted on Azure DevOps. Following the docs and other online resources, there are 2 main ways to do that: - Publish a npm package with dnt on the Azure DevOps npm private registry, - Use the raw file directly from the other repo using DENO_AUTH_TOKENS env variable for authentication....

Why everything is marked as deprecated in API documentration ? And what are the altenratives ?

I would like to make a TCP connection with Deno with a timeout but everything I found is marked as deprecated: https://docs.deno.com/api/deno/~/Deno.connect https://docs.deno.com/api/web/~/setTimeout So what is the proper way to do that ?...

How to load DWARF debugging symbols from WASM modules when running `deno --inspect`

I'm trying to step through some WASM code that I've imported as a module with the debugger when using deno --inspect. While this does work with the raw WASM, it does not actually display any of the debug symbols that are included when you compile with -g I've set up a project to demonstrate the issue: https://github.com/cowboyd/deno-wasm-debug I'm not sure exactly why this is not working in Deno, but it could very well be that it is not loading the custom devtools extension that is require to load the debug symbols....

403: Forbidden on Deno /JSR Website

Hi All the web services from Deno are responding with 403 status code, i am visiting the websites from "iran" so i guess this is a Geo Restriction Policy. i was wondering if this is intentional or maintainers are not aware of this...

In Deno 2.1.7 I stumbled on Deno.Stdin, Deno.FsFile but using these types fails to pass check

I can "run" the following code it doesn't pass check or compile. What is the right way to approach this? (file is named foo.ts). ```async function main () { let input: Stdin | FsFile;...

Removing file extensions on import

Is there a deno.json configuration to make so that the file extensions are not needed when importing stuff? Deno should have enough context when importing files (unless they have the same name), so it makes sense to me...

Why deno.exec is much larger than bun.exec

Deno executable is around 135mb in GNU/Linux whereas Bun's is much smaller, why is that, in fact when we look at the features both of them support, we can see that Bun is featureful too and when we look at the LoC (Lines of Code) for each project we will see this:
No description

Uncaught (in promise) TypeError: Reflect.getMetadata is not a function

Hi all, I'm trying to use dtos like I'm used to in nodejs. I have the following imports ...

ORM Library for PostgreSQL

Hi, I was wondering what is a good ORM library for an Express/Deno project?

QUIC QuicReceiveStream read() panics when peer disconnects

Deno panics when I'm waiting for a stream after the peer has disconnected. The panic cannot be caught with a try/catch. Code: ```js...

jsts with deno

I am struggling how to use the jsts npm module with deno. Has someone managed to set it up correctly? ```...