JSJam Live, Wednesday at 12pm PT
Story of the Week
However, its antiquated synchronous nature, difficulty with tree-shaking, and non-browser-native properties created inefficiencies, which in turn necessitated build steps or separate code writing for client and server. To address these issues, the TC39 committee introduced ECMAScript Modules with the ES6 language specification.
ESM supports asynchronous module loading, browser compatibility, static analysis, and tree shaking, making it more suitable for the web environment. However, due to the deep-rooted use of CommonJS in Node.js, the transition to ESM presented interoperability issues.
Even though Node.js has managed to support both CJS and ESM, the responsibility to maintain interoperability has fallen onto package authors. The article emphasizes the necessity of moving away from CommonJS in 2023 and transitioning completely to ESM for better developer experience and end-user performance.
- Node v20.4.0 adds Mock Timers API for time dependent tests
- Microsoft writes ECMAScript Modules in Node.js documentation
- Getting Started with Vector Databases in Node.js
- Introducing the TypeScript SDK for the Spotify Web API
- An Introduction to the View Transitions API
- Lenz Weber-Tronic's (phryneas) take on the current React & Server Components controversy
Podcasts of the Week
- Modern Web - Exploring Svelte 4 with Kevin Åberg Kultalahti
- Whiskey Web and Whatnot - Tech Careers, Hot Takes, and Wix with Emmy Cao and Yoav Abrahami
- JS Party - The massive bug at the heart of npm
- SyntaxFM - Sick AI Tools For Developers
One More Thing
Find us online at the following links: