Skip to content

Releases: creativecuriositystudio/node-rules

7.4.0-cc

13 Mar 10:27

Choose a tag to compare

  • add $clone and $cloneDeep
  • fix $each $where checking

7.3.2-cc

01 Mar 12:40

Choose a tag to compare

make current-date match the date in the current timezone

7.3.1-cc

28 Feb 06:55

Choose a tag to compare

fix bug in untested code... :\

7.3.0-cc

28 Feb 06:42

Choose a tag to compare

add 'current-date' as an option to the 'timeBetween' accessors

7.2.0-cc

24 Feb 15:44

Choose a tag to compare

store permutations count in global facts by default (_global.permCount)

7.1.3-cc

24 Feb 01:22

Choose a tag to compare

fix a bug with forEach that lead to completely empty forEach objs generating a single perm result when there should be nothing

7.1.2-cc

19 Feb 02:05

Choose a tag to compare

remove console logs

7.1.1-cc

19 Feb 02:05

Choose a tag to compare

fix missing rules bug

7.1.0-cc

15 Feb 16:13

Choose a tag to compare

  • Add date diff calculators (time between two dates)
    Usage: { output: { $daysBetween: [date1, date2] }}
    Diffs are integers by default, but can be made floats by passing true as the 3rd element
    Possible diffs are:
    • $millisecondsBetween
    • $secondsBetween
    • $minutesBetween
    • $hoursBetween
    • $daysBetween
    • $weeksBetween
    • $monthsBetween
    • $quartersBetween
    • $yearsBetween
  • Add 'global' facts for shared data across forEach runs
    Data is available at _global
    Starting data can be passed as last element in the forEach list, otherwise it defaults to an empty object
    Eg. execute({ items: [1, 2] }, forEach: ['items', { global: 'state' }]) -> [{ items: 1, _global: { global: 'state' }}, { items: 2, _global: { global: 'state' }}]

7.0.0-cc

05 Feb 07:02

Choose a tag to compare

swap $in and $contains as they were backwards