Skip to content

v0.9.9 - ProxyManager Refactor

Choose a tag to compare

@Jumballaya Jumballaya released this 11 Apr 19:50
· 26 commits to master since this release

BufferWrap v0.9.9 – Area-Based Changelog

Area Improvements
Proxy System Introduced ProxyManager to manage all proxy creation, reuse, movement, and indexing. Eliminates stale proxies after structural changes.
Memory Safety Proxy lifecycle centralized — proxies now update consistently on .move(), .swap(), .insert(), .copyInto(), and .from().
BufferWrap API Removed proxyCache, removed remapProxy(), and added internal ProxyAccessStrategy<T> for clean separation of logic.
Developer UX No more stale proxy bugs after structural changes. Safer, more ergonomic. .at() remains lazy but consistent.
Testing Full unit test suite added for ProxyManager. Existing BufferWrap tests updated and all passing.
Internal Refactors New generateOffsetsAndStride() function to compute layout + alignment. Cleans up constructor logic.
Foundation for v1.0 Prepares BufferWrap for pluggable strategies: ArrayBuffer, GPUMemory, AudioBuffer, SharedMemory, etc.