@ibm-cloud/cloudant 0.12.5 → 0.12.7
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/README.md +17 -17
- package/package.json +6 -6
package/README.md
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
[](https://github.com/IBM/cloudant-node-sdk/releases/latest)
|
|
3
3
|
[](https://ibm.github.io/cloudant-node-sdk/)
|
|
4
4
|
|
|
5
|
-
# IBM Cloudant Node.js SDK Version 0.12.
|
|
5
|
+
# IBM Cloudant Node.js SDK Version 0.12.7
|
|
6
6
|
|
|
7
7
|
IBM Cloudant Node.js SDK is a client library that interacts with the
|
|
8
8
|
[IBM Cloudant APIs](https://cloud.ibm.com/apidocs/cloudant?code=node).
|
|
@@ -948,7 +948,7 @@ You have deleted the document.
|
|
|
948
948
|
|
|
949
949
|
#### Further code examples
|
|
950
950
|
|
|
951
|
-
For a complete list of code examples, see the [examples directory](https://github.com/IBM/cloudant-node-sdk/tree/v0.12.
|
|
951
|
+
For a complete list of code examples, see the [examples directory](https://github.com/IBM/cloudant-node-sdk/tree/v0.12.7/examples#examples-for-node).
|
|
952
952
|
|
|
953
953
|
### Error handling
|
|
954
954
|
|
|
@@ -1107,7 +1107,7 @@ The changes follower requires the client to have HTTP timeouts of at least 1 min
|
|
|
1107
1107
|
instantiation if it is insufficient. The default client configuration has sufficiently long timeouts.
|
|
1108
1108
|
|
|
1109
1109
|
For use-cases where these configuration limitations are too restrictive then write code to use the SDK's
|
|
1110
|
-
[POST `_changes` API](https://github.com/IBM/cloudant-node-sdk/tree/v0.12.
|
|
1110
|
+
[POST `_changes` API](https://github.com/IBM/cloudant-node-sdk/tree/v0.12.7/examples#postchanges) instead of the follower.
|
|
1111
1111
|
|
|
1112
1112
|
#### Error suppression
|
|
1113
1113
|
|
|
@@ -1141,7 +1141,7 @@ The follower is not optimized for some use cases and it is not recommended to us
|
|
|
1141
1141
|
* Setting `include_docs` and larger document sizes (for example > 10 kiB).
|
|
1142
1142
|
* The volume of changes is very high (if the rate of changes in the database exceeds the follower's rate of pulling them it can never catch-up).
|
|
1143
1143
|
|
|
1144
|
-
In these use-cases use the SDK's [POST `_changes` API](https://github.com/IBM/cloudant-node-sdk/tree/v0.12.
|
|
1144
|
+
In these use-cases use the SDK's [POST `_changes` API](https://github.com/IBM/cloudant-node-sdk/tree/v0.12.7/examples#postchanges)
|
|
1145
1145
|
for specific control over the number of change requests made and the content size of the responses.
|
|
1146
1146
|
|
|
1147
1147
|
#### Checkpoints
|
|
@@ -1699,22 +1699,22 @@ then a `429 Too Many Requests` error occurs.
|
|
|
1699
1699
|
Pagination is available for these operations:
|
|
1700
1700
|
* Query all documents [global](https://cloud.ibm.com/apidocs/cloudant?code=node#postalldocs)
|
|
1701
1701
|
and [partitioned](https://cloud.ibm.com/apidocs/cloudant?code=node#postpartitionalldocs)
|
|
1702
|
-
* [Global all documents examples](https://github.com/IBM/cloudant-node-sdk/tree/v0.12.
|
|
1703
|
-
* [Partitioned all documents examples](https://github.com/IBM/cloudant-node-sdk/tree/v0.12.
|
|
1702
|
+
* [Global all documents examples](https://github.com/IBM/cloudant-node-sdk/tree/v0.12.7/test/examples/src/features/pagination/ts/allDocsPagination.ts)
|
|
1703
|
+
* [Partitioned all documents examples](https://github.com/IBM/cloudant-node-sdk/tree/v0.12.7/test/examples/src/features/pagination/ts/partitionAllDocsPagination.ts)
|
|
1704
1704
|
* Query all [design documents](https://cloud.ibm.com/apidocs/cloudant?code=node#postdesigndocs)
|
|
1705
|
-
* [Design documents examples](https://github.com/IBM/cloudant-node-sdk/tree/v0.12.
|
|
1705
|
+
* [Design documents examples](https://github.com/IBM/cloudant-node-sdk/tree/v0.12.7/test/examples/src/features/pagination/ts/designDocsPagination.ts)
|
|
1706
1706
|
* Query with selector syntax [global](https://cloud.ibm.com/apidocs/cloudant?code=node#postfind)
|
|
1707
1707
|
and [partitioned](https://cloud.ibm.com/apidocs/cloudant?code=node#postpartitionfind)
|
|
1708
|
-
* [Global find selector query examples](https://github.com/IBM/cloudant-node-sdk/tree/v0.12.
|
|
1709
|
-
* [Partitioned find selector query examples](https://github.com/IBM/cloudant-node-sdk/tree/v0.12.
|
|
1708
|
+
* [Global find selector query examples](https://github.com/IBM/cloudant-node-sdk/tree/v0.12.7/test/examples/src/features/pagination/ts/findPagination.ts)
|
|
1709
|
+
* [Partitioned find selector query examples](https://github.com/IBM/cloudant-node-sdk/tree/v0.12.7/test/examples/src/features/pagination/ts/partitionFindPagination.ts)
|
|
1710
1710
|
* Query a search index [global](https://cloud.ibm.com/apidocs/cloudant?code=node#postsearch)
|
|
1711
1711
|
and [partitioned](https://cloud.ibm.com/apidocs/cloudant?code=node#postpartitionsearch)
|
|
1712
|
-
* [Global search examples](https://github.com/IBM/cloudant-node-sdk/tree/v0.12.
|
|
1713
|
-
* [Partitioned search examples](https://github.com/IBM/cloudant-node-sdk/tree/v0.12.
|
|
1712
|
+
* [Global search examples](https://github.com/IBM/cloudant-node-sdk/tree/v0.12.7/test/examples/src/features/pagination/ts/searchPagination.ts)
|
|
1713
|
+
* [Partitioned search examples](https://github.com/IBM/cloudant-node-sdk/tree/v0.12.7/test/examples/src/features/pagination/ts/partitionSearchPagination.ts)
|
|
1714
1714
|
* Query a MapReduce view [global](https://cloud.ibm.com/apidocs/cloudant?code=node#postview)
|
|
1715
1715
|
and [partitioned](https://cloud.ibm.com/apidocs/cloudant?code=node#postpartitionview)
|
|
1716
|
-
* [Global view examples](https://github.com/IBM/cloudant-node-sdk/tree/v0.12.
|
|
1717
|
-
* [Partitioned view examples](https://github.com/IBM/cloudant-node-sdk/tree/v0.12.
|
|
1716
|
+
* [Global view examples](https://github.com/IBM/cloudant-node-sdk/tree/v0.12.7/test/examples/src/features/pagination/ts/viewPagination.ts)
|
|
1717
|
+
* [Partitioned view examples](https://github.com/IBM/cloudant-node-sdk/tree/v0.12.7/test/examples/src/features/pagination/ts/partitionViewPagination.ts)
|
|
1718
1718
|
|
|
1719
1719
|
The examples presented in this `README` are for all documents in a partition.
|
|
1720
1720
|
The links in the list are to equivalent examples for each of the other available operations.
|
|
@@ -1748,7 +1748,7 @@ import { pipeline } from 'node:stream/promises';
|
|
|
1748
1748
|
<summary>JavaScript:</summary>
|
|
1749
1749
|
|
|
1750
1750
|
```js
|
|
1751
|
-
import { Pagination, PagerType } from '@ibm-cloud/cloudant';
|
|
1751
|
+
import { CloudantV1, Pagination, PagerType } from '@ibm-cloud/cloudant';
|
|
1752
1752
|
import { Writable } from 'node:stream';
|
|
1753
1753
|
import { pipeline } from 'node:stream/promises';
|
|
1754
1754
|
```
|
|
@@ -2164,7 +2164,7 @@ If you encounter an issue with the project, you are welcome to submit a
|
|
|
2164
2164
|
|
|
2165
2165
|
Before you submit a bug report, search for
|
|
2166
2166
|
[similar issues](https://github.com/IBM/cloudant-node-sdk/issues?q=is%3Aissue) and review the
|
|
2167
|
-
[KNOWN_ISSUES file](https://github.com/IBM/cloudant-node-sdk/tree/v0.12.
|
|
2167
|
+
[KNOWN_ISSUES file](https://github.com/IBM/cloudant-node-sdk/tree/v0.12.7/KNOWN_ISSUES.md) to verify that your issue hasn't been reported yet.
|
|
2168
2168
|
|
|
2169
2169
|
Please consult the [security policy](https://github.com/IBM/cloudant-node-sdk/security/policy) before opening security related issues.
|
|
2170
2170
|
|
|
@@ -2194,8 +2194,8 @@ Find more open source projects on the [IBM GitHub](http://ibm.github.io/) page.
|
|
|
2194
2194
|
|
|
2195
2195
|
## Contributing
|
|
2196
2196
|
|
|
2197
|
-
For more information, see [CONTRIBUTING](https://github.com/IBM/cloudant-node-sdk/tree/v0.12.
|
|
2197
|
+
For more information, see [CONTRIBUTING](https://github.com/IBM/cloudant-node-sdk/tree/v0.12.7/CONTRIBUTING.md).
|
|
2198
2198
|
|
|
2199
2199
|
## License
|
|
2200
2200
|
|
|
2201
|
-
This SDK is released under the Apache 2.0 license. To read the full text of the license, see [LICENSE](https://github.com/IBM/cloudant-node-sdk/tree/v0.12.
|
|
2201
|
+
This SDK is released under the Apache 2.0 license. To read the full text of the license, see [LICENSE](https://github.com/IBM/cloudant-node-sdk/tree/v0.12.7/LICENSE).
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ibm-cloud/cloudant",
|
|
3
|
-
"version": "0.12.
|
|
3
|
+
"version": "0.12.7",
|
|
4
4
|
"description": "IBM Cloudant Node.js SDK",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"repository": {
|
|
@@ -40,8 +40,8 @@
|
|
|
40
40
|
"node": "^20 || ^22"
|
|
41
41
|
},
|
|
42
42
|
"dependencies": {
|
|
43
|
-
"@types/node": "20.19.
|
|
44
|
-
"ibm-cloud-sdk-core": "5.4.
|
|
43
|
+
"@types/node": "20.19.9",
|
|
44
|
+
"ibm-cloud-sdk-core": "5.4.2"
|
|
45
45
|
},
|
|
46
46
|
"devDependencies": {
|
|
47
47
|
"@ibm-cloud/sdk-test-utilities": "^1.0.0",
|
|
@@ -49,7 +49,7 @@
|
|
|
49
49
|
"@types/jest": "30.0.0",
|
|
50
50
|
"@typescript-eslint/eslint-plugin": "7.18.0",
|
|
51
51
|
"@typescript-eslint/parser": "7.18.0",
|
|
52
|
-
"dotenv": "17.2.
|
|
52
|
+
"dotenv": "17.2.1",
|
|
53
53
|
"eslint": "8.57.0",
|
|
54
54
|
"eslint-config-airbnb-base": "15.0.0",
|
|
55
55
|
"eslint-config-prettier": "10.1.1",
|
|
@@ -60,9 +60,9 @@
|
|
|
60
60
|
"eslint-plugin-jsdoc": "51.4.0",
|
|
61
61
|
"eslint-plugin-node": "11.1.0",
|
|
62
62
|
"eslint-plugin-prettier": "5.5.0",
|
|
63
|
-
"jest": "30.0.
|
|
63
|
+
"jest": "30.0.5",
|
|
64
64
|
"jest-junit": "16.0.0",
|
|
65
|
-
"nock": "14.0.
|
|
65
|
+
"nock": "14.0.6",
|
|
66
66
|
"prettier": "3.6.2",
|
|
67
67
|
"sinon": "21.0.0",
|
|
68
68
|
"ts-jest": "29.4.0",
|