Aerospike v2.0.0-alpha.1 Release Notes
Release Date: 2016-03-30 // about 8 years ago-
๐ Improvements
- Use asynchronous client commands of the new Aerospike C/C++ client library version 4.0.
- Follow Node.js error-first callback conventions: The client now returns
null as the first parameter (
error
) in most callbacks when the command was executed successfully. See backward incompatible API changes for more details. #105, PR #106. Thanks to @eljefedelrodeodeljefe! - Add support for pluggable callback handler logic for backwards compatibility with legacy error callback semantics.
- The
Key
,Double
andGeoJSON
functions can be used as Constructors now to create instances of the respective data types, e.g.var key = new Key(ns, set, 'mykey1')
. Use of theDouble
andGeoJSON
functions as well as thekey
function as regular functions without thenew
keyword is deprecated but still supported for backwards compatibility. - The new
batchRead
command was added to support reading different namespaces/bins for each key in a batch. This method requires Aerospike server version >= 3.6.0. The batchGet/batchExists/batchSelect client commands deprecated but still supported for backwards compatibility. - Added
isConnected
client method to check cluster connection status. - Improvements to the client's mocha test suite, incl. performance improvements by re-using a single client connection for all tests.
- Add missing status codes to
Aerospike.status
. - Added support for set compression threshold policy for write operations, retry policy for read operations, and ttl policy for apply operations.
๐ Fixes
- Node segfault when trying to query the aerospike client after closing the connection. #88
๐ Changes
- Drop support for Node.js v0.10. The Aerospike Node.js client now requires Node.js v0.12 or later.
- The
add
client command was renamed toincr
; theadd
function is maintained as an alias for the newincr
function for backwards compatibility but is deprecated. - The
execute
client command was renamed toapply
; theexecute
function is maintained as an alias for the newapply
function for backwards compatibility but is deprecated.
๐ Documentation
- JSDoc-style annotations have been added throughout the library code and new API documentation is generated from the source code using JSDoc v3. This is work-in-progress and will be completed before v2.0.0-final is released.