HTTP 206 + HTML5 video streaming with Fresh
how do I implement an endpoint to stream a video to a HTML video player using HTTP 206 in Fresh? Here's what I have so far however it doesn't seem to be working.
```ts
import { HandlerContext } from "$fresh/server.ts";
import { Err, isErr, Ok } from "eav/mod.ts";
...
rusty_v8 extracting stack trace when a promise rejects
Hi, i am trying to get the stack trace and print it out when a promise rejects.
```rust
if promise.state() == v8::PromiseState::Rejected {
let exception = promise.result(scope);
retval = exception.to_rust_string_lossy(scope);...
Node-API related segmentation fault
Any idea what could be causing this crash? I'm using Node-API and the same module is working fine in Node.js. Can't figure out the exact part causing this to create a reproducible example 🤔

jwt generation and verification
jwt verification(using JOSE package) is working perfectly only when i have set b64 parameter inside the setProtectHeader to true, why do i need to set that parameter what was the difference in JWT generated with and without b64 parameter
Hosting a node project on deploy?
Can we host a NodeJS project using Deno Deploy or do we need some conversion first?
anyone have a modern container workflow for the serverless framework?
I was able to find code that executed at one point in time. It no longer does.
I’d really like to instead get fresh or deno into a container and use serverless to make it work on aws. this is at least as of current a requirement for all code at my workplace and is a hard must to hit production with deno....
How to deno up nuxt?
Setting up Nuxt3: When learning more about V8 and the node.js architecture I became aware of deno. Diving deeper into DENO and being aware of prototype pollution and other important IT security aspects I would like to set up nuxt via DENO right from the beginning...
It it already possible or what needs to be done? #nuxt...
google cloud SDKs
Hi all,
I am building an application that interacts with google cloud apis, specifically google play app store api's.
In a deno runtime environment I am finding it super hard to build such a system because there are no easy ways to handle oauth authentication strategies....
Prisma and deno
getting this
from this
```ts...
error: could not find package '.prisma' from referrer 'file:///Users/nikos/WebstormProjects/vanillajs-patterns/backend/node_modules/.deno/@prisma+client@5.0.0/node_modules/@prisma/client/index.js'.
error: could not find package '.prisma' from referrer 'file:///Users/nikos/WebstormProjects/vanillajs-patterns/backend/node_modules/.deno/@prisma+client@5.0.0/node_modules/@prisma/client/index.js'.
Dates don't increment correctly
when I run the below function with the specific date 2023-09-30, I get the result of n-1 (for any number > 0), where n is the number of the increment specified.
It is only this specific date that appears to have this issue, if I change the Year, Month and/or Day it works.
function addDay(date, days) {...
Hi, can anyone direct me to the repo/functions where the deno/fresh project generator is held?
I am looking to add functionality to this project generator but I'm not familiar enough to really find it. I am a noob.
Speed of generators
How fast are JS generators when used as iterators?
To be clear, I see the
for..of loop being very slow compared to a plain for or while loop when used on arrays. Is it because the for..of loop is inherently slow or because the iterator behind it is slow?...Parsing HTML/XML
Lately I've been researching how to write a simple HTML/XML -> JSON converter. My syntax isn't completely standard HTML (i.e.,
<Button> is possible) which makes this a notch harder than it probably should be. Here's an example of how things should work: https://github.com/gustwindjs/gustwind/blob/feat/html-prototype/html-to-breezewind/tests/element_test.ts .
The current implementation relies on https://deno.land/x/deno_dom but the problem is that it's losing information for tagName. I cannot use it to tell a button apart from a Button as it's uppercasing the tag by default.
As an alternative, I looked into https://deno.land/x/xml but it's losing structural information due to its automatic grouping (i.e., it folds divs within a single array and loses their relative positioning so I cannot map the structure later on to match the original)....Is it possible to import cjs module from es module, both in extension?
cjs is added using
deno_core::extension's js. esm added using deno_core::extension's esm
I can import esm from other esm using ext but it seems that ext protocol only works for esm and not cjs....Deno Imports
I'm trying to use react-hook-form in an application, but bringing in the dependency results in a dependencies mismatch it appears.
My import map includes the following:
```json
{...
Where to store this key — and how?
```ts
const cryptoKey =
await crypto.subtle.generateKey({
name: 'HMAC', hash: 'SHA-512'
}, true, ['sign', 'verify'])...
LSP badly resolves relative imports between cached modules
I don't really understand this, but it looks to me like the LSP / VS Code has started resolving relative imports between cached modules badly.
I'm running under a devcontainer, with the project root in
/workspace/ and $DENO_DIR is /deno/.cache/deno . I can run my unit tests from a terminal ok, but if I try to run them in VS Code I get a "Module Not Found" error popup that shows an attempt to import a module from /workspace/deno/.cache/deno/....
If I open the (cached) module containing the failing import and hover the import statement I see a popup with the "Resolved Dependency" in the wrong place, outside the cache. Screenshots attached....