pulsar-client 0.0.1-rc.1 → 1.0.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/.eslintignore CHANGED
@@ -17,4 +17,5 @@
17
17
  # under the License.
18
18
  #
19
19
 
20
+ examples
20
21
  perf
package/README.md CHANGED
@@ -42,10 +42,22 @@ Compatibility between each version of the Node.js client and the C++ client is a
42
42
 
43
43
  | Node.js client | C++ client |
44
44
  |----------------|----------------|
45
- | 0.0.1 | 2.3.0 or later |
45
+ | 1.0.0 | 2.3.0 or later |
46
46
 
47
47
  If an incompatible version of the C++ client is installed, you may fail to build or run this library.
48
48
 
49
+ ## How to install
50
+
51
+ ### Please install pulsar-client in your project:
52
+
53
+ ```shell
54
+ $ npm install pulsar-client
55
+ ```
56
+
57
+ ## Sample code
58
+
59
+ Please refer to [examples](https://github.com/apache/pulsar-client-node/tree/master/examples).
60
+
49
61
  ## How to build
50
62
 
51
63
  ### Install dependent npm modules and build Pulsar client library:
@@ -17,7 +17,7 @@
17
17
  * under the License.
18
18
  */
19
19
 
20
- const Pulsar = require('../index.js');
20
+ const Pulsar = require('pulsar-client');
21
21
 
22
22
  (async () => {
23
23
  // Create a client
@@ -17,7 +17,7 @@
17
17
  * under the License.
18
18
  */
19
19
 
20
- const Pulsar = require('../index.js');
20
+ const Pulsar = require('pulsar-client');
21
21
 
22
22
  (async () => {
23
23
  const auth = new Pulsar.AuthenticationTls({
@@ -17,7 +17,7 @@
17
17
  * under the License.
18
18
  */
19
19
 
20
- const Pulsar = require('../index.js');
20
+ const Pulsar = require('pulsar-client');
21
21
 
22
22
  (async () => {
23
23
  // Create a client
@@ -17,7 +17,7 @@
17
17
  * under the License.
18
18
  */
19
19
 
20
- const Pulsar = require('../index.js');
20
+ const Pulsar = require('pulsar-client');
21
21
 
22
22
  (async () => {
23
23
  const auth = new Pulsar.AuthenticationTls({
@@ -17,7 +17,7 @@
17
17
  * under the License.
18
18
  */
19
19
 
20
- const Pulsar = require('../index.js');
20
+ const Pulsar = require('pulsar-client');
21
21
 
22
22
  (async () => {
23
23
  // Create a client
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pulsar-client",
3
- "version": "0.0.1-rc.1",
3
+ "version": "1.0.1",
4
4
  "description": "Pulsar Node.js client",
5
5
  "main": "index.js",
6
6
  "directories": {