CommonJS, I Promise
summary
Notes what CommonJS actually delivered: modules implemented by Node become the widest deployment, a buffer/binary spec inspired by Node codifies real-world buffers, and a concrete promise API — Q deferred/q.when — gets examples that compose timeouts, HTTP retry loops and reduce-based joins. Packages remain experimental with three major packaging approaches (overlay, npm symlink, registry/linking) and a stopgap Packages 1.0 for metadata. Several implementations exist (Node, Narwhal, browser) and the promise and queue utilities demonstrably work across them.
AI-written summary · about
chapters (8)
- 0:00Start
- 0:52Module Spec
- 4:16What Makes a Good a Good Specification
- 5:10Packages
- 7:40Overlay Approach
- 23:08Error Recovery
- 25:42How the Reduce Function Works
- 33:51Burning Promises
related talks
31mECMAScript Modules: Past, Present, and Future
22mPlease wait... loading: a tale of two loaders
30mShipping Node.js packages in 2025
20mPromises API in Node.js Core: Part "Do", the Update!
37mModules for JS.next
32mNode.js Q&A session
47mNative JavaScript Modules: import {Browsers, Node.js}; export {production};
35mBrowser Package Management
