vicary
Explore posts from serversHow to locate a deep dependency?
I have a Fresh project with some NPM dependencies.
One day the following warning pops up every time the server starts:
The following command doesn't work because
update-browserslist-db
assumes a package.json.
Next thing I could try is upgrading the relevant module in my deno.json
, how to I find the module depending on browserslist
down their dependency tree?3 replies
How to create and test a data fetching library?
Hello everyone, I am working on a SolidJS integration for GQty. PR#1758 is the current WIP, I am probably doing a lot of things wrong.
There are two areas about Suspense where I would really love some help to learn from the perspective of a library author.
1. Triggering Suspense
Having studied the source code of
createResource
, I am able to trigger an initial Suspense via createSignal
by returning a Promise in my function. But Suspense doesn't happen again when I return a Promise during refetches.
2. Testing Suspense
It seems that render()
does not Suspense at all, instead it renders the Promise object as-is which in turn throws.
What would be the best place to start?55 replies
How to type tables with dynamic names?
The MS SQL dialect only supports global temporary objects, that forces us to add random table suffix to prevent collisions between sessions.
Is it possible to type the table contents as a second query?
Conceptually my code runs like this:
My current road blocks:
1.
.withTables()
does not accept object type with dynamic keys [tableName]
where it shows this error A computed property name in a type literal must refer to an expression whose type is a literal type or a 'unique symbol' type.
,
2. A raw SQL approach via sql
literal does not provide a .stream()
method.6 replies
Sorting tailwindcss class names with prettier plugin?
When developing in Fresh, I would like to have my class names automatically sorted with the official prettier plugin.
How do I enable prettier plugins in a Deno project?
2 replies
Deno fmt with verbatimModuleSyntax?
Currently Deno fmt sorts verbatim imports alphabetically, this is conflicting with the Organize Imports in VS Code where it sorts
import { type ... }
entries individually at the end.
Example:
When combined with the following VS Code option, all of the files flashes between the two formats in random order depending on how formatOnSave
is configured.
Is it possible to add an option for Deno fmt, either disabling that part or expose an option to align with VS Code?2 replies
NPM imports fail on JSON require
When importing modules via
npm:
protocol, the embedded esbuild will throw the following error if the module tries to require("package.json")
.
In my case, the problematic module is checkout-sdk-node
.
Is there known workaround for this?2 replies
How to improve performance in large SELECT?
I have a large query with >100 selections, this makes VS Code hangs for type checking every 30s.
I tried
$assertType()
with a hard-coded object type at the end of the select query, but it doesn't help much.
Is there a recommended way for large inferred types?2 replies