Deno

D

Deno

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

Join

Return lazy struct fields from Op

My goal is to build a plugin system which allows invoking user defined code. One of the features I am looking to support is the ability to invoke user provided functions with function parameters, an example: ``` // Ideally, I can model this in an Op: type Input = { lazyValueA: () => Promise<number>;...

Relative path in WebSocket

Why does relative path in WebSocket not work?

Relative path in `npm:` specifier

I have this in my import map:
"@heroicons/react/": "npm:@heroicons/react@2.0.18/"
"@heroicons/react/": "npm:@heroicons/react@2.0.18/"
And I try to do this:...

Transitive dependencies with node_modules

Hi all, today I stumbled upon this not-sure-if-a-bug: ```ts import { LRParser } from "npm:@lezer/lr@1.3.14"; import { LRLanguage } from "npm:@codemirror/language@6.9.3";...

Upgraded to Fresh 1.60 but TailwindCSS not rendering

I updated my codebase to Fresh 1.60 using TailwindCSS instead of twind. When I pushed the code to Deno Deploy, the CSS didn't render. I created a separate repository with a brand new Fresh 1.60 install and deploy it as well and it also didn't render the CSS. Is there a way to fix this? Thanks in advance.

Optimize for Prod simple static vanilla JS script - WebServer App with Oak + DEJS

Using DEJS to render views. Those views are served by Oak, according to the defined routes. What is the best approach to include a simple js script file, for client interactions (like switching on and off a button) in the view, but making sure that when going to Production it gets optimized? Minified, Compressed... maybe have some cache management......

ReadableStream passed to an island component argument becomes an empty object

I am passing ReadableStream to an island component argument becomes an empty object

deno.jsonc "unstable" format?

I added this entry to my deno.jsonc: ```json "unstable": [ "broadcast-channel",...
No description

Signal value not updating from inside of `for await of` loop inside of an IIFE

```ts // routes/connect.tsx import type { FunctionComponent } from 'preact' import type { PageProps } from '$fresh/server.ts' ...

Pricing Question - Is my pro account applied to my Orgs?

Just recently purchased a pro account cause I thought a project would benefit from the extra firepower. Thought, the project is in an organization I started. I was wondering if my pro account also applies to that org? OR would I need that project to be under my personal projects?

Recommended `denoland/deno` contributor editor setup

I have a problem with deno trying to redefine itself via random declare namespace Deno { ... } throughout the deno repo. I use vscodium with TypeScript 5.2.2, latest Deno. I fail to find any docs on how you recommend to setup the editor to make lsp correctly pick up things....

How to enable "WebSocketStream" using deno.json file

I want to enable "WebSocketStream" using deno.json's "unstable" array option.

subhosting to run user scripts

I want to allow users to run arbitrary scripts, but they don't need to be available as endpoints, so they don't need Deno.serve(() => { .. etc. }; ... Is there a way to allow users (a la subhosting) to upload a simple script like return 4+5 and get a response with the return value and console logs?

Remove Old Deployments

Is there a way to remove old preview deployments, or do they expire at some point? There are a number of reasons one might not want people accessing older versions of an app, like security and compatibility, especially during early development.

Compiled program cannot write to file

I made a program that can download the latest version of papermc or velocity. and it does download it but it also should update the config file to set the latest build value to the build number of the downloaded jar. and just by running deno run -A ./Main.ts that does work but after compiling it it doesn't. it still downloads the jar

How to monkey patch an installed third party deno module.

Is it possible to monkey patch an installed third party deno module?? I want to overwrite a function from a third party module that I'm using so the function logic gets updated everywhere....

MongoDB connection error on Deno Deploy

Hello, I've a project running on Deno Deploy using Deno Fresh and I need to write information being captured in a form to a MongoDB database. I'm using the deno_mongo drive on denoland. I'm able to connect, read and write data when I run locally but when I deploy to Deno Deploy, i get the following error below after the project builds. I've enabled access to MongoDB, not restricting IP addresses....

Deno cron instrumentation

We at Sentry are looking at adding automatic instrumentation for Deno crons: https://github.com/getsentry/sentry-javascript/issues/9700. How stable is this API? Expecting any notable breaking changes to the public facing method? If not I think we are in a good place to wrap it automatically for users....

Webgl2 in Deno i.e. for unit testing

nodejs has this challenge that there is no way to run webgl2 (or webgpu), i.e. for unit testing. There is a solution for webgl1, through the use of https://github.com/stackgl/headless-gl. Is there a way to run webgl2 in deno, headless?

"A fetch response body was created during the test" when invoking a PUT request in a test?

I'm writing a Deno library for uploading files on IPFS. The code is very simple: ```ts...