Skip to content
Browse files

remove deprecated "update" call

  • Loading branch information...
1 parent 2bba728 commit d6de30e817863bd7ec4445adabffa05f7dd04807 Francisco Treacy committed
Showing with 0 additions and 30 deletions.
  1. +0 −8 docs/index.html
  2. +0 −9 spec/batch_http.coffee
  3. +0 −9 src/http_client.coffee
  4. +0 −4 src/index.coffee
View
8 docs/index.html
@@ -315,14 +315,6 @@ <h4 id="headers">HTTP headers</h4>
<pre><code>db.save('flights', 'KLM-5034', flight, { returnbody: true, dw: 'quorum', method: 'POST' })</code></pre>
- <h4>Update</h4>
-
- <pre><code>db.update('airlines', 'ARG', { fleet: 41 })</code></pre>
-
- <p>You may remove properties by setting them to <code>undefined</code>:</p>
-
- <pre><code>db.update('airlines', 'ARG', { european: undefined })</code></pre>
-
<h4>Remove</h4>
<pre><code>db.remove('airlines', 'KLM')</code></pre>
View
9 spec/batch_http.coffee
@@ -72,15 +72,6 @@ module.exports =
assert.ok key.match /^test/
assert.ok name.match /^Testing/
- 'document update request':
- topic: ->
- db.update bucket, 'test3', { updated: true, wtf: 'yes', wee: 42 }, { returnbody: true }, @callback
-
- 'gets updated data': (err, data, meta) ->
- assert.ok data.updated
- assert.equal data.wtf, 'yes'
- assert.equal data.wee, 42
-
'a Buffer':
topic: ->
db.save bucket, 'test-buffer', new Buffer('hello'), { contentType: 'application/x-play', responseEncoding: 'binary', returnbody: true }, @callback
View
9 src/http_client.coffee
@@ -97,15 +97,6 @@ class HttpClient extends Client
verb = options.method or if key then 'PUT' else 'POST'
@execute verb, meta, callback
- update: (bucket, key, newData, options...) ->
- console.warn("[riak-js] db.update is deprecated, scheduled for removal on next release. Please port your code to db.get/db.save.")
- [options, callback] = @ensure options
-
- @get bucket, key, options, (err, data) =>
- if err then return callback(err)
- data = Utils.mixin(true, {}, data, newData)
- @save bucket, key, data, options, callback
-
remove: (bucket, key, options...) ->
[options, callback] = @ensure options
meta = new Meta bucket, key, options
View
4 src/index.coffee
@@ -23,10 +23,6 @@ module.exports =
options.api or= module.exports.defaults.api
module.exports[options.api] options
- getSessionStore: (options) ->
- console.warn("[riak-js] SessionStore is deprecated, scheduled for removal on next release. Please port your code to https://github.com/frank06/connect-riak.")
- new @SessionStore options
-
# exports
module.exports.__defineGetter__ 'HttpClient', ->

0 comments on commit d6de30e

Please sign in to comment.
Something went wrong with that request. Please try again.