Repository navigation
Releases: jerry4718/napi-blitz
Releases · jerry4718/napi-blitz
Release list
v0.3.223
Breaking Changes
- Removed
setProxyCompat(842a886). Proxy compatibility is now the default and automatic; drop any calls to the removed export.
Fixed
- Layer instances wrapped in a reactive proxy now work (
842a886). Under a receiver-passing proxy, DOM accessors previously failed with annapi_unwraperror because reactive traps re-wrapped the object-typed self-reference key, tripping the V8 proxy invariant. The registry address is now stored as a scalarBigIntdata property, which traps pass through unchanged, so the instance resolves under any proxy. - Query APIs no longer silently drop nodes (
3cb4603).querySelector,querySelectorAll,getElementsByTagName,getElementsByClassName,getElementById,documentElement,head,body,parentNode,firstChildand the other child/sibling accessors used to swallow internal wrap failures and return short arrays ornull; the error now propagates.
Internal
v0.3.222
What's Changed
window.requestAnimationFrame/cancelAnimationFrame— driven by winit redraw; callbacks are released when they run, are cancelled, or the window closes; the queue pauses while the window is occluded.setProxyCompat(mode)— global, once-written switch for layer proxy compat:
-"off"(default): pre-proxy behavior and cost
-"on"/"auto": layer accessors resolve through receiver-passing proxies (e.g. Vue reactivity)- Examples
html-3d-sphere/vue-3d-spheremigrated to rAF loops - Tests: rAF behavior / GC retention, proxy interop (three modes)