@ibm-cloud/cloudant 0.10.1 → 0.10.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 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.10.1
5
+ # IBM Cloudant Node.js SDK Version 0.10.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).
@@ -43,6 +43,9 @@ to avoid surprises.
43
43
  * [Error handling](#error-handling)
44
44
  * [Raw IO](#raw-io)
45
45
  * [Further resources](#further-resources)
46
+ * [Browser usage](#browser-usage)
47
+ + [Polyfills](#polyfills)
48
+ + [CORS](#cors)
46
49
  * [Changes feed follower (beta)](#changes-feed-follower-beta)
47
50
  + [Introduction](#introduction)
48
51
  + [Modes of operation](#modes-of-operation)
@@ -428,7 +431,7 @@ if (require.main === module) {
428
431
 
429
432
  When you run the code, you see a result similar to the following output.
430
433
 
431
- ```txt
434
+ ```text
432
435
  "orders" database created.
433
436
  You have created the document:
434
437
  {
@@ -551,7 +554,7 @@ if (require.main === module) {
551
554
  </details>
552
555
  When you run the code, you see a result similar to the following output.
553
556
 
554
- ```txt
557
+ ```text
555
558
  Server version 3.2.1
556
559
  Document count in "orders" database is 1.
557
560
  Document retrieved from database:
@@ -768,7 +771,7 @@ if (require.main === module) {
768
771
  </details>
769
772
  When you run the code, you see a result similar to the following output.
770
773
 
771
- ```txt
774
+ ```text
772
775
  You have updated the document:
773
776
  {
774
777
  "_id": "example",
@@ -894,13 +897,13 @@ if (require.main === module) {
894
897
  </details>
895
898
  When you run the code, you see the following output.
896
899
 
897
- ```txt
900
+ ```text
898
901
  You have deleted the document.
899
902
  ```
900
903
 
901
904
  #### Further code examples
902
905
 
903
- For a complete list of code examples, see the [examples directory](https://github.com/IBM/cloudant-node-sdk/tree/v0.10.1/examples#examples-for-node).
906
+ For a complete list of code examples, see the [examples directory](https://github.com/IBM/cloudant-node-sdk/tree/v0.10.2/examples#examples-for-node).
904
907
 
905
908
  ### Error handling
906
909
 
@@ -949,6 +952,68 @@ Expand them to see examples of:
949
952
  - [Cloudant blog](https://blog.cloudant.com/):
950
953
  Many useful articles about how to optimize Cloudant for common problems.
951
954
 
955
+ ### Browser usage
956
+
957
+ You can use the SDK directly from JavaScript running in a browser if:
958
+ * Polyfills for required Node.js system modules are available.
959
+ * The server configuration allows cross-origin resource sharing (CORS).
960
+
961
+ #### Polyfills
962
+
963
+ Use either:
964
+ * A bundler that includes polyfills for Node.js system modules in the browser.
965
+ * Or a Node.js compatible browser-based runtime.
966
+
967
+ The Node.js system modules required are:
968
+ * `assert`
969
+ * `buffer`
970
+ * `crypto`
971
+ * `fs`
972
+ * `http`
973
+ * `https`
974
+ * `os`
975
+ * `path`
976
+ * `process`
977
+ * `querystring`
978
+ * `stream`
979
+ * `timers`
980
+ * `url`
981
+ * `util`
982
+ * `vm`
983
+ * `zlib`
984
+
985
+ Additionally the SDK or its dependencies need to be able to resolve the globals:
986
+ * `Buffer`
987
+ * `process`
988
+ * `Readable`
989
+ * `setImmediate` and `setTimeout`
990
+
991
+ Environment variables:
992
+ * `NODE_DEBUG` (must be resolvable from the `process.env` even if it is unset)
993
+
994
+ It may be possible to omit some of these requirements for specific use cases.
995
+
996
+ #### CORS
997
+
998
+ To allow CORS requests from the SDK in the browser:
999
+ 1. Configure the server with a CORS origin matching the URL protocol, host and port of the JavaScript application.
1000
+ 2. Either
1001
+ * Configure the server with a CORS headers allow list that includes the default headers plus the SDK's extra headers:
1002
+ * `user-agent`
1003
+ * `x-ibmcloud-sdk-analytics`
1004
+ * `content-encoding` (unless SDK [request body compression is disabled](./KNOWN_ISSUES.md#Disabling-request-body-compression))
1005
+ * Or configure the SDK to remove the extra headers from requests, for example:
1006
+ ```js
1007
+ // Set a request interceptor to remove the headers from the requests
1008
+ service.getHttpClient().interceptors.request.use(requestConfig => {
1009
+ delete requestConfig.headers['User-Agent']
1010
+ delete requestConfig.headers['X-IBMCloud-SDK-Analytics']
1011
+ return requestConfig;
1012
+ });
1013
+ // Disable request body compression
1014
+ service.setEnableGzipCompression(false);
1015
+ ```
1016
+
952
1017
  ### Changes feed follower (beta)
953
1018
 
954
1019
  #### Introduction
@@ -997,7 +1062,7 @@ The changes follower requires the client to have HTTP timeouts of at least 1 min
997
1062
  instantiation if it is insufficient. The default client configuration has sufficiently long timeouts.
998
1063
 
999
1064
  For use-cases where these configuration limitations are deemed too restrictive then it is recommended to
1000
- write code to use the SDK's [POST `_changes` API](https://github.com/IBM/cloudant-node-sdk/tree/v0.10.1/examples#postchanges) instead of the follower.
1065
+ write code to use the SDK's [POST `_changes` API](https://github.com/IBM/cloudant-node-sdk/tree/v0.10.2/examples#postchanges) instead of the follower.
1001
1066
 
1002
1067
  #### Error suppression
1003
1068
 
@@ -1032,7 +1097,7 @@ The follower is not optimized for some use cases and it is not recommended to us
1032
1097
  * 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).
1033
1098
 
1034
1099
  In these cases use-case specific control over the number of change requests made and the content size of the responses
1035
- may be achieved by using the SDK's [POST `_changes` API](https://github.com/IBM/cloudant-node-sdk/tree/v0.10.1/examples#postchanges).
1100
+ may be achieved by using the SDK's [POST `_changes` API](https://github.com/IBM/cloudant-node-sdk/tree/v0.10.2/examples#postchanges).
1036
1101
 
1037
1102
  #### Checkpointing
1038
1103
 
@@ -1525,7 +1590,7 @@ If you encounter an issue with the project, you are welcome to submit a
1525
1590
 
1526
1591
  Before you submit a bug report, search for
1527
1592
  [similar issues](https://github.com/IBM/cloudant-node-sdk/issues?q=is%3Aissue) and review the
1528
- [KNOWN_ISSUES file](https://github.com/IBM/cloudant-node-sdk/tree/v0.10.1/KNOWN_ISSUES.md) to verify that your issue hasn't been reported yet.
1593
+ [KNOWN_ISSUES file](https://github.com/IBM/cloudant-node-sdk/tree/v0.10.2/KNOWN_ISSUES.md) to verify that your issue hasn't been reported yet.
1529
1594
 
1530
1595
  Please consult the [security policy](https://github.com/IBM/cloudant-node-sdk/security/policy) before opening security related issues.
1531
1596
 
@@ -1555,8 +1620,8 @@ Find more open source projects on the [IBM GitHub](http://ibm.github.io/) page.
1555
1620
 
1556
1621
  ## Contributing
1557
1622
 
1558
- For more information, see [CONTRIBUTING](https://github.com/IBM/cloudant-node-sdk/tree/v0.10.1/CONTRIBUTING.md).
1623
+ For more information, see [CONTRIBUTING](https://github.com/IBM/cloudant-node-sdk/tree/v0.10.2/CONTRIBUTING.md).
1559
1624
 
1560
1625
  ## License
1561
1626
 
1562
- 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.10.1/LICENSE).
1627
+ 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.10.2/LICENSE).
@@ -13,7 +13,7 @@
13
13
  * See the License for the specific language governing permissions and
14
14
  * limitations under the License.
15
15
  */
16
- import { OutgoingHttpHeaders } from 'http';
16
+ import { OutgoingHttpHeaders } from 'node:http';
17
17
  import { TokenManager, UserOptions } from 'ibm-cloud-sdk-core';
18
18
  /** Configuration options for CouchDB session token retrieval. */
19
19
  export interface SessionTokenManagerOptions extends UserOptions {
@@ -13,9 +13,8 @@
13
13
  * See the License for the specific language governing permissions and
14
14
  * limitations under the License.
15
15
  */
16
- import { ChangesResultItem } from '../v1';
16
+ import { default as CloudantV1, ChangesResultItem } from '../v1';
17
17
  import { Stream } from './stream';
18
- import CloudantV1 = require('../v1');
19
18
  /** @internal */
20
19
  export declare enum Mode {
21
20
  FINITE = 0,
@@ -3,7 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.ChangesFollower = exports.Mode = void 0;
4
4
  const changesParamsHelper_1 = require("./changesParamsHelper");
5
5
  const changesResultItemStream_1 = require("./changesResultItemStream");
6
- const stream_1 = require("stream");
6
+ const node_stream_1 = require("node:stream");
7
7
  const changesResultIterator_1 = require("./changesResultIterator");
8
8
  /** @internal */
9
9
  var Mode;
@@ -178,7 +178,7 @@ class ChangesFollower {
178
178
  }
179
179
  createChangesResultItemsStream(mode) {
180
180
  this.changesResultIterator = new changesResultIterator_1.ChangesResultIterableIterator(this.client, changesParamsHelper_1.ChangesParamsHelper.cloneParams(this.params), mode, this.errorTolerance);
181
- return (0, stream_1.pipeline)(stream_1.Readable.from(this.changesResultIterator), new changesResultItemStream_1.ChangesResultItemStream(), () => { });
181
+ return (0, node_stream_1.pipeline)(node_stream_1.Readable.from(this.changesResultIterator), new changesResultItemStream_1.ChangesResultItemStream(), () => { });
182
182
  }
183
183
  }
184
184
  exports.ChangesFollower = ChangesFollower;
@@ -1 +1 @@
1
- {"version":3,"file":"changesFollower.js","sourceRoot":"","sources":["../../../cloudant/features/changesFollower.ts"],"names":[],"mappings":";;;AAiBA,+DAA4D;AAC5D,uEAAoE;AACpE,mCAA4C;AAC5C,mEAAwE;AAGxE,gBAAgB;AAChB,IAAY,IAGX;AAHD,WAAY,IAAI;IACd,mCAAM,CAAA;IACN,mCAAM,CAAA;AACR,CAAC,EAHW,IAAI,oBAAJ,IAAI,QAGf;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAqDG;AACH,MAAa,eAAe;IAC1B,gBAAgB;IAChB,MAAM,CAAC,UAAU,GAAG,MAAM,CAAC;IAE3B,wBAAwB;IACP,MAAM,CAAa;IAEnB,MAAM,CAAoB;IAE1B,cAAc,CAAU;IAEjC,KAAK,CAAS;IAEd,qBAAqB,CAAgC;IAE7D;;;;;;;;;;;OAWG;IACH,YACE,MAAkB,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,CAAC,MAAM,EAAE,CAAC;QACtC,CAAC;aAAM,CAAC;YACN,MAAM,IAAI,KAAK,CAAC,yCAAyC,CAAC,CAAC;QAC7D,CAAC;IACH,CAAC;IAED;;;;OAIG;IACK,GAAG,CAAC,IAAU;QACpB,IAAI,CAAC,IAAI,CAAC,qBAAqB,EAAE,CAAC;YAChC,OAAO,IAAI,CAAC,8BAA8B,CAAC,IAAI,CAAC,CAAC;QACnD,CAAC;aAAM,CAAC;YACN,MAAM,IAAI,KAAK,CAAC,+CAA+C,CAAC,CAAC;QACnE,CAAC;IACH,CAAC;IAEO,8BAA8B,CAAC,IAAU;QAC/C,IAAI,CAAC,qBAAqB,GAAG,IAAI,qDAA6B,CAC5D,IAAI,CAAC,MAAM,EACX,yCAAmB,CAAC,WAAW,CAAC,IAAI,CAAC,MAAM,CAAC,EAC5C,IAAI,EACJ,IAAI,CAAC,cAAc,CACpB,CAAC;QAEF,OAAO,IAAA,sBAAQ,EACb,sBAAQ,CAAC,IAAI,CAAC,IAAI,CAAC,qBAAqB,CAAC,EACzC,IAAI,iDAAuB,EAAE,EAC7B,GAAG,EAAE,GAAE,CAAC,CACT,CAAC;IACJ,CAAC;;AA5IH,0CA6IC"}
@@ -14,8 +14,8 @@
14
14
  * limitations under the License.
15
15
  */
16
16
  import { Stream } from './stream';
17
- import { TransformCallback } from 'stream';
18
- import CloudantV1 = require('../v1');
17
+ import { TransformCallback } from 'node:stream';
18
+ import CloudantV1 from '../v1';
19
19
  export declare class ChangesResultItemStream extends Stream<CloudantV1.ChangesResultItem> {
20
20
  _transform(chunk: CloudantV1.ChangesResult, encoding: BufferEncoding, callback: TransformCallback): void;
21
21
  private getValidationError;
@@ -14,8 +14,7 @@
14
14
  * limitations under the License.
15
15
  */
16
16
  import { Mode } from './changesFollower';
17
- import { PostChangesParams } from '../v1';
18
- import CloudantV1 = require('../v1');
17
+ import { default as CloudantV1, PostChangesParams } from '../v1';
19
18
  export declare class ChangesResultIterableIterator implements AsyncIterableIterator<CloudantV1.ChangesResult> {
20
19
  private readonly timeoutPromise;
21
20
  private readonly cancelToken;
@@ -19,7 +19,7 @@ exports.ChangesResultIterableIterator = void 0;
19
19
  const changesParamsHelper_1 = require("./changesParamsHelper");
20
20
  const changesFollower_1 = require("./changesFollower");
21
21
  const ibm_cloud_sdk_core_1 = require("ibm-cloud-sdk-core");
22
- const util_1 = require("util");
22
+ const node_util_1 = require("node:util");
23
23
  var TransientErrorSuppression;
24
24
  (function (TransientErrorSuppression) {
25
25
  TransientErrorSuppression[TransientErrorSuppression["ALWAYS"] = 0] = "ALWAYS";
@@ -27,7 +27,7 @@ var TransientErrorSuppression;
27
27
  TransientErrorSuppression[TransientErrorSuppression["TIMER"] = 2] = "TIMER";
28
28
  })(TransientErrorSuppression || (TransientErrorSuppression = {}));
29
29
  class ChangesResultIterableIterator {
30
- timeoutPromise = (0, util_1.promisify)(setTimeout);
30
+ timeoutPromise = (0, node_util_1.promisify)(setTimeout);
31
31
  cancelToken = 'CloudantChangesIteratorCancel';
32
32
  client;
33
33
  doneResult = {
@@ -1 +1 @@
1
- {"version":3,"file":"changesResultIterator.js","sourceRoot":"","sources":["../../../cloudant/features/changesResultIterator.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;;;AAEH,+DAA4D;AAC5D,uDAA0D;AAC1D,2DAAkD;AAElD,+BAAiC;AAGjC,IAAK,yBAIJ;AAJD,WAAK,yBAAyB;IAC5B,6EAAM,CAAA;IACN,2EAAK,CAAA;IACL,2EAAK,CAAA;AACP,CAAC,EAJI,yBAAyB,KAAzB,yBAAyB,QAI7B;AAED,MAAa,6BAA6B;IAGvB,cAAc,GAAG,IAAA,gBAAS,EAAC,UAAU,CAAC,CAAC;IAEvC,WAAW,GAAG,+BAA+B,CAAC;IAE9C,MAAM,CAAa;IAEnB,UAAU,GAA6C;QACtE,IAAI,EAAE,IAAI;QACV,KAAK,EAAE,SAAS;KACjB,CAAC;IAEe,cAAc,CAAU;IAExB,MAAM,GA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AE,IAAI,CAAC,OAAO;4BACrB,OAAO,EAAE,EAAE;yBACZ;qBACF,CAAC;oBACJ,IAAI,QAAgB,CAAC;oBACrB,IAAI,IAAI,CAAC,KAAK,GAAG,IAAI,CAAC,YAAY,EAAE,CAAC;wBACnC,mDAAmD;wBACnD,QAAQ,GAAG,yCAAmB,CAAC,gBAAgB,CAAC;oBAClD,CAAC;yBAAM,CAAC;wBACN,QAAQ,GAAG,IAAI,CAAC,GAAG,CAAC,CAAC,EAAE,IAAI,CAAC,KAAK,CAAC,GAAG,IAAI,CAAC,SAAS,CAAC;oBACtD,CAAC;oBACD,MAAM,KAAK,GAAW,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,MAAM,EAAE,GAAG,QAAQ,CAAC,GAAG,CAAC,CAAC;oBAC/D,IAAI,CAAC,MAAM,CAAC,KAAK,CAAC,mBAAmB,KAAK,MAAM,CAAC,CAAC;oBAClD,IAAI,CAAC,KAAK,EAAE,CAAC;oBACb,OAAO,IAAI,CAAC,cAAc,CAAC,KAAK,CAAC,CAAC,IAAI,CAAC,GAAG,EAAE;wBAC1C,IAAI,CAAC,MAAM,CAAC,KAAK,CAAC,0CAA0C,CAAC,CAAC;wBAC9D,OAAO,yBAAyB,CAAC;oBACnC,CAAC,CAAC,CAAC;YACP,CAAC;QACH,CAAC,CAAC;aACD,OAAO,CAAC,GAAG,EAAE;YACZ,IAAI,CAAC,MAAM,CAAC,KAAK,CAAC,0BAA0B,CAAC,CAAC;YAC9C,IAAI,CAAC,MAAM,GAAG,IAAI,CAAC;YACnB,wDAAwD;YACxD,kBAAkB,EAAE,CAAC;QACvB,CAAC,CAAC,CAAC;IACP,CAAC;CACF;AA9QD,sEA8QC"}
1
+ {"version":3,"file":"changesResultIterator.js","sourceRoot":"","sources":["../../../cloudant/features/changesResultIterator.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;;;AAEH,+DAA4D;AAC5D,uDAA0D;AAC1D,2DAAkD;AAElD,yCAAsC;A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EAAE;YACZ,IAAI,CAAC,MAAM,CAAC,KAAK,CAAC,0BAA0B,CAAC,CAAC;YAC9C,IAAI,CAAC,MAAM,GAAG,IAAI,CAAC;YACnB,wDAAwD;YACxD,kBAAkB,EAAE,CAAC;QACvB,CAAC,CAAC,CAAC;IACP,CAAC;CACF;AA9QD,sEA8QC"}
@@ -13,7 +13,7 @@
13
13
  * See the License for the specific language governing permissions and
14
14
  * limitations under the License.
15
15
  */
16
- import { Transform, TransformOptions } from 'stream';
16
+ import { Transform, TransformOptions } from 'node:stream';
17
17
  export declare class Stream<T> extends Transform {
18
18
  constructor(opts?: TransformOptions);
19
19
  push(chunk: T, encoding?: BufferEncoding): boolean;
@@ -16,8 +16,8 @@
16
16
  */
17
17
  Object.defineProperty(exports, "__esModule", { value: true });
18
18
  exports.Stream = void 0;
19
- const stream_1 = require("stream");
20
- class Stream extends stream_1.Transform {
19
+ const node_stream_1 = require("node:stream");
20
+ class Stream extends node_stream_1.Transform {
21
21
  constructor(opts) {
22
22
  super({
23
23
  ...opts,
@@ -1 +1 @@
1
- {"version":3,"file":"stream.js","sourceRoot":"","sources":["../../../cloudant/features/stream.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;;;AAEH,mCAAqD;AAErD,MAAa,MAAU,SAAQ,kBAAS;IACtC,YAAY,IAAuB;QACjC,KAAK,CAAC;YACJ,GAAG,IAAI;YACP,UAAU,EAAE,IAAI,EAAE,yDAAyD;YAC3E,aAAa,EAAE,CAAC;SACjB,CAAC,CAAC;IACL,CAAC;IAED,IAAI,CAAC,KAAQ,EAAE,QAAyB;QACtC,OAAO,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;IAC3B,CAAC;IAED,IAAI,CAAC,IAAa;QAChB,OAAO,KAAK,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;IAC1B,CAAC;CACF;AAhBD,wBAgBC"}
1
+ {"version":3,"file":"stream.js","sourceRoot":"","sources":["../../../cloudant/features/stream.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;;;AAEH,6CAA0D;AAE1D,MAAa,MAAU,SAAQ,uBAAS;IACtC,YAAY,IAAuB;QACjC,KAAK,CAAC;YACJ,GAAG,IAAI;YACP,UAAU,EAAE,IAAI,EAAE,yDAAyD;YAC3E,aAAa,EAAE,CAAC;SACjB,CAAC,CAAC;IACL,CAAC;IAED,IAAI,CAAC,KAAQ,EAAE,QAAyB;QACtC,OAAO,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;IAC3B,CAAC;IAED,IAAI,CAAC,IAAa;QAChB,OAAO,KAAK,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;IAC1B,CAAC;CACF;AAhBD,wBAgBC"}