openbiblio.social is one of the many independent Mastodon servers you can use to participate in the fediverse.
Der Einstieg in das Fediverse für Bibliotheksmenschen

Administered by:

Server stats:

660
active users

#javascript

44 posts42 participants0 posts today

It's 2025, and I just got bitten by the fact that using promises with .then() and only one callback masks promise rejections 🤦

In my defense, I just wanted to shove a one-liner into a context where async is not available. Should have done (async () => await thing)() instead of .then()

PHP friends. I am looking to experiment with Protobuf as a way to define an API, for which we'll want code-generation for both (modern) PHP and Javascript/TypeScript. What's your recommendation? I'm finding lots of decade-old projects...

Alternatively, is there tooling to generate Protobuf off of PHP code/attributes, the way OpenAPI can?

This month's performance hero is a person after my own heart – someone who is passionate about building a secure, accessible, performant web for EVERYONE, and who always leads with a deep compassion for users. Let's all join in celebrating Alex Russell (@slightlyoff)!

speedcurve.com/blog/performanc

SpeedCurveSpeedCurve | Performance Hero: Alex RussellOur newest performance hero is passionate, provocative, and unapologetically honest. Join us in celebrating Alex Russell!

🎧 #JavaScript powers 98% of all websites. In the latest podcast, Robin Bender Ginn from OpenJS discusses sustaining JavaScript at scale, web security, and community solutions.

Learn More about JSConf North America:
events.linuxfoundation.org/jsc

Listen Here:
openssf.org/podcast/2025/04/08

Continued thread

So it does look like the TypeScript language server has a limit of 4MB source size where it disables type checking (and actually shows an erroneous error stating that exports that exist in the file do not exist) for files that are imported but not open in the current workspace/session.

Still not sure if this is documented anywhere or not (haven’t been able to find it, if it is).

99.99999% of the time, unless you’re doing niche stuff like I am, you won’t run into this.

Workaround: should you have such a large file, e.g., with a large generated object, try and refactor to split it up into multiple files and rejoin it a separate file. The actual object size/memory usage isn’t the issue, it’s the file size.

github.com/typescript-language

I ran into an issue while creating and exporting a constant object that holds component versions of the ~1,500 icons in the Phorsphor icons library and I’ve created the simple reproduction below: D...
GitHubServer fails on import when exported object constant has too many entries/is too large · Issue #951 · typescript-language-server/typescript-language-serverBy aral
#TypeScript#max#lines