@ibm-cloud/cloudant 0.9.0 → 0.9.1

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 CHANGED
@@ -2,7 +2,7 @@
2
2
  [![Release](https://img.shields.io/github/v/release/IBM/cloudant-node-sdk?include_prereleases&sort=semver)](https://github.com/IBM/cloudant-node-sdk/releases/latest)
3
3
  [![Docs](https://img.shields.io/static/v1?label=TypeDoc&message=latest&color=blue)](https://ibm.github.io/cloudant-node-sdk/)
4
4
 
5
- # IBM Cloudant Node.js SDK Version 0.9.0
5
+ # IBM Cloudant Node.js SDK Version 0.9.1
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/blob/main/README.md) section contains details on how to change the value.
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.0/examples#examples-for-node).
945
+ For a complete list of code examples, see the [examples directory](https://github.com/IBM/cloudant-node-sdk/tree/v0.9.1/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.0/examples#postchanges) instead of the follower.
1043
+ write code to use the SDK's [POST `_changes` API](https://github.com/IBM/cloudant-node-sdk/tree/v0.9.1/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.0/examples#postchanges).
1078
+ may be achieved by using the SDK's [POST `_changes` API](https://github.com/IBM/cloudant-node-sdk/tree/v0.9.1/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.0/KNOWN_ISSUES.md) to verify that your issue hasn't been reported yet.
1589
+ [KNOWN_ISSUES file](https://github.com/IBM/cloudant-node-sdk/tree/v0.9.1/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.0/CONTRIBUTING.md).
1619
+ For more information, see [CONTRIBUTING](https://github.com/IBM/cloudant-node-sdk/tree/v0.9.1/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.0/LICENSE).
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.1/LICENSE).