Skip to content

Releases: XbyOrange/mercury

Stats property

14 Oct 11:13
641d11a
Compare
Choose a tag to compare

Added

  • Add stats property containing counters of method actions executions.

Changed

  • Upgrade devDependencies

Selectors can return array of sources

14 Oct 07:30
c1339ed
Compare
Choose a tag to compare

Added

  • Selectors can now return an array of sources.
  • Selectors can now return sources defined as objects containing query and/or catch property.

Fixed

  • Fix Sonar code smell.

Default value callback

14 Oct 06:51
54cabf2
Compare
Choose a tag to compare

Added

  • defaultValue argument in Origin Constructor now can be a function. It will be called to obtain the defaultValue, passing to it the current query as argument.
  • Add utility for testing catch functions of selector sources.

Sources handler

14 Oct 06:17
f4aee87
Compare
Choose a tag to compare

Added

  • Accept options object in Origin constructor as last argument.
  • Assign to the _id private property the value received in new option "uuid", when received.
  • Last argument in Selectors now can be an object containing "defaultValue" and/or "uuid" options.
  • Add "sources" handler for managing all instantiated mercury sources as a group.
  • Add "config" method to Origin and sources handlers. From now, all Origin implementations can define its own _config method, which will be called with the resultant config each time the "config" method is called.

Changed

  • _id private property now is a hash of default id and default value (if no "uuid" option is received)
  • Objects without query now will emit "undefined" as "_queryId" property in "cleanAny" events, instead of "null".

Fixed

  • Emit _root property on cleanAny events of Selectors.

Improve queries interface and events data

28 Jun 07:28
239a3e8
Compare
Choose a tag to compare

Added

  • Expose _root property in queried instances to allow identify the root instance.
  • Emit _root property on cleanAny events.

Fixed

  • Expose custom queries methods in customQueries property, as described in documentation.
  • Expose test.queries properties for concurrent sources.

First public release

03 Jun 10:15
1d02d25
Compare
Choose a tag to compare
  • Forked from xByOrange reactive-data-source v1.7.0 private library. (Expose only Origin and Selector in this one)