Skip to content

v2.1.0

Latest

Choose a tag to compare

@wmantly wmantly released this 16 Jul 21:45
· 8 commits to master since this release

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)
  • $.scope no 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-reverse boolean-style attribute

Changed

  • update() is now trailing-edge throttled (deferred ~50ms)
  • push()/unshift() return the new list length
  • Removed dead templateKeys/templateKeysObj/parseTemplateKeys code

Tests

  • 46 passing (was 33 + 3 skipped)
  • Un-skipped + rewrote nested tests; added test/bugfixes.test.js