One Node source
import and require both load queue.js. The duplicate CJS build is gone.
Version 3.0 → 3.1
FIFO execution, explicit this.next(), CommonJS syntax, classic scripts, and the stack path remain available.
What changed
Task logic stays the same. Upgrade Node, then install.
import and require both load queue.js. The duplicate CJS build is gone.
Instance state no longer pays for external WeakMap lookups.
This floor supports warning-free synchronous CommonJS loading of the shared ES module.
The LIFO entry uses the same private-field and shared-module design.
Keep your imports, requires, task functions, and this.next() hand-offs.
Upgrade checklist
queue-vanilla.js.npm run benchmark.