@ibm-cloud/cloudant 0.9.0 → 0.9.2
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 +15 -8
- package/cloudant/v1.d.ts +332 -153
- package/cloudant/v1.js +357 -88
- package/cloudant/v1.js.map +1 -1
- package/package.json +10 -10
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.9.
|
|
5
|
+
# IBM Cloudant Node.js SDK Version 0.9.2
|
|
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).
|
|
@@ -41,6 +41,7 @@ to avoid surprises.
|
|
|
41
41
|
- [Session cookie authentication](#session-cookie-authentication)
|
|
42
42
|
+ [Authentication with external configuration](#authentication-with-external-configuration)
|
|
43
43
|
+ [Programmatic authentication](#programmatic-authentication)
|
|
44
|
+
* [Automatic retries](#automatic-retries)
|
|
44
45
|
* [Request timeout configuration](#request-timeout-configuration)
|
|
45
46
|
* [Code examples](#code-examples)
|
|
46
47
|
+ [1. Create a database and add a document](#1-create-a-database-and-add-a-document)
|
|
@@ -262,10 +263,16 @@ documentation in the
|
|
|
262
263
|
or in the
|
|
263
264
|
[Node.js SDK Core document](https://github.com/IBM/node-sdk-core/blob/main/Authentication.md) about authentication.
|
|
264
265
|
|
|
266
|
+
### Automatic retries
|
|
267
|
+
|
|
268
|
+
The SDK supports a generalized retry feature that can automatically retry on common errors.
|
|
269
|
+
|
|
270
|
+
The [automatic retries](https://github.com/IBM/ibm-cloud-sdk-common#automatic-retries) section has details on how to enable the retries with default values and customize the retries programmatically or with external configuration.
|
|
271
|
+
|
|
265
272
|
### Request timeout configuration
|
|
266
273
|
|
|
267
274
|
No request timeout is defined, but a 2.5m connect and 2.5m read timeout is set by default. Be sure to set a request timeout appropriate to your application usage and environment.
|
|
268
|
-
The [request timeout](https://github.com/IBM/ibm-cloud-sdk-common
|
|
275
|
+
The [request timeout](https://github.com/IBM/ibm-cloud-sdk-common#configuring-request-timeouts) section contains details on how to change the value.
|
|
269
276
|
|
|
270
277
|
**Note:** System settings may take precedence over configured timeout values.
|
|
271
278
|
|
|
@@ -935,7 +942,7 @@ You have deleted the document.
|
|
|
935
942
|
|
|
936
943
|
#### Further code examples
|
|
937
944
|
|
|
938
|
-
For a complete list of code examples, see the [examples directory](https://github.com/IBM/cloudant-node-sdk/tree/v0.9.
|
|
945
|
+
For a complete list of code examples, see the [examples directory](https://github.com/IBM/cloudant-node-sdk/tree/v0.9.2/examples#examples-for-node).
|
|
939
946
|
|
|
940
947
|
### Error handling
|
|
941
948
|
|
|
@@ -1033,7 +1040,7 @@ The changes follower requires the client to have HTTP timeouts of at least 1 min
|
|
|
1033
1040
|
instantiation if it is insufficient. The default client configuration has sufficiently long timeouts.
|
|
1034
1041
|
|
|
1035
1042
|
For use-cases where these configuration limitations are deemed too restrictive then it is recommended to
|
|
1036
|
-
write code to use the SDK's [POST `_changes` API](https://github.com/IBM/cloudant-node-sdk/tree/v0.9.
|
|
1043
|
+
write code to use the SDK's [POST `_changes` API](https://github.com/IBM/cloudant-node-sdk/tree/v0.9.2/examples#postchanges) instead of the follower.
|
|
1037
1044
|
|
|
1038
1045
|
#### Error suppression
|
|
1039
1046
|
|
|
@@ -1068,7 +1075,7 @@ The follower is not optimized for some use cases and it is not recommended to us
|
|
|
1068
1075
|
* The volume of changes is very high (if the rate of changes in the database exceeds the follower's rate of pulling them it will never catch-up).
|
|
1069
1076
|
|
|
1070
1077
|
In these cases use-case specific control over the number of change requests made and the content size of the responses
|
|
1071
|
-
may be achieved by using the SDK's [POST `_changes` API](https://github.com/IBM/cloudant-node-sdk/tree/v0.9.
|
|
1078
|
+
may be achieved by using the SDK's [POST `_changes` API](https://github.com/IBM/cloudant-node-sdk/tree/v0.9.2/examples#postchanges).
|
|
1072
1079
|
|
|
1073
1080
|
#### Checkpointing
|
|
1074
1081
|
|
|
@@ -1579,7 +1586,7 @@ If you encounter an issue with the project, you are welcome to submit a
|
|
|
1579
1586
|
|
|
1580
1587
|
Before you submit a bug report, search for
|
|
1581
1588
|
[similar issues](https://github.com/IBM/cloudant-node-sdk/issues?q=is%3Aissue) and review the
|
|
1582
|
-
[KNOWN_ISSUES file](https://github.com/IBM/cloudant-node-sdk/tree/v0.9.
|
|
1589
|
+
[KNOWN_ISSUES file](https://github.com/IBM/cloudant-node-sdk/tree/v0.9.2/KNOWN_ISSUES.md) to verify that your issue hasn't been reported yet.
|
|
1583
1590
|
|
|
1584
1591
|
Please consult the [security policy](https://github.com/IBM/cloudant-node-sdk/security/policy) before opening security related issues.
|
|
1585
1592
|
|
|
@@ -1609,8 +1616,8 @@ Find more open source projects on the [IBM GitHub](http://ibm.github.io/) page.
|
|
|
1609
1616
|
|
|
1610
1617
|
## Contributing
|
|
1611
1618
|
|
|
1612
|
-
For more information, see [CONTRIBUTING](https://github.com/IBM/cloudant-node-sdk/tree/v0.9.
|
|
1619
|
+
For more information, see [CONTRIBUTING](https://github.com/IBM/cloudant-node-sdk/tree/v0.9.2/CONTRIBUTING.md).
|
|
1613
1620
|
|
|
1614
1621
|
## License
|
|
1615
1622
|
|
|
1616
|
-
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.9.
|
|
1623
|
+
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.9.2/LICENSE).
|