Released on 2013-06-13
This release introduces basic access control, regular expression matching, new array operations, random sampling, better error handling, and many bug fixes.
New Features
- ReQL
- Added access control with a single, common API key (#266)
- Improved handshake to the client driver protocol (#978)
- Added
sample
command for random sampling of sequences (#861, #182) - Secondary indexes can be queried with boolean values (#854)
- Added
onFinished
callback toeach
in JavaScript to improve cursors (#443) - Added per-command durability settings (#890)
- Changed
hard_durability=True
todurability = 'soft' | 'hard'
- Added a
durability
option torun
- Changed
- Added
with_fields
command, andpluck
no longer throws on missing attributes (#886) - Renamed
contains
tohas_fields
(#885)has_fields
runs on tables, objects, and arrays, and doesn't throw on missing attributescontains
now checks if an element is in an array
- Added
default
command: replaces missing fields with a default value (#884) - Added new array operations (#868, #198, #341)
prepend
: prepends an element to an arrayappend
: appends an element to an arrayinsert_at
: inserts an element at the specified indexsplice_at
: splices a list into another list at the specified indexdelete_at
: deletes the element at the specified indexchange_at
: changes the element at the specified index to the specified value+
operator: adds two arrays -- returns the ordered union*
operator: repeats an arrayn
timesdifference
: removes all instances of specified elements from an arraycount
: returns the number of elements in an arrayindexes_of
: returns positions of elements that match the specified value in an arrayis_empty
: check if an array or table is emptyset_insert
: adds an element to a setset_intersection
: finds the intersection of two setsset_union
: returns the union of two setsset_difference
: returns the difference of two sets
- Added
match
command for regular expression matching (#867) - Added
keys
command that returns the fields of an object (#181)
- Web UI
- Document fields are now sorted in alphabetical order in the table view (#832)
- CLI
- Build system
Fixed Bugs
- Server
- ReQL
- Use the correct function name in backtraces (#995)
- Fixed callback issues in the JavaScript driver (#846)
- In JavaScript, call the callback when the connection is closed (#758)
- In JavaScript, GETATTR now checks the argument count (#992)
- Tweaked the CoffeeScript source to work with older versions of coffee and node (#963)
- Fixed a typo in the error handling of the JavaScript driver (#961)
- Fixed performance regression for
pluck
andwithout
(#947) - Make sure callbacks get cleared in the Javascript driver (#942)
- Improved errors when
return
is omitted in Javascript (#914)
- Web UI
- Tests
- Build