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