@libp2p/floodsub 7.0.2 → 8.0.0-8f855a3c

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.
@@ -1,8 +1,8 @@
1
1
  import { PubSubBaseProtocol, type PubSubComponents } from '@libp2p/pubsub';
2
2
  import { SimpleTimeCache } from './cache.js';
3
3
  import { multicodec } from './config.js';
4
- import type { PeerId } from '@libp2p/interface-peer-id';
5
- import type { PubSubInit, Message, PubSubRPC, PubSubRPCMessage, PublishResult, PubSub } from '@libp2p/interface-pubsub';
4
+ import type { PeerId } from '@libp2p/interface/peer-id';
5
+ import type { PubSubInit, Message, PubSubRPC, PubSubRPCMessage, PublishResult, PubSub } from '@libp2p/interface/pubsub';
6
6
  import type { Uint8ArrayList } from 'uint8arraylist';
7
7
  export { multicodec };
8
8
  export interface FloodSubInit extends PubSubInit {
package/package.json CHANGED
@@ -1,15 +1,15 @@
1
1
  {
2
2
  "name": "@libp2p/floodsub",
3
- "version": "7.0.2",
3
+ "version": "8.0.0-8f855a3c",
4
4
  "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).",
5
5
  "license": "Apache-2.0 OR MIT",
6
- "homepage": "https://github.com/libp2p/js-libp2p-floodsub#readme",
6
+ "homepage": "https://github.com/libp2p/js-libp2p/tree/master/packages/pubsub-floodsub#readme",
7
7
  "repository": {
8
8
  "type": "git",
9
- "url": "git+https://github.com/libp2p/js-libp2p-floodsub.git"
9
+ "url": "git+https://github.com/libp2p/js-libp2p.git"
10
10
  },
11
11
  "bugs": {
12
- "url": "https://github.com/libp2p/js-libp2p-floodsub/issues"
12
+ "url": "https://github.com/libp2p/js-libp2p/issues"
13
13
  },
14
14
  "keywords": [
15
15
  "IPFS",
@@ -19,10 +19,6 @@
19
19
  "libp2p",
20
20
  "pubsub"
21
21
  ],
22
- "engines": {
23
- "node": ">=16.0.0",
24
- "npm": ">=7.0.0"
25
- },
26
22
  "type": "module",
27
23
  "types": "./dist/src/index.d.ts",
28
24
  "files": [
@@ -41,95 +37,7 @@
41
37
  "extends": "ipfs",
42
38
  "parserOptions": {
43
39
  "sourceType": "module"
44
- },
45
- "ignorePatterns": [
46
- "*.d.ts"
47
- ]
48
- },
49
- "release": {
50
- "branches": [
51
- "master"
52
- ],
53
- "plugins": [
54
- [
55
- "@semantic-release/commit-analyzer",
56
- {
57
- "preset": "conventionalcommits",
58
- "releaseRules": [
59
- {
60
- "breaking": true,
61
- "release": "major"
62
- },
63
- {
64
- "revert": true,
65
- "release": "patch"
66
- },
67
- {
68
- "type": "feat",
69
- "release": "minor"
70
- },
71
- {
72
- "type": "fix",
73
- "release": "patch"
74
- },
75
- {
76
- "type": "docs",
77
- "release": "patch"
78
- },
79
- {
80
- "type": "test",
81
- "release": "patch"
82
- },
83
- {
84
- "type": "deps",
85
- "release": "patch"
86
- },
87
- {
88
- "scope": "no-release",
89
- "release": false
90
- }
91
- ]
92
- }
93
- ],
94
- [
95
- "@semantic-release/release-notes-generator",
96
- {
97
- "preset": "conventionalcommits",
98
- "presetConfig": {
99
- "types": [
100
- {
101
- "type": "feat",
102
- "section": "Features"
103
- },
104
- {
105
- "type": "fix",
106
- "section": "Bug Fixes"
107
- },
108
- {
109
- "type": "chore",
110
- "section": "Trivial Changes"
111
- },
112
- {
113
- "type": "docs",
114
- "section": "Documentation"
115
- },
116
- {
117
- "type": "deps",
118
- "section": "Dependencies"
119
- },
120
- {
121
- "type": "test",
122
- "section": "Tests"
123
- }
124
- ]
125
- }
126
- }
127
- ],
128
- "@semantic-release/changelog",
129
- "@semantic-release/npm",
130
- "@semantic-release/github",
131
- "@semantic-release/git"
132
- ]
40
+ }
133
41
  },
134
42
  "scripts": {
135
43
  "clean": "aegir clean",
@@ -143,29 +51,26 @@
143
51
  "test:firefox": "aegir test -t browser -- --browser firefox",
144
52
  "test:firefox-webworker": "aegir test -t webworker -- --browser firefox",
145
53
  "test:node": "aegir test -t node --cov",
146
- "test:electron-main": "aegir test -t electron-main",
147
- "release": "aegir release"
54
+ "test:electron-main": "aegir test -t electron-main"
148
55
  },
149
56
  "dependencies": {
150
- "@libp2p/interface-peer-id": "^2.0.0",
151
- "@libp2p/interface-pubsub": "^4.0.0",
152
- "@libp2p/logger": "^2.0.0",
153
- "@libp2p/pubsub": "^7.0.0",
57
+ "@libp2p/interface": "0.1.0-8f855a3c",
58
+ "@libp2p/logger": "3.0.0-8f855a3c",
59
+ "@libp2p/pubsub": "8.0.0-8f855a3c",
154
60
  "protons-runtime": "^5.0.0",
155
- "uint8arraylist": "^2.1.1",
156
- "uint8arrays": "^4.0.3"
61
+ "uint8arraylist": "^2.4.3",
62
+ "uint8arrays": "^4.0.4"
157
63
  },
158
64
  "devDependencies": {
159
- "@libp2p/interface-mocks": "^12.0.1",
160
- "@libp2p/interface-pubsub-compliance-tests": "^5.0.9",
161
- "@libp2p/peer-collections": "^3.0.0",
162
- "@libp2p/peer-id-factory": "^2.0.0",
163
- "@multiformats/multiaddr": "^12.0.0",
65
+ "@libp2p/interface-compliance-tests": "4.0.0-8f855a3c",
66
+ "@libp2p/peer-collections": "4.0.0-8f855a3c",
67
+ "@libp2p/peer-id-factory": "3.0.0-8f855a3c",
68
+ "@multiformats/multiaddr": "^12.1.3",
164
69
  "@types/sinon": "^10.0.15",
165
- "aegir": "^39.0.10",
166
- "multiformats": "^11.0.0",
167
- "p-wait-for": "^5.0.0",
70
+ "aegir": "^40.0.1",
71
+ "multiformats": "^12.0.1",
72
+ "p-wait-for": "^5.0.2",
168
73
  "protons": "^7.0.2",
169
- "sinon": "^15.0.1"
74
+ "sinon": "^15.1.2"
170
75
  }
171
76
  }
package/src/index.ts CHANGED
@@ -4,8 +4,8 @@ import { toString } from 'uint8arrays/to-string'
4
4
  import { SimpleTimeCache } from './cache.js'
5
5
  import { multicodec } from './config.js'
6
6
  import { RPC } from './message/rpc.js'
7
- import type { PeerId } from '@libp2p/interface-peer-id'
8
- import type { PubSubInit, Message, PubSubRPC, PubSubRPCMessage, PublishResult, PubSub } from '@libp2p/interface-pubsub'
7
+ import type { PeerId } from '@libp2p/interface/peer-id'
8
+ import type { PubSubInit, Message, PubSubRPC, PubSubRPCMessage, PublishResult, PubSub } from '@libp2p/interface/pubsub'
9
9
  import type { Uint8ArrayList } from 'uint8arraylist'
10
10
 
11
11
  const log = logger('libp2p:floodsub')