Skip to content

Releases: finom/defi

defi-react

25 Jun 09:44
Compare
Choose a tag to compare

Add "define" option for defi.set

06 Dec 12:38
Compare
Choose a tag to compare

The option allows to make a property to be listen-able by "change" event.

const obj = {};
defi.on('change', ({ key }) => console.log(`${key} is changed`));
defi.set(obj, 'x', 1, { define: true }); // logs "x is changed"
defi.x = 2; // also logs "x is changed"

v1.0.0

25 Aug 20:52
Compare
Choose a tag to compare

BREAKING CHANGE: The library doesn't support space-delimited event names any more (use an array instead) but does support Symbol as an event name. The change covers on, off and trigger methods.

Before:

// a single event
on(obj, 'foo', handler);

// a list of events
on(obj, 'foo bar baz', handler);

After

// a single event
on(obj, 'foo', handler);

// a single event with a symbolic name
on(obj, Symbol.for('foo'), handler);

// a list of events
const foo = Symbol('foo');
on(obj, [foo, Symbol.for('bar'), 'baz'], handler);

v0.0.17

21 Apr 21:22
Compare
Choose a tag to compare

0.0.17 (2018-04-21)

Bug Fixes

  • Dummy (88f5bbc)
  • Get rid of common binders (use common-binders package instead) (6022f34)
  • Get rid of non-used error, change header and footer (2eff529)