2.1.0
Bug fixes, nested-template auto-populate, and a destroy API. Backward-compatible for typical (flat-list, event-driven) usage; see the Upgrading from 2.0.x section in the README for the two patterns that need attention.
Fixes
- Crash when a trailing throttled
update()targets a removed item - Rapid partial updates losing intermediate data (now deep-merged)
- Stale index on sorted updates (
update()keyed by item reference) $.scopeno longer polluted by plain reads; added$.scope.has()- Nested scopes are per-parent instead of one shared global slot
reverse()on a sorted list no longer leaks elements- Multi-level nested init double-processing (outermost-only scan)
Added
- Nested template auto-populate from parent item data
destroy()/$.fn.scopeDestroy()- Sorted batch insert (single sort + single DOM pass)
jr-order-reverseboolean-style attribute
Changed
update()is now trailing-edge throttled (deferred ~50ms)push()/unshift()return the new list length- Removed dead
templateKeys/templateKeysObj/parseTemplateKeyscode
Tests
- 46 passing (was 33 + 3 skipped)
- Un-skipped + rewrote nested tests; added
test/bugfixes.test.js