ECMAScript excitement 😉 Congrats to Dan Minor @mozilla.org on advancing the Upsert proposal to Stage 4 at TC39 today 🎉 let map = new Map(); map.getOrInsert(key, defaultVal); It lets you set a default value on a map key without overwriting an existing value 👍
Ruben Bridgewater | Node.js
@bridgear.bsky.social
Open source enthusiast, Staff Engineer @datadog, Node.js Technical Steering Committee member
ECMAScript excitement 😉 Congrats to @bridgear.bsky.social on advancing Error Option Limit to Stage 1 @tc39 today 🎉 It allows the captured stack depth to be limited on a per-object basis 👍 It removes the need to rely on implementation-specific global APIs. github.com/tc39-transfe...
ECMAScript excitement 😉 Congrats to @bridgear.bsky.social @jordan.har.band on advancing Object.getNonIndexStringProperties to Stage 1 at TC39 today 🎉 Given an object, it provides an array of enumerable own properties that are not numeric indices. github.com/BridgeAR/arr...
ECMAScript excitement 😉 Congrats to @bridgear.bsky.social @jordan.har.band on advancing Object.keysLength to Stage 2 at TC39 today 🎉 let count = Object.keysLength(o) It counts the string-keyed own properties on an object. This avoids the cost of the intermediate array in Object.keys(o).length
ECMAScript excitement 😉 Next week's TC39 meeting has a packed agenda: 🔼 Amount 🔼 Array.prototype.pushAll 🔶 AsyncContext 🔶 Await Dictionary 🔼 Import Bytes 🔶 Intl Era Month Code 🔼 Iterator Chunking 🔶 new Global() 🔼 Non-extensible applies to private 🔼 Promise Adoption 🔼 Promise Predicate 🔶 Temporal
Library authors: Please wait until the ESM instrumentation story is better. I'm literally begging you!
🚀 Big news for Node.js developers! require(esm) has been backported to Node.js 20, removing a major roadblock for ESM adoption. With Node 18 nearing EOL, library maintainers can finally go ESM-only with confidence. 🎉 socket.dev/blog/require... #NodeJS #JavaScript
Node excitement 😉 Congrats to @joyeecheung.bsky.social on landing code-caching for TypeScript files in Node 🎉 It speeds up 2nd-time loading of TS via a two-level disk cache: 1. TS ➡️ JS 2. JS ➡️ V8 Bytecode @kdy1.bsky.social is working on direct UTF-8 support in SWC-Wasm to make this even faster 💙
Landed a PR that integrates TypeScript transpilation into the Node.js compile cache ✨ When benchmarking files of 500-600+ bytes, type stripping is 65% faster and full transform is 128% faster (it should be more significant on bigger files though, because it's a cache) github.com/nodejs/node/...
I'm helping put together a JS track on a large multitrack conference in Warsaw, April 4/5 Any of my friends here interested in speaking online or inperson?
We are discussing how to manage the content from official @nodejs.org account(s) on Bluesky! github.com/nodejs/blues... Which one would you prefer following? a) Just one @nodejs.org account for everything b) Two official accounts with different focus: e.g. nodejs.dev + @nodejs.org b) other ideas?
Which accounts should we have? · Issue #1 · nodejs/bluesky
Converting from nodejs/admin#932, some ideas were proposed to have multiple accounts. We have registered nodejs.org (see nodejs/admin#932) whose credentials are in the Node.js and OpenJS 1Password....
github.com