Skip to content

Commit 6977a41

Browse files
committed
feat: add validate function
Shifts validation to `validate` function which gives the user more control over when expensive validation operations take place. For example we currently run multiple regex passes over IP addresses when creating new multiaddrs which can cause CPU bottlenecks.
1 parent 21dce2a commit 6977a41

17 files changed

+1243
-948
lines changed

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -171,6 +171,7 @@
171171
"@chainsafe/is-ip": "^2.0.1",
172172
"@chainsafe/netmask": "^2.0.0",
173173
"@multiformats/dns": "^1.0.3",
174+
"abort-error": "^1.0.1",
174175
"multiformats": "^13.0.0",
175176
"uint8-varint": "^2.0.1",
176177
"uint8arrays": "^5.0.0"

src/codec.ts

Lines changed: 0 additions & 236 deletions
This file was deleted.

0 commit comments

Comments
 (0)