NativeScript iOS Daily: Canary Wrapper Lifetime Arrives
Two merged changes introduce an opt-in canary wrapper lifetime mode and fix weak collections to match it. The pattern is a portable, resurrection-free ownership model for native objects shared with future Android support.
Duration: PT2M3S
Episode overview
This episode is a short developer briefing from NativeScript iOS Daily.
It explains recent repository work in plain language.
- Show: NativeScript iOS Daily
- Published: 2026-11-19T14:13:32Z
- Audio duration: PT2M3S
Transcript excerpt
This excerpt keeps the crawler page concise. Listen to the episode or use the RSS feed for the full update.
Hello and welcome to NativeScript iOS Daily for November 19th, 2026.
The big signal is object lifetime: the runtime is gaining a portable, resurrection-free way to wrap native objects, with weak collections rebuilt to survive wrapper turnover.
First theme is the new canary mode itself, in PR 561. Today a wrapper can be resurrected to keep an object alive. A canary wrapper does the opposite — it is a phantom-weak handle that dies with its JavaScript references and releases its native retain through the existing queue, without reading retain counts.…
Second theme is keeping weak state alive across rewraps, in PR 563. With canary mode alone, a new wrapper for the same native object is a new JavaScript object, so entries in weak maps, weak sets, weak refs and finalization registries would be lost. The fix, active only in canary mode, replaces those four globals…
What's next: expect testing to focus on edge cases around JavaScript-extended class teardown and recycled addresses, plus alignment work so Android can implement the same model. That's it for today, thanks for listening.
Nearby episodes from NativeScript iOS Daily
- Ada 4.1.1 URL Parser Upgrade
- Wrapper Lifetimes, Remote Modules, and Platform Floor
- Wrapper Lifetime Overhaul and Catalyst JIT
- Worker Test Timeout Fix
- Runtime Ownership and Property Bridging Fixes
- Runtime Memory Fixes and Leaner Releases
- iOS Runtime Memory Retention Fixes
- Wrapper Lifetime Overhaul and Thread-Safe Releases