Mark G
Mark G
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
DDeno
Created by alex-009 on 10/30/2023 in #help
Best way for application config in deno/ts?
Another option for configuration is via environment vars, this is esp useful if you want to pass secrets, or configuration independently of deployment (many deployment services, incl Deno Deploy, allow you to set and change env vars without redeploying), dotenv helps greatly with this, by reading a local .env file... https://deno.land/std@0.204.0/dotenv/mod.ts
10 replies
DDeno
Created by Carere on 9/14/2023 in #help
Impossible to use `"jsx": "preserve"` in deno.json...
if SolidJs is a client-side framework then the config would be for the bundling of client-side JS, deno would only be used to run the build tools, it wouldn't compile the actual JSX, for example if you used esbuild to bundle the jsx, the preserve config need to be in the esbuild config. If it's a server-side framework it may need specific support for deno. There are a few Deno related discussions over in the SolidJS project... https://github.com/solidjs/solid/discussions?discussions_q=is%3Aopen+deno
5 replies
DDeno
Created by Carere on 9/14/2023 in #help
Impossible to use `"jsx": "preserve"` in deno.json...
preserve would make no sense in Deno, as it needs to compile to JS that can run in its v8 engine
5 replies
DDeno
Created by bombillazo on 9/7/2023 in #help
How can one patch a Deno dependency?
oh, you mentioned patching though, in which case if you want to override a library module with a local one you can do that too...
"https://blahblah/foo/iffy-module.ts": "./patched/iffy-module.ts"
"https://blahblah/foo/iffy-module.ts": "./patched/iffy-module.ts"
9 replies
DDeno
Created by bombillazo on 9/7/2023 in #help
How can one patch a Deno dependency?
you can also use "scopes" in the import map to limit the scope of the mapping too... https://github.com/WICG/import-maps#scoping-examples ... although I've never needed to resort to this
9 replies