Alexander Mills

Results 280 comments of Alexander Mills

I noticed that v16 and v18 experience ECONNRESET (errno -54) but node v20 doesn't, with my code, which I am happy to share.

yes I do - I discovered this: I have a node client and a node server. If I keep the node server at 16 or 18 and upgrade the node...

I might be having a brainfart but how does `typeof (Animal && !Dog)` not make sense?

I know why, it's a easy fix for your library, first it's because JS enums are implemented poorly IMO ``` export const accountStatusList = [ AccountStatus.ACTIVE, AccountStatus.DISABLED, AccountStatus.PROBATION, AccountStatus.BANNED, AccountStatus.SUSPENDED,...

darn, how is that possible? I don't understand what's happening

chatgpt hallucinated this API for me, but I kind of like it ```ts const stream = db .select({ id: DDUser.id, clerkUserId: DDUser.clerkUserId, }) .from(DDUser)) .stream(); // fake api for await...

doesn't look like an options object exists yet ```js default(value: (this['_'] extends { $type: infer U; } ? U : this['_']['data']) | SQL): HasDefault; /** * Adds a dynamic default...

I updated an answer to the OP: https://stackoverflow.com/questions/78144749/how-to-stop-new-requests-before-closing-existing-ones/78163844#78163844

you should provide an error