Mark G
Mark G
DDeno
Created by Kitura on 12/4/2024 in #help
To use @types/react, do I have to prefix all my React imports with // @deno-types ?
{
"compilerOptions": {
"jsx": "react-jsx",
"jsxImportSource": "npm:react@^18.3",
"jsxImportSourceTypes": "npm:@types/react@^18.3"
}
}
{
"compilerOptions": {
"jsx": "react-jsx",
"jsxImportSource": "npm:react@^18.3",
"jsxImportSourceTypes": "npm:@types/react@^18.3"
}
}
7 replies
DDeno
Created by Kitura on 12/4/2024 in #help
To use @types/react, do I have to prefix all my React imports with // @deno-types ?
Looks like there is an option you can add into deno.json... https://docs.deno.com/runtime/reference/jsx/#jsximportsourcetypes
7 replies
DDeno
Created by Mark G on 12/2/2024 in #help
Dealing with errors in Response streams?
So, apart from the fact there may actually be a bug in Deno regarding the discarding of unhandled errors, is there a way to gracefully handle potential errors from streams in the web streams API?
4 replies
DDeno
Created by Mark G on 12/2/2024 in #help
Dealing with errors in Response streams?
It appears to have been reported before, so I've updated the ticket... https://github.com/denoland/deno/issues/19867
4 replies
DDeno
Created by Mark G on 12/2/2024 in #help
Dealing with errors in Response streams?
Ok, I think this is definitely a bug, a runtime should never silently discard an unhandled error.
4 replies
DDeno
Created by Tibbs on 8/22/2024 in #help
Transpile TS to browser-safe JS with no dependencies?
https://esbuild.github.io/ seems to be the most common way to do this within the Deno ecosystem, using this plugin... https://jsr.io/@luca/esbuild-deno-loader to handle Deno imports. Here's an example, I use this to build a simple service worker script, but it's pretty similar to what you'd do to build other types of browser compatible scripts/modules... https://github.com/jollytoad/home/blob/main/scripts/build.ts
10 replies
DDeno
Created by Thomas on 7/9/2024 in #help
Is dynamic import a slow type?
... oh, and I didn't need to allow slow types either. So back to your original question: Dynamic imports do not appear to count as slow types.
8 replies
DDeno
Created by Thomas on 7/9/2024 in #help
Is dynamic import a slow type?
Hi, I can confirm that you can get 100% even with unanalysable dynamic import... https://jsr.io/@jollytoad/store has 100%, but I always get that warning too. Here is the publish log for it... https://github.com/jollytoad/deno_storage_modules/actions/runs/9904294939/job/27361402691#step:4:134
8 replies
DDeno
Created by Carere on 9/18/2023 in #help
Pretty new to Deno, what is the recommended way to create a monorepo-like in Deno ?
does this mean the LSP will support workspaces too?
19 replies
DDeno
Created by foobar on 7/2/2024 in #help
Share a data between multiple instances Deno Deploy
In Deploy you must assume that all instances are transient. You can't rely on an actual instance as a means of central storage or distribution, all instances should be considered peers, and short lived.
8 replies
DDeno
Created by foobar on 7/2/2024 in #help
Share a data between multiple instances Deno Deploy
Otherwise you may want to consider setting it in kv, you should be able to make use of its transactional capability to ensure it's only set once. Or have a dedicated endpoint that you hit manually to initialize it after deployment. https://deno.com/kv
8 replies
DDeno
Created by foobar on 7/2/2024 in #help
Share a data between multiple instances Deno Deploy
If it's just a one-off permanent key, you could just set it as an environment variable, and then all instances will have it.
8 replies
DDeno
Created by Leon on 4/22/2024 in #help
How To Add .done method for new Response();
Response is based on the web-standard, there is no done method, and therefore highly unlikely that Deno with deviate from the standard. It may help to explain what it is you're trying to do and why you need done.
7 replies
DDeno
Created by Mark G on 3/18/2024 in #help
Is there a way to obtain Deno.cron schedule info?
Alternatively, is there a recommended way to calculate the next run based on the schedule data that Deno.cron accepts (ie. either the raw string or object)?
4 replies
DDeno
Created by Sheik on 3/12/2024 in #help
What to do if they are attacking a project of mine?
I know my account is free, and I don't expect everything for free, but we also pay for a pro account, I've been trialling Deno & Deploy a lot, with the view to introducing other paid users within our company, but with this situation as it is, I can't promote it in good faith.
22 replies
DDeno
Created by Sheik on 3/12/2024 in #help
What to do if they are attacking a project of mine?
@rbetts @cknight Yeah, I know that's the case, my site is now completely blocked due to that. DDoS protection needs to do more than that to protect us, by preventing quota exhaustion in the first place.
22 replies
DDeno
Created by Sheik on 3/12/2024 in #help
What to do if they are attacking a project of mine?
It kind of defeats the point of what Deploy is meant to be, if you also have to deploy additional infrastructure in front of it. It's a hard sell to the rest of the company if it still needs that additional gateway. If we have to use Cloudflare to protect the site, then may as well just host with Cloudflare! Although I'd much rather just use Deno Deploy. This question about DDoS protection on Deploy has been raised many times in discord and in github, but the Deno/Deploy team seem to not want to engage in the discussion. It's THE elephant in the room with regard to Deploy adoption.
22 replies
DDeno
Created by Sheik on 3/12/2024 in #help
What to do if they are attacking a project of mine?
@Sheik it's no coincidence that we both recently linked to our sites in the #showcase channel!
22 replies
DDeno
Created by Sheik on 3/12/2024 in #help
What to do if they are attacking a project of mine?
This kind of protection needs to be built into the Deploy platform itself, as users of it we have no ability to prevent this, apart from putting some other gateway in front of it, but that kind of defeats the point of Deploy being a simple deployment platform.
22 replies
DDeno
Created by Sheik on 3/12/2024 in #help
What to do if they are attacking a project of mine?
No description
22 replies