Deno

D

Deno

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

Join

Deno Third Party Modules Web Hooks

Is there a way to see the webhook payload URL a package you have published is listening for?...

Does Deno package.json support use workspaces for module resolution?

Talking about this field: https://docs.npmjs.com/cli/v9/using-npm/workspaces If not could I somehow link to a local package in a project while it would resolve to the published version in deploy/publish context?...

Does Deno Deploy support location based analytics?

The free version does not seem to support it. Does the paid version support it?

Fresh: How to make Styles global with twindv1?

With the new twind-Plugin (v1), does anybody know how to do global styles? It was preflight before, but it does not seem to work like that anymore. I am trying for quite some time now to use injectGlobal and searching about both versions (through repos, documentations and forums) but I can not make it. Does anyone have an example or a suggestion do it in another way? 🥺 A solution would safe me hours of trial-and-error....

IPC solution for a process manager

👋 I'm at day 7 of working on Pup (https://github.com/hexagon/pup) - a universal process manager run by Deno. Next step towards 1.0.0 is to allow one instance of pup to restart a process of another instance. Something like pup - Boots up the process ecosystem defined in pup.json of the current directory...

Module imported in app successfully, but fails to deploy

etherscan.ts
import { ethers, BigNumber } from 'npm:ethers@^5'
import { ethers, BigNumber } from 'npm:ethers@^5'
util.ts...

Specifying config remotely or jsx on install

I'm struggling quite a lot here. I originally recommended using this command:
deno install -Afr --config https://deno.land/x/pyro/deno.jsonc -n pyro https://deno.land/x/pyro/cli.ts
deno install -Afr --config https://deno.land/x/pyro/deno.jsonc -n pyro https://deno.land/x/pyro/cli.ts
but it turns out deno doesn't support loading a remote config? That seems strange to me but sure. To work around this, I'm trying to do:...

Is it possible to know what version of a dynamically-imported module was just imported?

Right now, you can run code like import('npm:lodash'), which will get the latest version of lodash. Is it possible to know what version of lodash that resolved to, in the runtime or elsewhere? I suspect that it writes to an import map if there is one?

Why am I getting an "Uncaught DOM Exception" in the Deno CLI?

To replicate: 1. deno in the command line to initialize a Deno REPL ``` // Get an array of random bytes const arr = new Uint8Array(32)...

Better way to allow downloading of files besides serving entire file

I'm trying to allow users to download files that are in a private folder which cannot be accessed publicly. A special key is provided which allows them to download the file. Would I have to put the file into a public folder that can be accessed directly through a browser, or is there a way to use a router to serve files? I'm currently using a router to serve entire files to the client, but this creates a delay since some files can be gigabytes large and the site hangs while the file is being read + sent. I've attached a pic of how I serve files, any help would be appreciated! If I need to make a public folder called "download" instead, I can....

Share state between islands

Hi. How could I share state between island. E.g. shopping cart. I click on add product and in some other component I show the current status of the number of items in the cart. Thank you

Islands not working with Cloudflare DNS proxy

I have deployed Deno on a remote server with nginx-ingress-controller that offers self-signed certificate. If I connect to the server directly everything works fine (Cloudflare DNS without proxy). But if I turn on Cloudflare DNS proxy (Full SSL/TLS - Encrypts end-to-end, using a self signed certificate on the server), the islands codes don't run. ...

Update sub-directory for module already added to deno.land/x

The title pretty much says it all, but the module in question is hot_mod, and the current subdir is src/modules but I want to change it to '' (empty string)

Should we, or how should we, use Deno as a sandbox for untrusted code?

I've been using Deno in this context because of some of the nice security model features. However, it's been tricky hitting snags with the model. For example, user's code runs in a WebWorker and has a specific environment with limited access to APIs. But there's no permission to enable/disable the creation of new Worker objects, so people can create a worker in the worker that has access to raw APIs. Is there a right way to do this?

deno_bindgen type error: deno-ts(2345)

Anyone else getting this with deno_bindgen?
Argument of type 'bigint' is not assignable to parameter of type 'PointerObject'.deno-ts(2345)
```console $ deno --version deno 1.31.1 (release, aarch64-apple-darwin)...

Using Rust FFI in a public Deno module

I'm writing a Deno module that I intend to publish on deno.land. It will be using a Rust library (public crate) via FFI. Are there any examples on how to do this properly?

Publishing to deno.land/x: GitHub webhook says it's delivered?

I followed these directions (https://deno.land/add_module) to publish a 3rd party module to deno.land/x. On GitHub, the most recent run of the webhook, I've got a 200 response with:
{"success":true,"data":{"module":"hot_mod_server","version":"v0.0.1","repository":"patreeceeo/hot_deno","status_url":"https://deno.land/status/9af0c7c9-0ee4-499d-9ada-d3a27e6ccc15"}}
{"success":true,"data":{"module":"hot_mod_server","version":"v0.0.1","repository":"patreeceeo/hot_deno","status_url":"https://deno.land/status/9af0c7c9-0ee4-499d-9ada-d3a27e6ccc15"}}
...

Deno ts

Whenever i run my deno file using a ts config like this documentation describes: https://deno.land/manual@v1.31.2/advanced/typescript/configuration i get the unsupported compiler options...

Nvim deno tsserver conflict

my language servers are conflicting when i open a deno project, if i use LspInfo i can see both deno and tsserver are setup on the buffer. here is what i have on my lsp config: ```lua nvim_lsp.denols.setup({...

Deno Docker - deno run --watch file.ts

I am on a macbook m1, and i tried to dockerize deno from the official image and whenever i try doing --watch on the cmd i get Function not implemented (os error 38)