Mark G
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
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
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
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
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
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
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
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
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
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
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