@cloudant/couchbackup 2.5.3-SNAPSHOT.40 → 2.6.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGES.md CHANGED
@@ -1,3 +1,7 @@
1
+ # 2.6.0 (2020-09-22)
2
+ - [UPGRADED] Upgraded `@cloudant/cloudant` dependency to version `4.3.0`.
3
+ - [NOTE] Updated minimum supported engine to Node.js 10 "dubnium" LTS.
4
+
1
5
  # 2.5.2 (2020-03-02)
2
6
  - [FIXED] Issue with compatibility with Nano 8.2.0.
3
7
 
package/README.md CHANGED
@@ -35,7 +35,7 @@ npm install -g @cloudant/couchbackup
35
35
  ```
36
36
 
37
37
  ### Requirements
38
- * The minimum required Node.js version is 8.16.1.
38
+ * The minimum required Node.js version is 10.
39
39
  * The minimum required CouchDB version is 2.0.0.
40
40
 
41
41
  ### Snapshots
@@ -204,7 +204,7 @@ This tool can be used to script the backup of your databases. Move the backup an
204
204
  * `COUCH_URL` - the URL of the CouchDB/Cloudant server e.g. `http://127.0.0.1:5984`
205
205
  * `COUCH_DATABASE` - the name of the database to act upon e.g. `mydb` (default `test`)
206
206
  * `COUCH_PARALLELISM` - the number of HTTP requests to perform in parallel when restoring a backup e.g. `10` (Default `5`)
207
- * `COUCH_BUFFER_SIZE` - the number of documents fetched and restored at once e.g. `100` (default `500`)
207
+ * `COUCH_BUFFER_SIZE` - the number of documents fetched and restored at once e.g. `100` (default `500`). When using CouchBackup with [Cloudant on Transaction Engine](https://www.ibm.com/cloud/blog/announcements/ibm-cloudant-on-transaction-engine) `COUCH_BUFFER_SIZE` must be less than `2000` to avoid bad request errors.
208
208
  * `COUCH_REQUEST_TIMEOUT` - the number of milliseconds to wait for a respose to a HTTP request before retrying the request e.g. `10000` (Default `120000`)
209
209
  * `COUCH_LOG` - the file to store logging information during backup
210
210
  * `COUCH_RESUME` - if `true`, resumes a previous backup from its last known position
@@ -29,14 +29,14 @@ module.exports = function(db, options) {
29
29
  function(callback) {
30
30
  // Note, include_docs: true is set automatically when using the
31
31
  // fetch function.
32
- var opts = { limit: options.bufferSize };
32
+ var opts = { limit: options.bufferSize, include_docs: true };
33
33
 
34
34
  // To avoid double fetching a document solely for the purposes of getting
35
35
  // the next ID to use as a startkey for the next page we instead use the
36
36
  // last ID of the current page and append the lowest unicode sort
37
37
  // character.
38
38
  if (startKey) opts.startkey = `${startKey}\0`;
39
- db.fetch({}, opts, function(err, body) {
39
+ db.list(opts, function(err, body) {
40
40
  if (err) {
41
41
  err = error.convertResponseError(err);
42
42
  ee.emit('error', err);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cloudant/couchbackup",
3
- "version": "2.5.3-SNAPSHOT.40",
3
+ "version": "2.6.0",
4
4
  "description": "CouchBackup - command-line backup utility for Cloudant/CouchDB",
5
5
  "homepage": "https://github.com/cloudant/couchbackup",
6
6
  "repository": "https://github.com/cloudant/couchbackup.git",
@@ -17,14 +17,14 @@
17
17
  },
18
18
  "license": "Apache-2.0",
19
19
  "engines": {
20
- "node": ">=8.16.1"
20
+ "node": ">=10"
21
21
  },
22
22
  "dependencies": {
23
- "@cloudant/cloudant": "^4.2.3",
23
+ "@cloudant/cloudant": "^4.3.0",
24
24
  "async": "^3.1.0",
25
25
  "commander": "^5.0.0",
26
26
  "debug": "~4.1.0",
27
- "tmp": "0.1.0"
27
+ "tmp": "0.2.1"
28
28
  },
29
29
  "main": "app.js",
30
30
  "bin": {
@@ -32,9 +32,9 @@
32
32
  "couchrestore": "bin/couchrestore.bin.js"
33
33
  },
34
34
  "devDependencies": {
35
- "eslint": "^5.15.1",
35
+ "eslint": "^6.8.0",
36
36
  "eslint-config-semistandard": "^15.0.0",
37
- "eslint-config-standard": "^14.0.0",
37
+ "eslint-config-standard": "^14.1.1",
38
38
  "eslint-plugin-header": "^2.0.0",
39
39
  "eslint-plugin-import": "^2.8.0",
40
40
  "eslint-plugin-node": "^11.0.0",
@@ -43,7 +43,7 @@
43
43
  "eslint-plugin-standard": "^4.0.0",
44
44
  "http-proxy": "^1.16.2",
45
45
  "jsdoc": "^3.6.3",
46
- "mocha": "^7.0.1",
46
+ "mocha": "^8.1.3",
47
47
  "nock": "^12.0.0",
48
48
  "rewire": "^5.0.0",
49
49
  "tail": "^2.0.0",