Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion .cspell.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,8 @@
"name": "project",
"path": "./.github/dictionary.txt",
"addWords": true
}]
}],
"ignorePaths": [
"packages/gossipsub/**"
]
}
2 changes: 1 addition & 1 deletion .release-please-manifest.json
Original file line number Diff line number Diff line change
@@ -1 +1 @@
{"packages/config":"1.1.14","packages/connection-encrypter-plaintext":"2.0.29","packages/connection-encrypter-tls":"2.2.7","packages/crypto":"5.1.8","packages/interface":"2.11.0","packages/interface-compliance-tests":"6.5.0","packages/interface-internal":"2.3.19","packages/kad-dht":"15.1.11","packages/keychain":"5.2.9","packages/libp2p":"2.10.0","packages/logger":"5.2.0","packages/metrics-opentelemetry":"1.0.21","packages/metrics-prometheus":"4.3.30","packages/metrics-simple":"1.3.16","packages/multistream-select":"6.0.29","packages/peer-collections":"6.0.35","packages/peer-discovery-bootstrap":"11.0.47","packages/peer-discovery-mdns":"11.0.47","packages/peer-id":"5.1.9","packages/peer-record":"8.0.35","packages/peer-store":"11.2.7","packages/pnet":"2.0.47","packages/protocol-autonat":"2.0.38","packages/protocol-dcutr":"2.0.38","packages/protocol-echo":"2.1.28","packages/protocol-fetch":"3.0.22","packages/protocol-identify":"3.0.39","packages/protocol-perf":"4.0.47","packages/protocol-ping":"2.0.37","packages/pubsub":"10.1.18","packages/pubsub-floodsub":"10.1.46","packages/record":"4.0.7","packages/stream-multiplexer-mplex":"11.0.47","packages/transport-circuit-relay-v2":"3.2.24","packages/transport-memory":"1.1.14","packages/transport-tcp":"10.1.19","packages/transport-webrtc":"5.2.24","packages/transport-websockets":"9.2.19","packages/transport-webtransport":"5.0.51","packages/upnp-nat":"3.1.22","packages/utils":"6.7.2","packages/protocol-autonat-v2":"1.0.1"}
{"packages/config":"1.1.14","packages/connection-encrypter-plaintext":"2.0.29","packages/connection-encrypter-tls":"2.2.7","packages/crypto":"5.1.8","packages/interface":"2.11.0","packages/interface-compliance-tests":"6.5.0","packages/interface-internal":"2.3.19","packages/kad-dht":"15.1.11","packages/keychain":"5.2.9","packages/libp2p":"2.10.0","packages/logger":"5.2.0","packages/metrics-opentelemetry":"1.0.21","packages/metrics-prometheus":"4.3.30","packages/metrics-simple":"1.3.16","packages/multistream-select":"6.0.29","packages/peer-collections":"6.0.35","packages/peer-discovery-bootstrap":"11.0.47","packages/peer-discovery-mdns":"11.0.47","packages/peer-id":"5.1.9","packages/peer-record":"8.0.35","packages/peer-store":"11.2.7","packages/pnet":"2.0.47","packages/protocol-autonat":"2.0.38","packages/protocol-dcutr":"2.0.38","packages/protocol-echo":"2.1.28","packages/protocol-fetch":"3.0.22","packages/protocol-identify":"3.0.39","packages/protocol-perf":"4.0.47","packages/protocol-ping":"2.0.37","packages/floodsub":"10.1.46","packages/record":"4.0.7","packages/stream-multiplexer-mplex":"11.0.47","packages/transport-circuit-relay-v2":"3.2.24","packages/transport-memory":"1.1.14","packages/transport-tcp":"10.1.19","packages/transport-webrtc":"5.2.24","packages/transport-websockets":"9.2.19","packages/transport-webtransport":"5.0.51","packages/upnp-nat":"3.1.22","packages/utils":"6.7.2","packages/protocol-autonat-v2":"1.0.1"}
3 changes: 1 addition & 2 deletions .release-please.json
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,7 @@
"packages/protocol-identify": {},
"packages/protocol-perf": {},
"packages/protocol-ping": {},
"packages/pubsub": {},
"packages/pubsub-floodsub": {},
"packages/floodsub": {},
"packages/record": {},
"packages/stream-multiplexer-mplex": {},
"packages/transport-circuit-relay-v2": {},
Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ You can find multiple examples on the [examples repo](https://github.com/libp2p/
- [`/packages/protocol-echo`](https://github.com/libp2p/js-libp2p/tree/main/packages/protocol-echo) Implementation of an Echo protocol
- [`/packages/protocol-perf`](https://github.com/libp2p/js-libp2p/tree/main/packages/protocol-perf) Implementation of the Perf protocol
- [`/packages/pubsub`](https://github.com/libp2p/js-libp2p/tree/main/packages/pubsub) libp2p pubsub base class
- [`/packages/pubsub-floodsub`](https://github.com/libp2p/js-libp2p/tree/main/packages/pubsub-floodsub) libp2p-floodsub, also known as pubsub-flood or just dumbsub, this implementation of pubsub focused on delivering an API for Publish/Subscribe, but with no CastTree Forming (it just floods the network).
- [`/packages/floodsub`](https://github.com/libp2p/js-libp2p/tree/main/packages/floodsub) libp2p-floodsub, also known as pubsub-flood or just dumbsub, this implementation of pubsub focused on delivering an API for Publish/Subscribe, but with no CastTree Forming (it just floods the network).
- [`/packages/record`](https://github.com/libp2p/js-libp2p/tree/main/packages/record) libp2p record implementation
- [`/packages/stream-multiplexer-mplex`](https://github.com/libp2p/js-libp2p/tree/main/packages/stream-multiplexer-mplex) JavaScript implementation of <https://github.com/libp2p/mplex>
- [`/packages/transport-tcp`](https://github.com/libp2p/js-libp2p/tree/main/packages/transport-tcp) A TCP transport for libp2p
Expand Down Expand Up @@ -174,7 +174,7 @@ List of packages currently in existence for libp2p
| [`@libp2p/peer-record`](//github.com/libp2p/js-libp2p/tree/main/packages/peer-record) | [![npm](https://img.shields.io/npm/v/%40libp2p%2Fpeer-record.svg?maxAge=86400&style=flat-square)](//npmjs.com/package/@libp2p/peer-record) | [![Deps](https://img.shields.io/librariesio/release/npm/%40libp2p%2Fpeer-record?logo=Libraries.io&logoColor=white&style=flat-square)](//libraries.io/npm/%40libp2p%2Fpeer-record) | [![GitHub CI](https://img.shields.io/github/actions/workflow/status/libp2p/js-libp2p/main.yml?branch=main&label=ci&style=flat-square)](//github.com/libp2p/js-libp2p/actions?query=branch%3Amain+workflow%3Aci+) | [![codecov](https://codecov.io/gh/libp2p/js-libp2p/tree/main/packages/peer-record/branch/main/graph/badge.svg?style=flat-square)](https://codecov.io/gh/libp2p/js-libp2p/tree/main/packages/peer-record) |
| **pubsub** |
| [`@chainsafe/libp2p-gossipsub`](//github.com/ChainSafe/js-libp2p-gossipsub) | [![npm](https://img.shields.io/npm/v/%40chainsafe%2Flibp2p-gossipsub.svg?maxAge=86400&style=flat-square)](//npmjs.com/package/@chainsafe/libp2p-gossipsub) | [![Deps](https://img.shields.io/librariesio/release/npm/%40chainsafe%2Flibp2p-gossipsub?logo=Libraries.io&logoColor=white&style=flat-square)](//libraries.io/npm/%40chainsafe%2Flibp2p-gossipsub) | [![GitHub CI](https://img.shields.io/github/actions/workflow/status/ChainSafe/js-libp2p-gossipsub/main.yml?branch=master&label=ci&style=flat-square)](//github.com/ChainSafe/js-libp2p-gossipsub/actions?query=branch%3Amaster+workflow%3Aci+) | [![codecov](https://codecov.io/gh/ChainSafe/js-libp2p-gossipsub/branch/master/graph/badge.svg?style=flat-square)](https://codecov.io/gh/ChainSafe/js-libp2p-gossipsub) |
| [`@libp2p/floodsub`](//github.com/libp2p/js-libp2p/tree/main/packages/pubsub-floodsub) | [![npm](https://img.shields.io/npm/v/%40libp2p%2Ffloodsub.svg?maxAge=86400&style=flat-square)](//npmjs.com/package/@libp2p/floodsub) | [![Deps](https://img.shields.io/librariesio/release/npm/%40libp2p%2Ffloodsub?logo=Libraries.io&logoColor=white&style=flat-square)](//libraries.io/npm/%40libp2p%2Ffloodsub) | [![GitHub CI](https://img.shields.io/github/actions/workflow/status/libp2p/js-libp2p/main.yml?branch=main&label=ci&style=flat-square)](//github.com/libp2p/js-libp2p/actions?query=branch%3Amain+workflow%3Aci+) | [![codecov](https://codecov.io/gh/libp2p/js-libp2p/tree/main/packages/pubsub-floodsub/branch/main/graph/badge.svg?style=flat-square)](https://codecov.io/gh/libp2p/js-libp2p/tree/main/packages/pubsub-floodsub) |
| [`@libp2p/floodsub`](//github.com/libp2p/js-libp2p/tree/main/packages/floodsub) | [![npm](https://img.shields.io/npm/v/%40libp2p%2Ffloodsub.svg?maxAge=86400&style=flat-square)](//github.com/libp2p/js-libp2p/tree/main/packages/floodsub/releases) | [![Deps](https://img.shields.io/librariesio/release/npm/%40libp2p%2Ffloodsub?logo=Libraries.io&logoColor=white&style=flat-square)](//libraries.io/npm/%40libp2p%2Ffloodsub) | [![GitHub CI](https://img.shields.io/github/actions/workflow/status/libp2p/js-libp2p/tree/main/packages/floodsub/main.yml?branch=main&label=ci&style=flat-square)](//github.com/libp2p/js-libp2p/tree/main/packages/floodsub/actions?query=branch%3Amain+workflow%3Aci+) | [![codecov](https://codecov.io/gh/libp2p/js-libp2p/tree/main/packages/floodsub/branch/main/graph/badge.svg?style=flat-square)](https://codecov.io/gh/libp2p/js-libp2p/tree/main/packages/floodsub) |

## Used by

Expand Down
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -76,8 +76,8 @@ Loading this module through a script tag will make its exports available as `Lib

Licensed under either of

- Apache 2.0, ([LICENSE-APACHE](https://github.com/libp2p/js-libp2p/blob/main/packages/pubsub-floodsub/LICENSE-APACHE) / <http://www.apache.org/licenses/LICENSE-2.0>)
- MIT ([LICENSE-MIT](https://github.com/libp2p/js-libp2p/blob/main/packages/pubsub-floodsub/LICENSE-MIT) / <http://opensource.org/licenses/MIT>)
- Apache 2.0, ([LICENSE-APACHE](https://github.com/libp2p/js-libp2p/blob/main/packages/floodsub/LICENSE-APACHE) / <http://www.apache.org/licenses/LICENSE-2.0>)
- MIT ([LICENSE-MIT](https://github.com/libp2p/js-libp2p/blob/main/packages/floodsub/LICENSE-MIT) / <http://opensource.org/licenses/MIT>)

# Contribution

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"version": "10.1.46",
"description": "libp2p-floodsub, also known as pubsub-flood or just dumbsub, this implementation of pubsub focused on delivering an API for Publish/Subscribe, but with no CastTree Forming (it just floods the network).",
"license": "Apache-2.0 OR MIT",
"homepage": "https://github.com/libp2p/js-libp2p/tree/main/packages/pubsub-floodsub#readme",
"homepage": "https://github.com/libp2p/js-libp2p/tree/main/packages/floodsub#readme",
"repository": {
"type": "git",
"url": "git+https://github.com/libp2p/js-libp2p.git"
Expand Down Expand Up @@ -53,22 +53,30 @@
"test:electron-main": "aegir test -t electron-main"
},
"dependencies": {
"@libp2p/crypto": "^5.1.8",
"@libp2p/interface": "^2.11.0",
"@libp2p/pubsub": "^10.1.18",
"@libp2p/interface-internal": "^2.3.19",
"@libp2p/peer-collections": "^6.0.35",
"@libp2p/peer-id": "^5.1.9",
"@libp2p/utils": "^6.7.2",
"it-length-prefixed": "^10.0.1",
"it-pipe": "^3.0.1",
"it-pushable": "^3.2.3",
"main-event": "^1.0.1",
"multiformats": "^13.4.1",
"p-event": "^7.0.0",
"p-queue": "^8.1.1",
"protons-runtime": "^5.6.0",
"uint8arraylist": "^2.4.8",
"uint8arrays": "^5.1.0"
},
"devDependencies": {
"@libp2p/crypto": "^5.1.8",
"@libp2p/interface-internal": "^2.3.19",
"@libp2p/logger": "^5.2.0",
"@libp2p/peer-collections": "^6.0.35",
"@libp2p/peer-id": "^5.1.9",
"@multiformats/multiaddr": "^13.0.1",
"@types/sinon": "^17.0.4",
"aegir": "^47.0.22",
"multiformats": "^13.4.0",
"delay": "^6.0.0",
"it-all": "^3.0.9",
"p-wait-for": "^5.0.2",
"protons": "^7.7.0",
"sinon": "^21.0.0",
Expand Down
5 changes: 5 additions & 0 deletions packages/floodsub/src/constants.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
/**
* All Pubsub implementations must use this symbol as the name of a property
* with a boolean `true` value
*/
export const pubSubSymbol = Symbol.for('@libp2p/pubsub')
Loading
Loading