Freezer Versions Save

A tree data structure that emits events on updates, even if the modification is triggered by one of the leaves, making it easier to think in a reactive way.

v0.9.2

8 years ago
  • Fixed specialEvents problem in build
  • Not triggering events in all parents when a node have more than one parent.

v0.9.0

8 years ago
  • Added beforeAll and afterAll events.
  • this in event listeners now point to the current freezer object.
  • Fixed Freezer.prototype.set not working with plain objects.
  • Fixed some typos in README.

v0.8.2

8 years ago

Fixed set not accepting numerical keys.

v0.8.1

8 years ago

once now returns the listener/freezer object.

v0.8.0

8 years ago
  • now returns the current node, like any other updater method.
  • Fixed nodes losing the live mode on update. Thanks to @zenfe.
  • Fixed nodes triggering event in the wrong order when pivot. Thanks to @zenfe.
  • Tests passing now in Node 4. Thanks @kuraga.
  • Adds setting properties to undefined. Thanks to @rsamec.

v0.7.1

8 years ago

Fixes now triggering events twice. Fixes live mode not triggering events in the intermediate nodes. Removed some console.log methods.

V0.7.0

8 years ago

Adds now and pivot node methods.

v0.6.1

8 years ago
  • Fixed binding parents to the nodes on reset.
  • Fixed not removing an specific listener when using off.

0.6.0

8 years ago

Added options to freezer initialization. Added mutable option in order of create mutable freezer objects. Added live mode option.

0.5.2

9 years ago
  • Fixed reseting top nodes not updating the store
  • Fixed some == comparisons that would modify incorrect attributes.
  • Fixed modifying the object passed to set as argument.
  • Added the playground to the readme file.