npm install riak-js
Follow updates on Twitter: @riakjs
If you need a tiny little lib, you can use riak-dc
- Support Riak 2.0 (see #225)
- Fix a bug with buckets stream
- Add possibility to overwrite timeout value in Poolee for any requests
- Fix javascript error when we use data with an error
- options.keys / options.buckets are now taken into account with client.keys / client.buckets
- Remove useless console.log
- Attach response headers to error, enabling for example tombstone detection on 404.
- Allow user to override the riak port with HTTP_PORT / PB_PORT environement variables
- Fix a streaming error with node.js 0.10.x
- Using riakpbc 2.1 : dropping support for node 0.8 / dropping support for non-streams on protobuf for keys and buckets retrievals.
- Fix Travis CI
- Cleaner dependencies
- Fix HTTP status codes intepreted as errors when using the connection pool (github.com/chirag04 and github.com/domasx2)
- Support for HTTP connection pooling (github.com/andrewjstone)
- Fix unwanted errors in ping and save operation callbacks (github.com/matehat)
- Preliminary support for Protocol Buffers via a single connection.
- Fetch siblings by default, restoring previous riak-js behavior
- Populate meta.links when saving an object based on the response's HTTP headers (github.com/accelerated)
- Fix content length override. Allows handing in streaming data from e.g. connect.js. (github.com/englercj)
- Only set the language attribute on map and reduce phases. Avoid setting it on phases where it's not according to spec. (github.com/accelerated)
- Switch testing framework to mocha/should.js (github.com/kenperkins)
- Remove requirement of a Unix system from package.json (github.com/yawnt)
- Fix a global leak of HttpSearchMeta (github.com/brianedgerton)
- Fix Search options so it handles hostname and port (github.com/kenperkins)
- Fix unwanted vector clock overwriting during link walking (github.com/TauZero)
- Handle connection errors gracefully so that they don't kill the process
- Request instrumentation for metrics, logging, etc.
- Fix a leak in Httpmeta (github.com/rkusa), (#134)
- Handle content length properly for Unicode data (#132)
- Fix MapReduce options so it handles hostname and port (github.com/spencergibb)
- Add support for link-walking (github.com/TauZero)
- Handle JSONified error messages (github.com/spencergibb)
- Fix parsing of links on get requests (github.com/TauZero)
- Complete rewrite in JavaScript (two reasons: better debugging in production deployments, and more people can contribute)
- Support Riak 1.0 features
- First class support for streams (Luwak, key listing, Map/Reduce, logging)
- Faster testing with node-seq + assert
- Extra HTTP headers can now be passed in via
headers
(for instance custom usermeta,X-Riak-Meta-*
) - these will override whatever has been set elsewhere addSearch
is nowsearch
- The project is open for other implementations
- Removed Protocol Buffers support – contributions welcome (extend
Client
in a file calledprotobuf-client.js
along with aprotobuf-meta.js
) - A client-side impl is also possible (look at https://github.com/ded/reqwest)
- Support for Riak Search, including adding and removing documents directly.
Search is namespaced on the client separately:
riak.search.find('users', 'email:[email protected]')
- Moved MapReduce to a separate namespace on the client to separate concerns in
a nicer way:
riak.mapreduce.add('users').run()
- Unify
meta
in all responses (checkgetAll
, chunked map/reduce) - meta should allow for fine-grained mappings - SSL support
- Use path internally but don't expose it as API (see
path
branch), to prepare for new URIs in Riak 1.0 - More rigorous test suite (port from master)
- Integrate test backend
- Add search params [gpascale]
- SSL client [isaacs]
- Last-modified date patch [siculars]
- Add
meta.noError404
so that you can prevent 404s from showing up as errors [syrio] - Deprecation warnings
db.update
: convenience method for updating documents- Changed debug behaviour: always log to stdout. Not providing a callback will output to
console.log
regardless of the setting
- Allow headers to override, useful for reverse proxies sitting between node and Riak
- URI-encoding bucket/key is now an option (encodeUri)
- Add documentation for map/reduce arguments
- Remove agent from meta, which should fix critical bug (#64, #67)
- Allow logging to alternate streams. And default to stderr, not stdout (thanks Mark!)
- Add docs for host/port (thanks Ken!)
- Add the new
presort
property for Riak Search (thanks Greg!)
- Major docs update => http://riak-js.org
keys=stream
emitskeys
eventswalk
now acceptsnoJSON
- Support Map/Reduce timeout option
- Protobuf interface refactor (still experimental support in 0.4)
- Minor bug fixes
- node 0.4.x compatibility
- npm 1.0 compatibility
- Minor bug fixes
- Fix index.js and package.json for npm compat
- Fix recursing usermeta
- Fix for luwak location parsing
- Updates related to Riak Search operations
- Test backend implementation
- Connect session store
- Protobuf parsing is now more robust
- Replace client every time ECONNREFUSED occurs
- Initial Riak Search support
- Minor bugfixing and internals refactoring
- Add support for bucket listing in HTTP (new Riak 0.14 feature)
- Updated to CoffeeScript 1.0.0
- Fixed a memory leak caused by adding too many Event Listeners
- If there's no
vclock
present in a Meta, do not send anyclientId
Simplified BSD License
Copyright 2011 Francisco Treacy. All rights reserved.
Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
-
Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
-
Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.
THIS SOFTWARE IS PROVIDED BY FRANCISCO TREACY ''AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL FRANCISCO TREACY OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
The views and conclusions contained in the software and documentation are those of the authors and should not be interpreted as representing official policies, either expressed or implied, of Francisco Treacy.