Skip to content

Commit

Permalink
(#4080) - remove local_seq
Browse files Browse the repository at this point in the history
  • Loading branch information
nolanlawson committed Jul 26, 2015
1 parent 228c580 commit 73b0f69
Show file tree
Hide file tree
Showing 5 changed files with 1 addition and 16 deletions.
1 change: 0 additions & 1 deletion docs/_includes/api/fetch_document.html
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@
* `options.conflicts`: If specified, conflicting leaf revisions will be attached in `_conflicts` array.
* `options.attachments`: Include attachment data.
* `options.binary`: Return attachment data as Blobs/Buffers, instead of as base64-encoded strings.
* `options.local_seq` (*DEPRECATED*): Include sequence number of the revision in the database, this will be removed in the next major version.
* `options.ajax`: An object of options to be sent to the ajax requester. In Node they are sent verbatim to [request][] with the exception of:
* `options.ajax.cache`: Appends a random string to the end of all HTTP GET requests to avoid them being cached on IE. Set this to `true` to prevent this happening.

Expand Down
5 changes: 0 additions & 5 deletions lib/adapter.js
Original file line number Diff line number Diff line change
Expand Up @@ -585,11 +585,6 @@ AbstractPouchDB.prototype.get =
}
}

if (opts.local_seq) {
utils.info('The "local_seq" option is deprecated and will be removed');
doc._local_seq = result.metadata.seq;
}

if (opts.attachments && doc._attachments) {
var attachments = doc._attachments;
var count = Object.keys(attachments).length;
Expand Down
3 changes: 0 additions & 3 deletions lib/adapters/http/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -334,9 +334,6 @@ function HttpPouch(opts, callback) {
params.push('revs_info=true');
}

if (opts.local_seq) {
params.push('local_seq=true');
}
// If it exists, add the opts.open_revs value to the list of parameters.
// If open_revs=all then the resulting JSON will include all the leaf
// revisions. If open_revs=["rev1", "rev2",...] then the resulting JSON
Expand Down
2 changes: 1 addition & 1 deletion lib/deps/docs/parseDoc.js
Original file line number Diff line number Diff line change
Expand Up @@ -164,4 +164,4 @@ exports.parseDoc = function (doc, newEdits) {
}
}
return result;
};
};
6 changes: 0 additions & 6 deletions lib/utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -353,12 +353,6 @@ exports.cancellableFun = function (fun, self, opts) {

exports.explain404 = require('./deps/explain404');

exports.info = function (str) {
if (typeof console !== 'undefined' && 'info' in console) {
console.info(str);
}
};

exports.parseUri = require('./deps/parseUri');

exports.compare = function (left, right) {
Expand Down

0 comments on commit 73b0f69

Please sign in to comment.