@libp2p/pubsub 4.0.1 → 5.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/README.md CHANGED
@@ -3,16 +3,18 @@
3
3
  [![libp2p.io](https://img.shields.io/badge/project-libp2p-yellow.svg?style=flat-square)](http://libp2p.io/)
4
4
  [![Discuss](https://img.shields.io/discourse/https/discuss.libp2p.io/posts.svg?style=flat-square)](https://discuss.libp2p.io)
5
5
  [![codecov](https://img.shields.io/codecov/c/github/libp2p/js-libp2p-pubsub.svg?style=flat-square)](https://codecov.io/gh/libp2p/js-libp2p-pubsub)
6
- [![CI](https://img.shields.io/github/workflow/status/libp2p/js-libp2p-pubsub/test%20&%20maybe%20release/master?style=flat-square)](https://github.com/libp2p/js-libp2p-pubsub/actions/workflows/js-test-and-release.yml)
6
+ [![CI](https://img.shields.io/github/actions/workflow/status/libp2p/js-libp2p-pubsub/js-test-and-release.yml?branch=master\&style=flat-square)](https://github.com/libp2p/js-libp2p-pubsub/actions/workflows/js-test-and-release.yml?query=branch%3Amaster)
7
7
 
8
8
  > libp2p pubsub base class
9
9
 
10
10
  ## Table of contents <!-- omit in toc -->
11
11
 
12
12
  - [Install](#install)
13
+ - [Browser `<script>` tag](#browser-script-tag)
13
14
  - [Usage](#usage)
15
+ - [API Docs](#api-docs)
14
16
  - [License](#license)
15
- - [Contribute](#contribute)
17
+ - [Contribution](#contribution)
16
18
 
17
19
  ## Install
18
20
 
@@ -20,6 +22,14 @@
20
22
  $ npm i @libp2p/pubsub
21
23
  ```
22
24
 
25
+ ### Browser `<script>` tag
26
+
27
+ Loading this module through a script tag will make it's exports available as `Libp2pPubsub` in the global namespace.
28
+
29
+ ```html
30
+ <script src="https://unpkg.com/@libp2p/pubsub/dist/index.min.js"></script>
31
+ ```
32
+
23
33
  ## Usage
24
34
 
25
35
  ```console
@@ -34,6 +44,10 @@ class MyPubsubImplementation extends PubSubBaseProtocol {
34
44
  }
35
45
  ```
36
46
 
47
+ ## API Docs
48
+
49
+ - <https://libp2p.github.io/js-libp2p-pubsub>
50
+
37
51
  ## License
38
52
 
39
53
  Licensed under either of
@@ -41,6 +55,6 @@ Licensed under either of
41
55
  - Apache 2.0, ([LICENSE-APACHE](LICENSE-APACHE) / <http://www.apache.org/licenses/LICENSE-2.0>)
42
56
  - MIT ([LICENSE-MIT](LICENSE-MIT) / <http://opensource.org/licenses/MIT>)
43
57
 
44
- ## Contribute
58
+ ## Contribution
45
59
 
46
60
  Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.