@ibm-cloud/cloudant 0.1.2 → 0.1.3

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.
Files changed (2) hide show
  1. package/README.md +12 -7
  2. package/package.json +12 -12
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.1.2
5
+ # IBM Cloudant Node.js SDK Version 0.1.3
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).
@@ -46,6 +46,7 @@ to avoid surprises.
46
46
  + [2. Create your own database and add a document](#2-create-your-own-database-and-add-a-document)
47
47
  + [3. Update your previously created document](#3-update-your-previously-created-document)
48
48
  + [4. Delete your previously created document](#4-delete-your-previously-created-document)
49
+ + [Further code examples](#further-code-examples)
49
50
  * [Error handling](#error-handling)
50
51
  * [Raw IO](#raw-io)
51
52
  * [Further resources](#further-resources)
@@ -96,7 +97,7 @@ project:
96
97
  service instance or a
97
98
  [CouchDB](https://docs.couchdb.org/en/latest/install/index.html)
98
99
  server.
99
- - Node.js 12, 14 or 16.
100
+ - Node.js 14 or 16.
100
101
 
101
102
  ## Installation
102
103
 
@@ -204,11 +205,11 @@ or in the
204
205
 
205
206
  ## Using the SDK
206
207
 
207
- For fundamental SDK usage information and config options, please see the common [IBM Cloud SDK](https://github.com/IBM/ibm-cloud-sdk-common/blob/master/README.md) documentation.
208
+ For fundamental SDK usage information and config options, please see the common [IBM Cloud SDK](https://github.com/IBM/ibm-cloud-sdk-common/blob/master/README.md) documentation.
208
209
 
209
210
  ### Request timeout configuration
210
211
 
211
- 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.
212
+ 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.
212
213
  The [request timeout](https://github.com/IBM/ibm-cloud-sdk-common/blob/master/README.md) section contains details on how to change the value.
213
214
 
214
215
  **Note:** System settings may take precedence over configured timeout values.
@@ -889,6 +890,10 @@ When you run the code, you see the following output.
889
890
  You have deleted the document.
890
891
  ```
891
892
 
893
+ #### Further code examples
894
+
895
+ For a complete list of code examples, see the [examples directory](examples#examples-for-node).
896
+
892
897
  ### Error handling
893
898
 
894
899
  For sample code on handling errors, see
@@ -897,7 +902,7 @@ For sample code on handling errors, see
897
902
  ### Raw IO
898
903
 
899
904
  For endpoints that read or write document content it is possible to bypass
900
- usage of the built-in interface with byte streams.
905
+ usage of the built-in interface with byte streams.
901
906
 
902
907
  Depending on the specific SDK operation it may be possible to:
903
908
  * accept a user-provided byte stream to send to the server as a request body
@@ -914,8 +919,8 @@ without triggering JSON unmarshalling that is typically performed by the SDK.
914
919
  The [update document](#3-update-your-previously-created-document) section
915
920
  contains examples for both request and response byte stream cases.
916
921
 
917
- The API reference contains further examples of using byte streams.
918
- They are titled "Example request as stream" and are initially collapsed.
922
+ The API reference contains further examples of using byte streams.
923
+ They are titled "Example request as stream" and are initially collapsed.
919
924
  Expand them to see examples of:
920
925
 
921
926
  - Byte requests:
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ibm-cloud/cloudant",
3
- "version": "0.1.2",
3
+ "version": "0.1.3",
4
4
  "description": "IBM Cloudant Node.js SDK",
5
5
  "main": "index.js",
6
6
  "repository": {
@@ -35,35 +35,35 @@
35
35
  "node": "^14 || ^16"
36
36
  },
37
37
  "dependencies": {
38
- "@types/node": "14.18.16",
39
- "ibm-cloud-sdk-core": "2.17.13"
38
+ "@types/node": "14.18.18",
39
+ "ibm-cloud-sdk-core": "2.17.14"
40
40
  },
41
41
  "devDependencies": {
42
42
  "@semantic-release/changelog": "6.0.1",
43
43
  "@semantic-release/git": "10.0.1",
44
- "@types/jest": "27.4.1",
45
- "@typescript-eslint/eslint-plugin": "5.21.0",
46
- "@typescript-eslint/parser": "5.21.0",
47
- "dotenv": "16.0.0",
48
- "eslint": "8.14.0",
44
+ "@types/jest": "27.5.0",
45
+ "@typescript-eslint/eslint-plugin": "5.26.0",
46
+ "@typescript-eslint/parser": "5.26.0",
47
+ "dotenv": "16.0.1",
48
+ "eslint": "8.16.0",
49
49
  "eslint-config-airbnb-base": "15.0.0",
50
50
  "eslint-config-airbnb-typescript": "17.0.0",
51
51
  "eslint-config-prettier": "8.5.0",
52
52
  "eslint-import-resolver-typescript": "2.7.1",
53
53
  "eslint-plugin-header": "3.1.1",
54
54
  "eslint-plugin-import": "2.26.0",
55
- "eslint-plugin-jest": "26.1.4",
56
- "eslint-plugin-jsdoc": "39.2.3",
55
+ "eslint-plugin-jest": "26.2.2",
56
+ "eslint-plugin-jsdoc": "39.3.0",
57
57
  "eslint-plugin-node": "11.1.0",
58
58
  "eslint-plugin-prettier": "4.0.0",
59
59
  "jest": "27.5.1",
60
60
  "jest-junit": "13.2.0",
61
61
  "prettier": "2.6.2",
62
62
  "semantic-release": "19.0.2",
63
- "sinon": "13.0.2",
63
+ "sinon": "14.0.0",
64
64
  "ts-jest": "27.1.4",
65
65
  "typedoc": "0.22.15",
66
- "typescript": "4.6.3"
66
+ "typescript": "4.6.4"
67
67
  },
68
68
  "peerDependencies": {
69
69
  "@types/tough-cookie": "^4.0.0",