Releases: goldibex/targaryen
Releases · goldibex/targaryen
2.3.0 beta 0
This an intermediary release of the upcoming v2.3.0 release.
Changes
- Expose Ruleset, DataSnapshot and helpers.
- Write operations now replace nodes instead of merging them.
- Fix initial timestamps; The timestamp used to replace a server value will match the
now
variable in rule tests. - Fix parsing rules with unknown identifers.
- Fix
Ruleset#tryWrite
returningdata
andnewData
as a value instead of a snapshot. - Fix inconsistence between Ruleset's
tryRead
,tryWrite
, andtryPatch
returned result: they now all return a root and data snapshot, and a newRoot and newData snapshot when appropriate. - Prune off null value and empty node after any update.
- Partially fix type inference while building the rules.
setFirebaseData
gains anow
parameter:targaryen.setFirebaseData(data[, now]);
.- jasmine matchers gain an optional
now
parameter. - chai plugin
write
andpatch
methods gain an optionalnow
parameter. - chai plugin gains a
readAt(now)
method.
Thanks goes to @mhuebert for his many contributions.
install
npm install targaryen@beta