diff --git a/README.md b/README.md index 03bde7d..f6f689e 100644 --- a/README.md +++ b/README.md @@ -110,7 +110,7 @@ To use `nano` you need to connect it to your CouchDB install, to do that: const nano = require('nano')('http://127.0.0.1:5984'); ``` -> Note: The URL you supply may also contain authentication credentials e.g. `http://admin:mypassword@127.0.0.1:5984`. +> Note: Supplying authentication credentials in the URL e.g. `http://admin:mypassword@localhost:5984` is deprecated. Use `nano.auth` instead. To create a new database: @@ -539,7 +539,7 @@ const response = await alice.insert({ _id: 'myid', _rev: '1-23202479633c2b380f79 ### db.destroy(docname, rev, [callback]) -Removes a document from CouchDB whose `_id` is `docname` and who's revision is `_rev`: +Removes a document from CouchDB whose `_id` is `docname` and whose revision (`_rev`) is `rev`: ```js const response = await alice.destroy('rabbit', '3-66c01cdf99e84c83a9b3fe65b88db8c0') @@ -708,7 +708,7 @@ You may supply a number of options when you start to listen to the changes feed: | includeDocs | Whether to include document bodies or not | false | e.g. true | | wait | For `get`/`start` mode, automatically pause the changes reader after each request. When the the user calls `resume()`, the changes reader will resume. | false | e.g. true | | fastChanges | Adds a seq_interval parameter to fetch changes more quickly | false | true | | -| selector | Filters the changes feed with the supplied Mango selector | {"name":"fred} | null | | +| selector | Filters the changes feed with the supplied Mango selector | null | {"name":"fred} | | | timeout | The number of milliseconds a changes feed request waits for data| 60000 | 10000 | The events it emits are as follows:s diff --git a/package-lock.json b/package-lock.json index b2ad5ca..b65f52b 100644 --- a/package-lock.json +++ b/package-lock.json @@ -9,36 +9,27 @@ "version": "11.0.0", "license": "Apache-2.0", "devDependencies": { - "@types/node": "^20.10.6", - "typescript": "^5.3.3", + "@types/node": "^22.3.0", + "typescript": "^5.5.4", "undici": "^6.2.1" }, "engines": { "node": ">=18.0" } }, - "node_modules/@fastify/busboy": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/@fastify/busboy/-/busboy-2.1.0.tgz", - "integrity": "sha512-+KpH+QxZU7O4675t3mnkQKcZZg56u+K/Ct2K+N2AZYNVK8kyeo/bI18tI8aPm3tvNNRyTWfj6s5tnGNlcbQRsA==", - "dev": true, - "engines": { - "node": ">=14" - } - }, "node_modules/@types/node": { - "version": "20.10.6", - "resolved": "https://registry.npmjs.org/@types/node/-/node-20.10.6.tgz", - "integrity": "sha512-Vac8H+NlRNNlAmDfGUP7b5h/KA+AtWIzuXy0E6OyP8f1tCLYAtPvKRRDJjAPqhpCb0t6U2j7/xqAuLEebW2kiw==", + "version": "22.3.0", + "resolved": "https://registry.npmjs.org/@types/node/-/node-22.3.0.tgz", + "integrity": "sha512-nrWpWVaDZuaVc5X84xJ0vNrLvomM205oQyLsRt7OHNZbSHslcWsvgFR7O7hire2ZonjLrWBbedmotmIlJDVd6g==", "dev": true, "dependencies": { - "undici-types": "~5.26.4" + "undici-types": "~6.18.2" } }, "node_modules/typescript": { - "version": "5.3.3", - "resolved": "https://registry.npmjs.org/typescript/-/typescript-5.3.3.tgz", - "integrity": "sha512-pXWcraxM0uxAS+tN0AG/BF2TyqmHO014Z070UsJ+pFvYuRSq8KH8DmWpnbXe0pEPDHXZV3FcAbJkijJ5oNEnWw==", + "version": "5.5.4", + "resolved": "https://registry.npmjs.org/typescript/-/typescript-5.5.4.tgz", + "integrity": "sha512-Mtq29sKDAEYP7aljRgtPOpTvOfbwRWlS6dPRzwjdE+C0R4brX/GUyhHSecbHMFLNBLcJIPt9nl9yG5TZ1weH+Q==", "dev": true, "bin": { "tsc": "bin/tsc", @@ -49,21 +40,18 @@ } }, "node_modules/undici": { - "version": "6.2.1", - "resolved": "https://registry.npmjs.org/undici/-/undici-6.2.1.tgz", - "integrity": "sha512-7Wa9thEM6/LMnnKtxJHlc8SrTlDmxqJecgz1iy8KlsN0/iskQXOQCuPkrZLXbElPaSw5slFFyKIKXyJ3UtbApw==", + "version": "6.19.7", + "resolved": "https://registry.npmjs.org/undici/-/undici-6.19.7.tgz", + "integrity": "sha512-HR3W/bMGPSr90i8AAp2C4DM3wChFdJPLrWYpIS++LxS8K+W535qftjt+4MyjNYHeWabMj1nvtmLIi7l++iq91A==", "dev": true, - "dependencies": { - "@fastify/busboy": "^2.0.0" - }, "engines": { - "node": ">=18.0" + "node": ">=18.17" } }, "node_modules/undici-types": { - "version": "5.26.5", - "resolved": "https://registry.npmjs.org/undici-types/-/undici-types-5.26.5.tgz", - "integrity": "sha512-JlCMO+ehdEIKqlFxk6IfVoAUVmgz7cU7zD/h9XZ0qzeosSHmUJVOzSQvvYSYWXkFXC+IfLKSIffhv0sVZup6pA==", + "version": "6.18.2", + "resolved": "https://registry.npmjs.org/undici-types/-/undici-types-6.18.2.tgz", + "integrity": "sha512-5ruQbENj95yDYJNS3TvcaxPMshV7aizdv/hWYjGIKoANWKjhWNBsr2YEuYZKodQulB1b8l7ILOuDQep3afowQQ==", "dev": true } } diff --git a/package.json b/package.json index 614ff59..cf9a67f 100644 --- a/package.json +++ b/package.json @@ -20,8 +20,8 @@ }, "devDependencies": { "undici": "^6.2.1", - "@types/node": "^20.10.6", - "typescript": "^5.3.3" + "@types/node": "^22.3.0", + "typescript": "^5.5.4" }, "scripts": { "test": "tsc lib/nano.d.ts && node --test ./test/*.test.js"