Skip to content

Commit 11d9261

Browse files
authored
feat!: convert to typescript (#525)
Converts this module to typescript. It already had types so there should be minimal disruption but releasing this as a major just in case. BREAKING CHANGE: this module is now typescript
1 parent 5f200a6 commit 11d9261

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

62 files changed

+1821
-3666
lines changed

package.json

Lines changed: 8 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -160,15 +160,15 @@
160160
"test:firefox-webworker": "aegir test -t webworker -- --browser firefox",
161161
"test:electron-main": "aegir test -t electron-main",
162162
"dep-check": "aegir dep-check",
163-
"generate": "run-s generate:*",
164-
"generate:proto": "pbjs -t static-module -w es6 -r ipfs-bitswap --force-number --no-verify --no-delimited --no-create --no-beautify --no-defaults --lint eslint-disable -o src/message/message.js src/message/message.proto",
165-
"generate:proto-types": "pbts -o src/message/message.d.ts src/message/message.js",
163+
"generate": "protons ./src/message/message.proto",
166164
"docs": "aegir docs"
167165
},
168166
"dependencies": {
169167
"@libp2p/interface-connection": "^3.0.1",
168+
"@libp2p/interface-libp2p": "^1.1.1",
170169
"@libp2p/interface-peer-id": "^2.0.0",
171-
"@libp2p/interface-peer-store": "^1.2.0",
170+
"@libp2p/interface-peer-info": "^1.0.8",
171+
"@libp2p/interface-registrar": "^2.0.8",
172172
"@libp2p/interfaces": "^3.2.0",
173173
"@libp2p/logger": "^2.0.5",
174174
"@libp2p/topology": "^4.0.0",
@@ -183,9 +183,9 @@
183183
"it-pipe": "^2.0.4",
184184
"just-debounce-it": "^3.0.1",
185185
"multiformats": "^11.0.0",
186-
"protobufjs": "^7.0.0",
187-
"readable-stream": "^4.0.0",
186+
"protons-runtime": "^5.0.0",
188187
"timeout-abort-controller": "^3.0.0",
188+
"uint8arraylist": "^2.4.3",
189189
"uint8arrays": "^4.0.2",
190190
"varint": "^6.0.0",
191191
"varint-decoder": "^1.0.0"
@@ -201,10 +201,8 @@
201201
"@types/stats-lite": "^2.2.0",
202202
"@types/varint": "^6.0.0",
203203
"aegir": "^38.1.0",
204-
"assert": "^2.0.0",
205204
"benchmark": "^2.1.4",
206205
"delay": "^5.0.0",
207-
"interface-datastore": "^7.0.0",
208206
"iso-random-stream": "^2.0.0",
209207
"it-all": "^2.0.0",
210208
"it-drain": "^2.0.0",
@@ -213,20 +211,15 @@
213211
"lodash.flatten": "^4.4.0",
214212
"lodash.range": "^3.2.0",
215213
"lodash.without": "^4.4.0",
216-
"npm-run-all": "^4.1.5",
217214
"p-defer": "^4.0.0",
218215
"p-event": "^5.0.1",
219216
"p-wait-for": "^5.0.0",
220-
"process": "^0.11.10",
221-
"promisify-es6": "^1.0.3",
222-
"protobufjs-cli": "^1.0.0",
217+
"protons": "^7.0.2",
223218
"sinon": "^15.0.1",
224219
"stats-lite": "^2.2.0",
225-
"url": "^0.11.0",
226-
"util": "^0.12.3",
227220
"uuid": "^9.0.0"
228221
},
229222
"browser": {
230-
"test/utils/create-libp2p-node.js": false
223+
"dist/test/utils/create-libp2p-node.js": false
231224
}
232225
}

0 commit comments

Comments
 (0)