What's Changed
- Perf: Buffer all incoming addLayer() calls into an array instead of processing immediately
Schedule a flush using queueMicrotask() to run on the next microtask
Flush once by calling addLayers()/removeLayers() with the entire batch by @kaprests in #49
Full Changelog: v4.0.0...v4.1.0