Skip to content

Releases: aleclarson/rethinkdb-mock

0.7.1

17 Sep 15:23
Compare
Choose a tag to compare
  • fix: change postinstall script to prepare

0.7.0

17 Sep 14:39
Compare
Choose a tag to compare
  • use Jest and Prettier for better test experience
  • use better dependencies
  • lots of refactoring

0.6.0

15 Aug 19:42
Compare
Choose a tag to compare
  • Add map method
  • Add r.args
  • Add r.row (supported by map, filter, update, replace, and merge)
  • Add r.tableCreate
  • Add r.tableDrop
  • Validate table names
  • Allow replace on table queries
  • Allow hasFields on table queries
  • Don't evaluate queries passed to r.do when the given function has a length of zero
  • Evaluate queries from last to first when r.do is not given a function

0.5.0

11 Aug 13:46
Compare
Choose a tag to compare
  • Add contains
  • Add isEmpty
  • Add count
  • Add limit
  • Add skip
  • Expose table.bracket()

0.4.0

09 Aug 19:36
Compare
Choose a tag to compare
  • Add .branch()
  • Add r.do()
  • Support infinite arguments with .do()
  • Support selection queries nested in arrays/objects to be passed to .expr()
  • Prevent indexes < -1 when calling nth on a stream
  • Allow r(1) as shorthand for r.expr(1)

0.3.0

08 Aug 19:35
Compare
Choose a tag to compare
  • The Datum, Selection, and Sequence classes have been merged into a unified Query class
  • Errors are now thrown for incorrect number of arguments
  • Wrap any non-query arguments with r.expr(). This means nested queries are resolved before the action is performed!
  • Type-related error messages match rethinkdbdash more often
  • pluck and merge are now 100% bug-free
  • without supports nested arrays (but not objects yet)
  • default works with nested queries
  • r.expr() now checks for undefined and imaginary numbers
  • Fixed edge cases with update(null)
  • Implement the catch method
  • Add a Result class for reusing the result of a query via query.do()