Deno

D

Deno

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

Join

drag and drop

Is there particular drag and drop library that the Deno community tends to use? something like draggable.js or react-beautiful-dnd ?...

Scraping Hackernews for Deno-related projects

Hello, I scraped Hackernews using Deno and Puppeteer, now how do I process the text to find keywords in each items? (ie. Front end, Back end, ..) Probably using a NLP library (hf?)...

Deno Deploy and Digital Ocean PostgreSQL DB...how on earth?

https://github.com/denoland/deno/issues/10312 So since the issue above seems to take quite some time to fix because it apparently involves several upstream software, is there anyway to fix the "other side"? What specifically is so special about (for example) Digital Ocean's ca certificates that they are completely unusable with Deno/Deno Deploy/rustls/webpki (whatever the latter two are). I assume this isn't the case with every other certificate issuer or service or host (sorry I don't understand a lot about this, it's all a bit complex). I assume people are successfully connecting to their databases on other services through Deno. What I mean, is there any point in asking Digital Ocean support if they can workaround this on their side? Are they even able to do that? Is there anything I can do locally? Does anybody know of an alternative route/service that works?...

vscode unable to resolve types

I'm testing npm integration, simple lodash example ``` // @deno-types="npm:@types/lodash" import lodash from "npm:lodash";...

Converting Typescript Types to JSON Schema (Props definition)?

Folks, We're creating a CMS solution using Deno and Fresh. For our product goals, we want to dynamically extract how UI components are configured using their Props declaration. Example: For this component...

What would the benefits for Deno + VueJS (for the frontend only) be?

So basicly using: deno run --allow-read --allow-write --allow-env npm:create-vite-extra@latest deno task dev And could this be used in deploy too? (for ssr)...

VScode Deno Extensions produces constant errors

I am currently using Deno with Opine in order to rewrite an API from JS to TS. While Opine only is used in one file, I chose Deno for the TS support and this I must have it enabled on all files in order to run(AFAIK). My issue comes with Deno constantly producing errors like the one pictured that I cannot find answers on how to solve. This pop up every few seconds making it extremely distracting, and as Errors their is no way to silence them even in VScode. I understand this means that deno features are not working and even after reinstalls they stop working after a little bit. Meaning I also loose functionality like hover and such ...

Problem with Mongoose + auth

Hi i followed the mongoose example provided by denoland, but if my local database has authentication, mongoose not connect (it freeze on connect statemment) example: https://github.com/denoland/examples/tree/main/with-mongoose ```ts...

deno_core run files concurrently

Is is possible to run multiple files concurrently using the deno_core crate?

preact form not working?

hi all, i'm just trying to make a simple form but for some reason it keeps submitting the form as if there's no onSubmit function... inputbar.jsx ```jsx /** @jsx h */...

deno.lock multiple entry point best practices

Hi, I just upgraded to 1.28.0 and realized that lock files are here by default for deno.json config projects. I figure that means its time I adopted lock files. So I wanted to open a forum about best practices. I have read this doc https://deno.land/manual@v1.28.0/basics/modules/integrity_checking, which is a good start. I know at least that a lock file should be checked into git (which is less confusing than w/ node, where lock files change per OS and their advice on version control is pretty fuzzy. Here is my remaining question though, what happens when I have multiple entrypoints? Specifically, I am looking at this repo I own https://github.com/andykais/sqlite-native. I have three main module entrypoints: 1. src/mod.ts (this is what lib users will use) 2. test/*.ts (this is for running tests)...

Arrow keys don't work when using cli on windows

I've tried to create a new vite project but I'm not able to select the template I want because the arrow keys don't work.

About performance

if a function takes only one paramater and i pass unnecessary additional parameters would it affect the performance of just the function part of the code? ```js function echo(sentence) { console.log(sentence)...

deno_core Extension with Global Access

Is there a way to make a Deno Extension be accessed by Extension.op() instead of Deno.core.ops.op()?

How to stop reading from a ReadableStream?

```js let user for await (const data of readable) { if (data.user.id === 'user-id') {...

Multi arch docker image based on alpine

Is there any multi arch docker image for deno which includes arm? Preferably built on alpine....

Deno.inspect, how to log class instances with getters

im trying to log a class instance that has getters in it, with Deno.inspect ```ts Deno.inspect(client, { colors: true,...

how to ssr preact (without fresh)

i tried with preact render to string but it wouldnt ship any js

Synchronous read single line from Deno.stdin

Hi, how would I go about reading a single line from Deno.stdin synchronously?

How can I enable type checks while running fresh

I want to relay on the code being type checked and yelling at me when I made a mistake, but deno task start in a fresh project doesn't seem to care by default. Is there some config I can change or at least some other script I can run in parallel to check the types? (I also observed that VSCode plugin seems to indicate more type related errors than my Jetbrains IDE, does somebody know why?)...