@ibm-cloud/cloudant 0.12.22 → 0.12.23
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 +16 -15
- 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.12.
|
|
5
|
+
# IBM Cloudant Node.js SDK Version 0.12.23
|
|
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).
|
|
@@ -61,15 +61,16 @@ project:
|
|
|
61
61
|
|
|
62
62
|
- Supported by IBM Cloudant.
|
|
63
63
|
- Server compatibility with:
|
|
64
|
-
- IBM Cloudant.
|
|
64
|
+
- IBM Cloudant (Gen 1).
|
|
65
|
+
- IBM Cloudant (Gen 2) - see [compatibility notes](https://github.com/IBM/cloudant-node-sdk/tree/v0.12.23/KNOWN_ISSUES.md#cloudant-gen-2-compatibility).
|
|
65
66
|
- [Apache CouchDB 3.x](https://docs.couchdb.org/en/stable/) for data operations.
|
|
66
67
|
- Includes all the most popular and latest supported endpoints for
|
|
67
68
|
applications.
|
|
68
69
|
- Handles the authentication.
|
|
69
70
|
- Familiar user experience with IBM Cloud SDKs.
|
|
70
71
|
- Flexibility to use either built-in models or byte-based requests and responses for documents.
|
|
71
|
-
- Built-in [Changes feed follower](https://github.com/IBM/cloudant-node-sdk/tree/v0.12.
|
|
72
|
-
- Built-in [Pagination](https://github.com/IBM/cloudant-node-sdk/tree/v0.12.
|
|
72
|
+
- Built-in [Changes feed follower](https://github.com/IBM/cloudant-node-sdk/tree/v0.12.23/docs/Changes_Follower.md)
|
|
73
|
+
- Built-in [Pagination](https://github.com/IBM/cloudant-node-sdk/tree/v0.12.23/docs/Pagination.md)
|
|
73
74
|
- `Promise` based design with asynchronous HTTP requests.
|
|
74
75
|
- Use either as native JavaScript or take advantage of TypeScript models.
|
|
75
76
|
- Transparently compresses request and response bodies.
|
|
@@ -99,16 +100,16 @@ account.
|
|
|
99
100
|
|
|
100
101
|
There are several ways to **set** these authentication properties:
|
|
101
102
|
|
|
102
|
-
1. As [environment variables](https://github.com/IBM/cloudant-node-sdk/tree/v0.12.
|
|
103
|
-
2. The [programmatic approach](https://github.com/IBM/cloudant-node-sdk/tree/v0.12.
|
|
104
|
-
3. With an [external credentials file](https://github.com/IBM/cloudant-node-sdk/tree/v0.12.
|
|
103
|
+
1. As [environment variables](https://github.com/IBM/cloudant-node-sdk/tree/v0.12.23/docs/Authentication.md#authentication-with-environment-variables)
|
|
104
|
+
2. The [programmatic approach](https://github.com/IBM/cloudant-node-sdk/tree/v0.12.23/docs/Authentication.md#programmatic-authentication)
|
|
105
|
+
3. With an [external credentials file](https://github.com/IBM/cloudant-node-sdk/tree/v0.12.23/docs/Authentication.md#authentication-with-external-configuration)
|
|
105
106
|
|
|
106
107
|
The following section describes the different authentication types and provides environment variable examples.
|
|
107
108
|
Examples for other configuration methods are available by following the provided links.
|
|
108
109
|
|
|
109
110
|
### Authentication
|
|
110
111
|
|
|
111
|
-
Consult the [authentication document](https://github.com/IBM/cloudant-node-sdk/tree/v0.12.
|
|
112
|
+
Consult the [authentication document](https://github.com/IBM/cloudant-node-sdk/tree/v0.12.23/docs/Authentication.md)
|
|
112
113
|
for comprehensive details of all the available authentication methods and how to configure them with environment settings
|
|
113
114
|
or programmatically.
|
|
114
115
|
|
|
@@ -154,10 +155,10 @@ service.getAllDbs().then(response => {
|
|
|
154
155
|
});
|
|
155
156
|
```
|
|
156
157
|
|
|
157
|
-
[More tutorial examples](https://github.com/IBM/cloudant-node-sdk/tree/v0.12.
|
|
158
|
+
[More tutorial examples](https://github.com/IBM/cloudant-node-sdk/tree/v0.12.23/docs/Examples.md) for creating a database
|
|
158
159
|
and document create, read, update and delete operations.
|
|
159
160
|
|
|
160
|
-
For a complete list of code examples, see the [examples directory](https://github.com/IBM/cloudant-node-sdk/tree/v0.12.
|
|
161
|
+
For a complete list of code examples, see the [examples directory](https://github.com/IBM/cloudant-node-sdk/tree/v0.12.23/examples#examples-for-node).
|
|
161
162
|
|
|
162
163
|
### Error handling
|
|
163
164
|
|
|
@@ -181,7 +182,7 @@ Response byte stream is supported in functions with the suffix of `AsStream`.
|
|
|
181
182
|
The returned byte stream allows the response body to be consumed
|
|
182
183
|
without triggering JSON unmarshalling that is typically performed by the SDK.
|
|
183
184
|
|
|
184
|
-
The [update document](https://github.com/IBM/cloudant-node-sdk/tree/v0.12.
|
|
185
|
+
The [update document](https://github.com/IBM/cloudant-node-sdk/tree/v0.12.23/docs/Examples.md#3-update-your-previously-created-document) section
|
|
185
186
|
contains examples for both request and response byte stream cases.
|
|
186
187
|
|
|
187
188
|
The API reference contains further examples of using byte streams.
|
|
@@ -197,7 +198,7 @@ Expand them to see examples of:
|
|
|
197
198
|
|
|
198
199
|
### Further resources
|
|
199
200
|
|
|
200
|
-
- [Cloudant Node.js SDK feature docs](https://github.com/IBM/cloudant-node-sdk/tree/v0.12.
|
|
201
|
+
- [Cloudant Node.js SDK feature docs](https://github.com/IBM/cloudant-node-sdk/tree/v0.12.23/docs)
|
|
201
202
|
- [Cloudant API docs](https://cloud.ibm.com/apidocs/cloudant?code=node):
|
|
202
203
|
API reference including usage examples for Cloudant Node.js SDK API.
|
|
203
204
|
- [TypeDoc](https://ibm.github.io/cloudant-node-sdk/):
|
|
@@ -282,7 +283,7 @@ If you encounter an issue with the project, you are welcome to submit a
|
|
|
282
283
|
|
|
283
284
|
Before you submit a bug report, search for
|
|
284
285
|
[similar issues](https://github.com/IBM/cloudant-node-sdk/issues?q=is%3Aissue) and review the
|
|
285
|
-
[KNOWN_ISSUES file](https://github.com/IBM/cloudant-node-sdk/tree/v0.12.
|
|
286
|
+
[KNOWN_ISSUES file](https://github.com/IBM/cloudant-node-sdk/tree/v0.12.23/KNOWN_ISSUES.md) to verify that your issue hasn't been reported yet.
|
|
286
287
|
|
|
287
288
|
Please consult the [security policy](https://github.com/IBM/cloudant-node-sdk/security/policy) before opening security related issues.
|
|
288
289
|
|
|
@@ -312,8 +313,8 @@ Find more open source projects on the [IBM GitHub](http://ibm.github.io/) page.
|
|
|
312
313
|
|
|
313
314
|
## Contributing
|
|
314
315
|
|
|
315
|
-
For more information, see [CONTRIBUTING](https://github.com/IBM/cloudant-node-sdk/tree/v0.12.
|
|
316
|
+
For more information, see [CONTRIBUTING](https://github.com/IBM/cloudant-node-sdk/tree/v0.12.23/CONTRIBUTING.md).
|
|
316
317
|
|
|
317
318
|
## License
|
|
318
319
|
|
|
319
|
-
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.
|
|
320
|
+
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.23/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.23",
|
|
4
4
|
"description": "IBM Cloudant Node.js SDK",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"repository": {
|
|
@@ -40,29 +40,29 @@
|
|
|
40
40
|
"node": "^22 || ^24"
|
|
41
41
|
},
|
|
42
42
|
"dependencies": {
|
|
43
|
-
"@types/node": "22.
|
|
44
|
-
"ibm-cloud-sdk-core": "5.
|
|
43
|
+
"@types/node": "22.20.0",
|
|
44
|
+
"ibm-cloud-sdk-core": "5.5.0"
|
|
45
45
|
},
|
|
46
46
|
"devDependencies": {
|
|
47
47
|
"@eslint/js": "9.39.4",
|
|
48
48
|
"@ibm-cloud/sdk-test-utilities": "^1.0.0",
|
|
49
49
|
"@types/extend": "3.0.4",
|
|
50
50
|
"@types/jest": "30.0.0",
|
|
51
|
-
"@typescript-eslint/eslint-plugin": "8.
|
|
52
|
-
"@typescript-eslint/parser": "8.
|
|
51
|
+
"@typescript-eslint/eslint-plugin": "8.62.1",
|
|
52
|
+
"@typescript-eslint/parser": "8.62.1",
|
|
53
53
|
"dotenv": "17.4.2",
|
|
54
54
|
"eslint": "9.39.4",
|
|
55
55
|
"eslint-config-prettier": "10.1.8",
|
|
56
56
|
"eslint-plugin-header": "3.1.1",
|
|
57
57
|
"eslint-plugin-import": "2.32.0",
|
|
58
|
-
"eslint-plugin-jest": "29.15.
|
|
59
|
-
"eslint-plugin-jsdoc": "63.0.
|
|
58
|
+
"eslint-plugin-jest": "29.15.4",
|
|
59
|
+
"eslint-plugin-jsdoc": "63.0.10",
|
|
60
60
|
"eslint-plugin-prettier": "5.5.6",
|
|
61
|
-
"globals": "17.
|
|
61
|
+
"globals": "17.7.0",
|
|
62
62
|
"jest": "30.4.2",
|
|
63
63
|
"jest-junit": "17.0.0",
|
|
64
|
-
"nock": "14.0.
|
|
65
|
-
"prettier": "3.
|
|
64
|
+
"nock": "14.0.16",
|
|
65
|
+
"prettier": "3.9.4",
|
|
66
66
|
"sinon": "22.0.0",
|
|
67
67
|
"ts-jest": "29.4.11",
|
|
68
68
|
"typedoc": "0.28.19",
|