Skip to content

Releases: nx-js/observer-util

v3.1.3

10 Sep 13:23
Compare
Choose a tag to compare

Fixes

  • Fixed a critical error in the build process

v3.1.2

09 Sep 21:15
Compare
Choose a tag to compare

Improvements

  • Improved the build process

v3.1.1

09 Sep 08:39
Compare
Choose a tag to compare

Fixes

  • Fixed a small build issue: The library is now exposing the dist folder

v3.1.0

08 Sep 23:32
Compare
Choose a tag to compare

Features

  • Added the nextTick function. See docs here.

v3.0.0

25 May 20:18
Compare
Choose a tag to compare

Breaking changes

  • observe now only accepts a function. The ctx and args options are removed. The passed function is returned.
  • Moved the unobserve, unqueue and exec methods from the returned observer to the library scope as functions. They all take an observer as argument now.

Features

  • The library now supports ES6 modules (and tree shaking) as well as commonJS.

Fixes

  • ES6 collection sizes are now observable.
  • Expando properties on ES6 collections are now observable.
  • $raw access on ES6 collections now properly returns the underlying collection instance instead of a hacked object.

v2.0.0

07 Feb 17:40
Compare
Choose a tag to compare

Breaking changes

  • Observed functions now run synchronously once, when passed to observe. After that they run asynchronously in a batch, like before.
  • queue is removed.
  • unobserve is moved from a global method into a signal method. See the related docs section here.

Features

  • Added signal.unqueue, which removes the associated observed function from the queued observers, without unobserving it. See the related docs section here.
  • Added signal.exec, which runs the observed function directly and synchronously. See the related docs section here.