Deno

D

Deno

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

Join

interaction_endpoint_url: couldn't be verified

I'm trying to create an http interactions bot using deno deploy, but sometimes my url fails to be verified https://github.com/k1iin/kiaaa/blob/7056ee61e69fe10cf3912fe9bdc8237247fedc2c/structures/client.ts#L37...
No description

Lost access to deno land module, how to reset the repo?

My repository was accidentally destroyed on GitHub and I recreated it the same exact way. The webhook now gives: {"success":false,"error":"module name is registered to a different repository"}. How to get in touch with someone that can help?

BDD with async tests

I'd like to run some tests that all call the same helper function that wraps the bdd it function. Something like this: ``` describe('why u no work?', async ()=>{...

Is there a schedule / pattern for which Deno releases get new Docker files?

We'd love to update to Deno 1.37.1 in production, but deno_docker is still at 1.37.0. I've noticed that sometimes there are releases that don't get cut in Docker files until well after Deno's updated. Is there a process / guideline to which versions become Docker images? https://github.com/denoland/deno_docker

Is the Fresh compornents test function enabled?

Attempting to write a test for Fresh compornents. I was able to verify the rendered content. I am not able to validate the event....

Inquiry Regarding Deno Security Model and Command Injection Vulnerability

I am currently instructing a class on software security and have been exploring Deno's security model as part of our curriculum. One of the noteworthy features of Deno is its permission-based security model, which I understand should inherently provide a level of defense against unauthorized read and write operations, especially through command injections? To illustrate, I've been working with a piece of code that does not have explicit read or write permissions. However, during our exploration, we've observed that it still seems possible to perform read and write operations through command injection, contrary to our initial understanding of Deno’s security guarantees. ```import { Application, Router } from "https://deno.land/x/oak/mod.ts";...

`WARNING: v8::OwnedIsolate for snapshot was leaked` and/or crash after using snapshot

On startup, I create a runtime: ```rust let js_runtime = JsRuntimeForSnapshot::new(deno_core::RuntimeOptions { module_loader: Some(Rc::new(FsModuleLoader)),...

Oak: Remove HTML extensions when serving files

Using Oak, how can I serve home.html as /home (or /home/). I'm aware that Context#send exists but I'm not sure if it'll work with my use case. Thanks in advance!...

deno_console not being properly instantiated?

Not sure if it's indended, or if I am missing a step, but several core extensions, for example the deno_console crate, do not: - specify an entrypoint for esm, leading to a panic on startup - add their APIs to window or global, making them inert by default In my implementation I've had to include a small extension of my own along-side console that does the following:...

Tailwind nonfunctional on fresh-update from 1.3.1 -> 1.4.3

After running deno run -A -r https://fresh.deno.dev/update . on my project, the tailwind styles don't appear functional. My imports section looks like so ``` "imports": {...

assertEquals deprecated in vscode?

Since upgrading to std@0.202.0 I'm seeing that assertEquals is marked deprecated, but I can't see why. It seems @Xiphoris saw the same issue here https://discord.com/channels/684898665143206084/684898665151594506/1152687831844659360

Force await import() to import a fresh copy?

I have a Deno instance that dynamically loads a module with: await import("some/module.js") The module changes on disk and now I want the running deno instance to import it again getting the fresh changes. I was accomplishing this by adding a random number like await import("some/module.js?v=" + Date.now().toString()) which deno then views as a new file and happily loads it. Problem is, over time, this caused my deno dep_analysis_cache files on disk to become HUGE (1GB+). Is there a magic way I can force deno when I call import() to always import a fresh copy? Or some whay to clear the already loaded cached content?...

Leave TLS connection open in between tests

When I have 2 tests that use a database connection and attempt to close the connection afterAll the tests, the first fails because there's an open tls connection. Is it possible to leave the connection is open at the end of the first test? ``` import { afterAll, describe, it } from 'std/testing/bdd.ts' import { assertEquals } from 'std/testing/asserts.ts'...

Nvim tsserver clash with denols

I have read the docs and added a root_dir in my lua lsp file but for some reason tsserver still lanches on my deno fresh project

Getting exports from an evaluated module with get_module_namespace always results in null values

Trying to get module exports like the example here The module is loaded with load_main_module, I call mod_evaluate on the ID returned, then do the below: But the value returned is always undefined...

Is there any way to define a signal inside a route component?

Is there any way to define a signal inside a route component? I am trying to do it but an error raises Error: ``` An error occurred during route handling or page rendering....

Deno Emit

How come does deno bundle work a lot differently to Deno emit (https://deno.land/x/emit@0.28.0 )? When I try to bundle my react code, the code bundled by deno bundle works just fine, while the emit code is broken?
No description

`deno lsp` does not understand bare imports without prefix

Even in minimal project, freshly created from a template, Deno marks imports as errors and doesn't understand them. E.g. deno run --allow-read --allow-write --allow-env npm:create-vite-extra@latest" Open src/main.ts in the editor which uses deno lsp, and an error pops up: ...