Merge pull request #872 from status-im/pubsub-no-buffer

This commit is contained in:
fryorcraken.eth 2022-08-05 21:36:37 +10:00 committed by GitHub
commit f3ce58c176
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
5 changed files with 168 additions and 75 deletions

View File

@ -1,52 +1,37 @@
const modifyWebpackConfig = (webpackConfig) => {
if (!webpackConfig.resolve) webpackConfig.resolve = {};
if (!webpackConfig.resolve.fallback) webpackConfig.resolve.fallback = {};
// Can be removed once https://github.com/libp2p/js-libp2p-pubsub/pull/92 is merged and released
webpackConfig.resolve.fallback.buffer = false;
return webpackConfig;
};
module.exports = [ module.exports = [
{ {
name: "Waku core", name: "Waku core",
path: "dist/bundle.min.js", path: "dist/bundle.min.js",
import: "{ Waku }", import: "{ Waku }",
modifyWebpackConfig,
}, },
{ {
name: "Waku default setup", name: "Waku default setup",
path: "dist/bundle.min.js", path: "dist/bundle.min.js",
import: "{ createWaku, waitForRemotePeer }", import: "{ createWaku, waitForRemotePeer }",
modifyWebpackConfig,
}, },
{ {
name: "Asymmetric, symmetric encryption and signature", name: "Asymmetric, symmetric encryption and signature",
path: "dist/bundle.min.js", path: "dist/bundle.min.js",
import: "{ waku_message }", import: "{ waku_message }",
modifyWebpackConfig,
}, },
{ {
name: "DNS discovery", name: "DNS discovery",
path: "dist/bundle.min.js", path: "dist/bundle.min.js",
import: "{ discovery }", import: "{ discovery }",
modifyWebpackConfig,
}, },
{ {
name: "Privacy preserving protocols", name: "Privacy preserving protocols",
path: "dist/bundle.min.js", path: "dist/bundle.min.js",
import: "{ WakuRelay }", import: "{ WakuRelay }",
modifyWebpackConfig,
}, },
{ {
name: "Light protocols", name: "Light protocols",
path: "dist/bundle.min.js", path: "dist/bundle.min.js",
import: "{ WakuLightPush, WakuFilter }", import: "{ WakuLightPush, WakuFilter }",
modifyWebpackConfig,
}, },
{ {
name: "History retrieval protocols", name: "History retrieval protocols",
path: "dist/bundle.min.js", path: "dist/bundle.min.js",
import: "{ WakuStore }", import: "{ WakuStore }",
modifyWebpackConfig,
}, },
]; ];

View File

@ -18,7 +18,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
- Bump many libp2p libraries to their latest version (which usually are pure ESM). - Bump many libp2p libraries to their latest version (which usually are pure ESM).
- Replace webpack with parcel for bundling - Replace webpack with parcel for bundling
- Examples: Updated store-js and relay-js to demonstrate usage of ESM bundle in `<script>` tag. - Examples: Updated store-js and relay-js to demonstrate usage of ESM bundle in `<script>` tag.
- Remove need for buffer polyfilling, however it may still be needed to set `buffer: false` in your bundler. - Remove need to polyfill `buffer`.
- **breaking**: Various API changes. Refer to tests to check proper usage of the new API. - **breaking**: Various API changes. Refer to tests to check proper usage of the new API.
### Fix ### Fix

View File

@ -42,10 +42,6 @@ module.exports = function (config) {
], ],
resolve: { resolve: {
extensions: [".ts", ".js"], extensions: [".ts", ".js"],
fallback: {
// Can be removed once https://github.com/libp2p/js-libp2p-pubsub/pull/92 is merged and released
buffer: false,
},
}, },
stats: { warnings: false }, stats: { warnings: false },
}, },

221
package-lock.json generated
View File

@ -879,18 +879,17 @@
} }
}, },
"node_modules/@libp2p/crypto": { "node_modules/@libp2p/crypto": {
"version": "1.0.0", "version": "1.0.2",
"resolved": "https://registry.npmjs.org/@libp2p/crypto/-/crypto-1.0.0.tgz", "resolved": "https://registry.npmjs.org/@libp2p/crypto/-/crypto-1.0.2.tgz",
"integrity": "sha512-oV/KaHE8XaJQDH+iDq4Kn4GaVWRsEXJnLXTpN+8hz00tuxxsE3+4g0OYaFCauAYeX1IcGPwMvUhdgujnKzpAbg==", "integrity": "sha512-U+MqKXus1tuh7iCftMlGS82sp6SH+6+9gZg03WsPY/PbN/66V4QMOXUHPeIu+1OkS84U/hcAWXqeZjX0TXo2qw==",
"dependencies": { "dependencies": {
"@libp2p/interface-keys": "^1.0.2", "@libp2p/interface-keys": "^1.0.2",
"@noble/ed25519": "^1.6.0", "@noble/ed25519": "^1.6.0",
"@noble/secp256k1": "^1.5.4", "@noble/secp256k1": "^1.5.4",
"err-code": "^3.0.1", "err-code": "^3.0.1",
"iso-random-stream": "^2.0.0",
"multiformats": "^9.4.5", "multiformats": "^9.4.5",
"node-forge": "^1.1.0", "node-forge": "^1.1.0",
"protons-runtime": "^1.0.4", "protons-runtime": "^2.0.2",
"uint8arrays": "^3.0.0" "uint8arrays": "^3.0.0"
}, },
"engines": { "engines": {
@ -898,6 +897,34 @@
"npm": ">=7.0.0" "npm": ">=7.0.0"
} }
}, },
"node_modules/@libp2p/crypto/node_modules/protons-runtime": {
"version": "2.0.2",
"resolved": "https://registry.npmjs.org/protons-runtime/-/protons-runtime-2.0.2.tgz",
"integrity": "sha512-6aBGGn4scICr82Emc6+rS1qhxp9I5YUdfaR4lR10BJ6skyQxbh1vEHkrzGqQrawogwbChDrjLG8H6dI+PLh2tg==",
"dependencies": {
"byte-access": "^1.0.1",
"longbits": "^1.1.0",
"uint8-varint": "^1.0.2",
"uint8arraylist": "^2.0.0",
"uint8arrays": "^3.0.0"
},
"engines": {
"node": ">=16.0.0",
"npm": ">=7.0.0"
}
},
"node_modules/@libp2p/crypto/node_modules/uint8arraylist": {
"version": "2.3.1",
"resolved": "https://registry.npmjs.org/uint8arraylist/-/uint8arraylist-2.3.1.tgz",
"integrity": "sha512-H3wS++iW0HYs0NPP3MNH4G/eAooZxcOYG2bje0HsoedGTzXArAe54j4k6UXqxIm23ekWwtHmiXBWGetmX/oZNQ==",
"dependencies": {
"uint8arrays": "^3.1.0"
},
"engines": {
"node": ">=16.0.0",
"npm": ">=7.0.0"
}
},
"node_modules/@libp2p/interface-address-manager": { "node_modules/@libp2p/interface-address-manager": {
"version": "1.0.2", "version": "1.0.2",
"resolved": "https://registry.npmjs.org/@libp2p/interface-address-manager/-/interface-address-manager-1.0.2.tgz", "resolved": "https://registry.npmjs.org/@libp2p/interface-address-manager/-/interface-address-manager-1.0.2.tgz",
@ -1483,15 +1510,15 @@
} }
}, },
"node_modules/@libp2p/pubsub": { "node_modules/@libp2p/pubsub": {
"version": "3.0.3", "version": "3.1.0",
"resolved": "https://registry.npmjs.org/@libp2p/pubsub/-/pubsub-3.0.3.tgz", "resolved": "https://registry.npmjs.org/@libp2p/pubsub/-/pubsub-3.1.0.tgz",
"integrity": "sha512-DKIkvjjX7/I+no7SAyCiK4lSs/u2FdnSaksvxkD4TocUyKqlXcDO89rYQElSHGN5HaHa59DLaClyQdzuqoLLCg==", "integrity": "sha512-VljbX3Vd1GaFWLDvEvvhKNb2SiAjIQhLVGWFaZR7kxR1A9mVA5JGqHzQvuhLaJF/nW3CgtiWVG/VPzcqp7PTJg==",
"dependencies": { "dependencies": {
"@libp2p/components": "^2.0.0", "@libp2p/components": "^2.0.0",
"@libp2p/crypto": "^1.0.0", "@libp2p/crypto": "^1.0.0",
"@libp2p/interface-connection": "^2.0.0", "@libp2p/interface-connection": "^2.0.0",
"@libp2p/interface-peer-id": "^1.0.2", "@libp2p/interface-peer-id": "^1.0.2",
"@libp2p/interface-pubsub": "^1.0.3", "@libp2p/interface-pubsub": "^2.0.0",
"@libp2p/interface-registrar": "^2.0.0", "@libp2p/interface-registrar": "^2.0.0",
"@libp2p/interfaces": "^3.0.2", "@libp2p/interfaces": "^3.0.2",
"@libp2p/logger": "^2.0.0", "@libp2p/logger": "^2.0.0",
@ -1501,12 +1528,12 @@
"@multiformats/multiaddr": "^10.2.0", "@multiformats/multiaddr": "^10.2.0",
"abortable-iterator": "^4.0.2", "abortable-iterator": "^4.0.2",
"err-code": "^3.0.1", "err-code": "^3.0.1",
"iso-random-stream": "^2.0.0", "it-length-prefixed": "^8.0.2",
"it-length-prefixed": "^7.0.1",
"it-pipe": "^2.0.3", "it-pipe": "^2.0.3",
"it-pushable": "^3.0.0", "it-pushable": "^3.0.0",
"multiformats": "^9.6.3", "multiformats": "^9.6.3",
"p-queue": "^7.2.0", "p-queue": "^7.2.0",
"uint8arraylist": "^2.0.0",
"uint8arrays": "^3.0.0" "uint8arrays": "^3.0.0"
}, },
"engines": { "engines": {
@ -1514,6 +1541,22 @@
"npm": ">=7.0.0" "npm": ">=7.0.0"
} }
}, },
"node_modules/@libp2p/pubsub/node_modules/@libp2p/interface-pubsub": {
"version": "2.0.0",
"resolved": "https://registry.npmjs.org/@libp2p/interface-pubsub/-/interface-pubsub-2.0.0.tgz",
"integrity": "sha512-32Eo/GG3/sitqfOrNoIc+V8aTaNrVUk6zLb8++t1tr0p8opCQfXnbJwDe/TNxhwVkfHCEJxI8NuXMHZqGZWUgA==",
"dependencies": {
"@libp2p/interface-connection": "^2.0.0",
"@libp2p/interface-peer-id": "^1.0.0",
"@libp2p/interfaces": "^3.0.0",
"it-pushable": "^3.0.0",
"uint8arraylist": "^2.0.0"
},
"engines": {
"node": ">=16.0.0",
"npm": ">=7.0.0"
}
},
"node_modules/@libp2p/pubsub/node_modules/@libp2p/peer-collections": { "node_modules/@libp2p/pubsub/node_modules/@libp2p/peer-collections": {
"version": "2.0.0", "version": "2.0.0",
"resolved": "https://registry.npmjs.org/@libp2p/peer-collections/-/peer-collections-2.0.0.tgz", "resolved": "https://registry.npmjs.org/@libp2p/peer-collections/-/peer-collections-2.0.0.tgz",
@ -1527,11 +1570,39 @@
"npm": ">=7.0.0" "npm": ">=7.0.0"
} }
}, },
"node_modules/@libp2p/pubsub/node_modules/it-length-prefixed": {
"version": "8.0.2",
"resolved": "https://registry.npmjs.org/it-length-prefixed/-/it-length-prefixed-8.0.2.tgz",
"integrity": "sha512-qYCGZ6lTaI6lcuTXUrJmVpE6clq63ULrkq1FGTxHrzexjB2cCrS/CZ5HCRDZ5IRPw33tSDUDK91S7X5S64dPyQ==",
"dependencies": {
"err-code": "^3.0.1",
"it-stream-types": "^1.0.4",
"uint8-varint": "^1.0.1",
"uint8arraylist": "^2.0.0",
"uint8arrays": "^3.0.0"
},
"engines": {
"node": ">=16.0.0",
"npm": ">=7.0.0"
}
},
"node_modules/@libp2p/pubsub/node_modules/it-pushable": { "node_modules/@libp2p/pubsub/node_modules/it-pushable": {
"version": "3.0.0", "version": "3.0.0",
"resolved": "https://registry.npmjs.org/it-pushable/-/it-pushable-3.0.0.tgz", "resolved": "https://registry.npmjs.org/it-pushable/-/it-pushable-3.0.0.tgz",
"integrity": "sha512-Lpo9Q6wghDDoX8RyA2vIkpNckd5E0EY7RzIKwgiTPakrTmwDw7tKMx6DDJ1ZXrunYnHdKHnKSHYJL3Csya5U2w==" "integrity": "sha512-Lpo9Q6wghDDoX8RyA2vIkpNckd5E0EY7RzIKwgiTPakrTmwDw7tKMx6DDJ1ZXrunYnHdKHnKSHYJL3Csya5U2w=="
}, },
"node_modules/@libp2p/pubsub/node_modules/uint8arraylist": {
"version": "2.3.1",
"resolved": "https://registry.npmjs.org/uint8arraylist/-/uint8arraylist-2.3.1.tgz",
"integrity": "sha512-H3wS++iW0HYs0NPP3MNH4G/eAooZxcOYG2bje0HsoedGTzXArAe54j4k6UXqxIm23ekWwtHmiXBWGetmX/oZNQ==",
"dependencies": {
"uint8arrays": "^3.1.0"
},
"engines": {
"node": ">=16.0.0",
"npm": ">=7.0.0"
}
},
"node_modules/@libp2p/topology": { "node_modules/@libp2p/topology": {
"version": "3.0.0", "version": "3.0.0",
"resolved": "https://registry.npmjs.org/@libp2p/topology/-/topology-3.0.0.tgz", "resolved": "https://registry.npmjs.org/@libp2p/topology/-/topology-3.0.0.tgz",
@ -6274,7 +6345,8 @@
"node_modules/inherits": { "node_modules/inherits": {
"version": "2.0.4", "version": "2.0.4",
"resolved": "https://registry.npmjs.org/inherits/-/inherits-2.0.4.tgz", "resolved": "https://registry.npmjs.org/inherits/-/inherits-2.0.4.tgz",
"integrity": "sha512-k/vGaX4/Yla3WzyMCvTQOXYeIHvqOKtnqBduzTHpzpQZzAskKMhZ2K+EnBiSM9zGSoIFeMpXKxa4dYeZIQqewQ==" "integrity": "sha512-k/vGaX4/Yla3WzyMCvTQOXYeIHvqOKtnqBduzTHpzpQZzAskKMhZ2K+EnBiSM9zGSoIFeMpXKxa4dYeZIQqewQ==",
"dev": true
}, },
"node_modules/ini": { "node_modules/ini": {
"version": "1.3.8", "version": "1.3.8",
@ -6652,18 +6724,6 @@
"resolved": "https://registry.npmjs.org/isexe/-/isexe-2.0.0.tgz", "resolved": "https://registry.npmjs.org/isexe/-/isexe-2.0.0.tgz",
"integrity": "sha1-6PvzdNxVb/iUehDcsFctYz8s+hA=" "integrity": "sha1-6PvzdNxVb/iUehDcsFctYz8s+hA="
}, },
"node_modules/iso-random-stream": {
"version": "2.0.2",
"resolved": "https://registry.npmjs.org/iso-random-stream/-/iso-random-stream-2.0.2.tgz",
"integrity": "sha512-yJvs+Nnelic1L2vH2JzWvvPQFA4r7kSTnpST/+LkAQjSz0hos2oqLD+qIVi9Qk38Hoe7mNDt3j0S27R58MVjLQ==",
"dependencies": {
"events": "^3.3.0",
"readable-stream": "^3.4.0"
},
"engines": {
"node": ">=10"
}
},
"node_modules/iso-url": { "node_modules/iso-url": {
"version": "1.1.5", "version": "1.1.5",
"resolved": "https://registry.npmjs.org/iso-url/-/iso-url-1.1.5.tgz", "resolved": "https://registry.npmjs.org/iso-url/-/iso-url-1.1.5.tgz",
@ -9621,6 +9681,7 @@
"version": "3.6.0", "version": "3.6.0",
"resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-3.6.0.tgz", "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-3.6.0.tgz",
"integrity": "sha512-BViHy7LKeTz4oNnkcLJ+lVSL6vpiFeX6/d3oSH8zCW7UxP2onchk+vTGB143xuFjHS3deTgkKoXXymXqymiIdA==", "integrity": "sha512-BViHy7LKeTz4oNnkcLJ+lVSL6vpiFeX6/d3oSH8zCW7UxP2onchk+vTGB143xuFjHS3deTgkKoXXymXqymiIdA==",
"dev": true,
"dependencies": { "dependencies": {
"inherits": "^2.0.3", "inherits": "^2.0.3",
"string_decoder": "^1.1.1", "string_decoder": "^1.1.1",
@ -10212,6 +10273,7 @@
"version": "1.3.0", "version": "1.3.0",
"resolved": "https://registry.npmjs.org/string_decoder/-/string_decoder-1.3.0.tgz", "resolved": "https://registry.npmjs.org/string_decoder/-/string_decoder-1.3.0.tgz",
"integrity": "sha512-hkRX8U1WjJFd8LsDJ2yQ/wWWxaopEsABU1XfkM8A+j0+85JAGppt16cr1Whg6KIbb4okU6Mql6BOj+uup/wKeA==", "integrity": "sha512-hkRX8U1WjJFd8LsDJ2yQ/wWWxaopEsABU1XfkM8A+j0+85JAGppt16cr1Whg6KIbb4okU6Mql6BOj+uup/wKeA==",
"dev": true,
"dependencies": { "dependencies": {
"safe-buffer": "~5.2.0" "safe-buffer": "~5.2.0"
} }
@ -10220,6 +10282,7 @@
"version": "5.2.1", "version": "5.2.1",
"resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.2.1.tgz", "resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.2.1.tgz",
"integrity": "sha512-rp3So07KcdmmKbGvgaNxQSJr7bGVSVk5S9Eq1F+ppbRo70+YeaDxkw5Dd8NPN+GD6bjnYm2VuPuCXmpuYvmCXQ==", "integrity": "sha512-rp3So07KcdmmKbGvgaNxQSJr7bGVSVk5S9Eq1F+ppbRo70+YeaDxkw5Dd8NPN+GD6bjnYm2VuPuCXmpuYvmCXQ==",
"dev": true,
"funding": [ "funding": [
{ {
"type": "github", "type": "github",
@ -11019,9 +11082,9 @@
} }
}, },
"node_modules/uint8arrays": { "node_modules/uint8arrays": {
"version": "3.0.0", "version": "3.1.0",
"resolved": "https://registry.npmjs.org/uint8arrays/-/uint8arrays-3.0.0.tgz", "resolved": "https://registry.npmjs.org/uint8arrays/-/uint8arrays-3.1.0.tgz",
"integrity": "sha512-HRCx0q6O9Bfbp+HHSfQQKD7wU70+lydKVt4EghkdOvlK/NlrF90z+eXV34mUd48rNvVJXwkrMSPpCATkct8fJA==", "integrity": "sha512-ei5rfKtoRO8OyOIor2Rz5fhzjThwIHJZ3uyDPnDHTXbP0aMQ1RN/6AI5B5d9dBxJOU+BvOAk7ZQ1xphsX8Lrog==",
"dependencies": { "dependencies": {
"multiformats": "^9.4.2" "multiformats": "^9.4.2"
} }
@ -11151,7 +11214,8 @@
"node_modules/util-deprecate": { "node_modules/util-deprecate": {
"version": "1.0.2", "version": "1.0.2",
"resolved": "https://registry.npmjs.org/util-deprecate/-/util-deprecate-1.0.2.tgz", "resolved": "https://registry.npmjs.org/util-deprecate/-/util-deprecate-1.0.2.tgz",
"integrity": "sha1-RQ1Nyfpw3nMnYvvS1KKJgUGaDM8=" "integrity": "sha1-RQ1Nyfpw3nMnYvvS1KKJgUGaDM8=",
"dev": true
}, },
"node_modules/utils-merge": { "node_modules/utils-merge": {
"version": "1.0.1", "version": "1.0.1",
@ -12384,19 +12448,40 @@
} }
}, },
"@libp2p/crypto": { "@libp2p/crypto": {
"version": "1.0.0", "version": "1.0.2",
"resolved": "https://registry.npmjs.org/@libp2p/crypto/-/crypto-1.0.0.tgz", "resolved": "https://registry.npmjs.org/@libp2p/crypto/-/crypto-1.0.2.tgz",
"integrity": "sha512-oV/KaHE8XaJQDH+iDq4Kn4GaVWRsEXJnLXTpN+8hz00tuxxsE3+4g0OYaFCauAYeX1IcGPwMvUhdgujnKzpAbg==", "integrity": "sha512-U+MqKXus1tuh7iCftMlGS82sp6SH+6+9gZg03WsPY/PbN/66V4QMOXUHPeIu+1OkS84U/hcAWXqeZjX0TXo2qw==",
"requires": { "requires": {
"@libp2p/interface-keys": "^1.0.2", "@libp2p/interface-keys": "^1.0.2",
"@noble/ed25519": "^1.6.0", "@noble/ed25519": "^1.6.0",
"@noble/secp256k1": "^1.5.4", "@noble/secp256k1": "^1.5.4",
"err-code": "^3.0.1", "err-code": "^3.0.1",
"iso-random-stream": "^2.0.0",
"multiformats": "^9.4.5", "multiformats": "^9.4.5",
"node-forge": "^1.1.0", "node-forge": "^1.1.0",
"protons-runtime": "^1.0.4", "protons-runtime": "^2.0.2",
"uint8arrays": "^3.0.0" "uint8arrays": "^3.0.0"
},
"dependencies": {
"protons-runtime": {
"version": "2.0.2",
"resolved": "https://registry.npmjs.org/protons-runtime/-/protons-runtime-2.0.2.tgz",
"integrity": "sha512-6aBGGn4scICr82Emc6+rS1qhxp9I5YUdfaR4lR10BJ6skyQxbh1vEHkrzGqQrawogwbChDrjLG8H6dI+PLh2tg==",
"requires": {
"byte-access": "^1.0.1",
"longbits": "^1.1.0",
"uint8-varint": "^1.0.2",
"uint8arraylist": "^2.0.0",
"uint8arrays": "^3.0.0"
}
},
"uint8arraylist": {
"version": "2.3.1",
"resolved": "https://registry.npmjs.org/uint8arraylist/-/uint8arraylist-2.3.1.tgz",
"integrity": "sha512-H3wS++iW0HYs0NPP3MNH4G/eAooZxcOYG2bje0HsoedGTzXArAe54j4k6UXqxIm23ekWwtHmiXBWGetmX/oZNQ==",
"requires": {
"uint8arrays": "^3.1.0"
}
}
} }
}, },
"@libp2p/interface-address-manager": { "@libp2p/interface-address-manager": {
@ -12854,15 +12939,15 @@
} }
}, },
"@libp2p/pubsub": { "@libp2p/pubsub": {
"version": "3.0.3", "version": "3.1.0",
"resolved": "https://registry.npmjs.org/@libp2p/pubsub/-/pubsub-3.0.3.tgz", "resolved": "https://registry.npmjs.org/@libp2p/pubsub/-/pubsub-3.1.0.tgz",
"integrity": "sha512-DKIkvjjX7/I+no7SAyCiK4lSs/u2FdnSaksvxkD4TocUyKqlXcDO89rYQElSHGN5HaHa59DLaClyQdzuqoLLCg==", "integrity": "sha512-VljbX3Vd1GaFWLDvEvvhKNb2SiAjIQhLVGWFaZR7kxR1A9mVA5JGqHzQvuhLaJF/nW3CgtiWVG/VPzcqp7PTJg==",
"requires": { "requires": {
"@libp2p/components": "^2.0.0", "@libp2p/components": "^2.0.0",
"@libp2p/crypto": "^1.0.0", "@libp2p/crypto": "^1.0.0",
"@libp2p/interface-connection": "^2.0.0", "@libp2p/interface-connection": "^2.0.0",
"@libp2p/interface-peer-id": "^1.0.2", "@libp2p/interface-peer-id": "^1.0.2",
"@libp2p/interface-pubsub": "^1.0.3", "@libp2p/interface-pubsub": "^2.0.0",
"@libp2p/interface-registrar": "^2.0.0", "@libp2p/interface-registrar": "^2.0.0",
"@libp2p/interfaces": "^3.0.2", "@libp2p/interfaces": "^3.0.2",
"@libp2p/logger": "^2.0.0", "@libp2p/logger": "^2.0.0",
@ -12872,15 +12957,27 @@
"@multiformats/multiaddr": "^10.2.0", "@multiformats/multiaddr": "^10.2.0",
"abortable-iterator": "^4.0.2", "abortable-iterator": "^4.0.2",
"err-code": "^3.0.1", "err-code": "^3.0.1",
"iso-random-stream": "^2.0.0", "it-length-prefixed": "^8.0.2",
"it-length-prefixed": "^7.0.1",
"it-pipe": "^2.0.3", "it-pipe": "^2.0.3",
"it-pushable": "^3.0.0", "it-pushable": "^3.0.0",
"multiformats": "^9.6.3", "multiformats": "^9.6.3",
"p-queue": "^7.2.0", "p-queue": "^7.2.0",
"uint8arraylist": "^2.0.0",
"uint8arrays": "^3.0.0" "uint8arrays": "^3.0.0"
}, },
"dependencies": { "dependencies": {
"@libp2p/interface-pubsub": {
"version": "2.0.0",
"resolved": "https://registry.npmjs.org/@libp2p/interface-pubsub/-/interface-pubsub-2.0.0.tgz",
"integrity": "sha512-32Eo/GG3/sitqfOrNoIc+V8aTaNrVUk6zLb8++t1tr0p8opCQfXnbJwDe/TNxhwVkfHCEJxI8NuXMHZqGZWUgA==",
"requires": {
"@libp2p/interface-connection": "^2.0.0",
"@libp2p/interface-peer-id": "^1.0.0",
"@libp2p/interfaces": "^3.0.0",
"it-pushable": "^3.0.0",
"uint8arraylist": "^2.0.0"
}
},
"@libp2p/peer-collections": { "@libp2p/peer-collections": {
"version": "2.0.0", "version": "2.0.0",
"resolved": "https://registry.npmjs.org/@libp2p/peer-collections/-/peer-collections-2.0.0.tgz", "resolved": "https://registry.npmjs.org/@libp2p/peer-collections/-/peer-collections-2.0.0.tgz",
@ -12890,10 +12987,30 @@
"@libp2p/peer-id": "^1.1.0" "@libp2p/peer-id": "^1.1.0"
} }
}, },
"it-length-prefixed": {
"version": "8.0.2",
"resolved": "https://registry.npmjs.org/it-length-prefixed/-/it-length-prefixed-8.0.2.tgz",
"integrity": "sha512-qYCGZ6lTaI6lcuTXUrJmVpE6clq63ULrkq1FGTxHrzexjB2cCrS/CZ5HCRDZ5IRPw33tSDUDK91S7X5S64dPyQ==",
"requires": {
"err-code": "^3.0.1",
"it-stream-types": "^1.0.4",
"uint8-varint": "^1.0.1",
"uint8arraylist": "^2.0.0",
"uint8arrays": "^3.0.0"
}
},
"it-pushable": { "it-pushable": {
"version": "3.0.0", "version": "3.0.0",
"resolved": "https://registry.npmjs.org/it-pushable/-/it-pushable-3.0.0.tgz", "resolved": "https://registry.npmjs.org/it-pushable/-/it-pushable-3.0.0.tgz",
"integrity": "sha512-Lpo9Q6wghDDoX8RyA2vIkpNckd5E0EY7RzIKwgiTPakrTmwDw7tKMx6DDJ1ZXrunYnHdKHnKSHYJL3Csya5U2w==" "integrity": "sha512-Lpo9Q6wghDDoX8RyA2vIkpNckd5E0EY7RzIKwgiTPakrTmwDw7tKMx6DDJ1ZXrunYnHdKHnKSHYJL3Csya5U2w=="
},
"uint8arraylist": {
"version": "2.3.1",
"resolved": "https://registry.npmjs.org/uint8arraylist/-/uint8arraylist-2.3.1.tgz",
"integrity": "sha512-H3wS++iW0HYs0NPP3MNH4G/eAooZxcOYG2bje0HsoedGTzXArAe54j4k6UXqxIm23ekWwtHmiXBWGetmX/oZNQ==",
"requires": {
"uint8arrays": "^3.1.0"
}
} }
} }
}, },
@ -16504,7 +16621,8 @@
"inherits": { "inherits": {
"version": "2.0.4", "version": "2.0.4",
"resolved": "https://registry.npmjs.org/inherits/-/inherits-2.0.4.tgz", "resolved": "https://registry.npmjs.org/inherits/-/inherits-2.0.4.tgz",
"integrity": "sha512-k/vGaX4/Yla3WzyMCvTQOXYeIHvqOKtnqBduzTHpzpQZzAskKMhZ2K+EnBiSM9zGSoIFeMpXKxa4dYeZIQqewQ==" "integrity": "sha512-k/vGaX4/Yla3WzyMCvTQOXYeIHvqOKtnqBduzTHpzpQZzAskKMhZ2K+EnBiSM9zGSoIFeMpXKxa4dYeZIQqewQ==",
"dev": true
}, },
"ini": { "ini": {
"version": "1.3.8", "version": "1.3.8",
@ -16768,15 +16886,6 @@
"resolved": "https://registry.npmjs.org/isexe/-/isexe-2.0.0.tgz", "resolved": "https://registry.npmjs.org/isexe/-/isexe-2.0.0.tgz",
"integrity": "sha1-6PvzdNxVb/iUehDcsFctYz8s+hA=" "integrity": "sha1-6PvzdNxVb/iUehDcsFctYz8s+hA="
}, },
"iso-random-stream": {
"version": "2.0.2",
"resolved": "https://registry.npmjs.org/iso-random-stream/-/iso-random-stream-2.0.2.tgz",
"integrity": "sha512-yJvs+Nnelic1L2vH2JzWvvPQFA4r7kSTnpST/+LkAQjSz0hos2oqLD+qIVi9Qk38Hoe7mNDt3j0S27R58MVjLQ==",
"requires": {
"events": "^3.3.0",
"readable-stream": "^3.4.0"
}
},
"iso-url": { "iso-url": {
"version": "1.1.5", "version": "1.1.5",
"resolved": "https://registry.npmjs.org/iso-url/-/iso-url-1.1.5.tgz", "resolved": "https://registry.npmjs.org/iso-url/-/iso-url-1.1.5.tgz",
@ -19025,6 +19134,7 @@
"version": "3.6.0", "version": "3.6.0",
"resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-3.6.0.tgz", "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-3.6.0.tgz",
"integrity": "sha512-BViHy7LKeTz4oNnkcLJ+lVSL6vpiFeX6/d3oSH8zCW7UxP2onchk+vTGB143xuFjHS3deTgkKoXXymXqymiIdA==", "integrity": "sha512-BViHy7LKeTz4oNnkcLJ+lVSL6vpiFeX6/d3oSH8zCW7UxP2onchk+vTGB143xuFjHS3deTgkKoXXymXqymiIdA==",
"dev": true,
"requires": { "requires": {
"inherits": "^2.0.3", "inherits": "^2.0.3",
"string_decoder": "^1.1.1", "string_decoder": "^1.1.1",
@ -19478,6 +19588,7 @@
"version": "1.3.0", "version": "1.3.0",
"resolved": "https://registry.npmjs.org/string_decoder/-/string_decoder-1.3.0.tgz", "resolved": "https://registry.npmjs.org/string_decoder/-/string_decoder-1.3.0.tgz",
"integrity": "sha512-hkRX8U1WjJFd8LsDJ2yQ/wWWxaopEsABU1XfkM8A+j0+85JAGppt16cr1Whg6KIbb4okU6Mql6BOj+uup/wKeA==", "integrity": "sha512-hkRX8U1WjJFd8LsDJ2yQ/wWWxaopEsABU1XfkM8A+j0+85JAGppt16cr1Whg6KIbb4okU6Mql6BOj+uup/wKeA==",
"dev": true,
"requires": { "requires": {
"safe-buffer": "~5.2.0" "safe-buffer": "~5.2.0"
}, },
@ -19485,7 +19596,8 @@
"safe-buffer": { "safe-buffer": {
"version": "5.2.1", "version": "5.2.1",
"resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.2.1.tgz", "resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.2.1.tgz",
"integrity": "sha512-rp3So07KcdmmKbGvgaNxQSJr7bGVSVk5S9Eq1F+ppbRo70+YeaDxkw5Dd8NPN+GD6bjnYm2VuPuCXmpuYvmCXQ==" "integrity": "sha512-rp3So07KcdmmKbGvgaNxQSJr7bGVSVk5S9Eq1F+ppbRo70+YeaDxkw5Dd8NPN+GD6bjnYm2VuPuCXmpuYvmCXQ==",
"dev": true
} }
} }
}, },
@ -20046,9 +20158,9 @@
} }
}, },
"uint8arrays": { "uint8arrays": {
"version": "3.0.0", "version": "3.1.0",
"resolved": "https://registry.npmjs.org/uint8arrays/-/uint8arrays-3.0.0.tgz", "resolved": "https://registry.npmjs.org/uint8arrays/-/uint8arrays-3.1.0.tgz",
"integrity": "sha512-HRCx0q6O9Bfbp+HHSfQQKD7wU70+lydKVt4EghkdOvlK/NlrF90z+eXV34mUd48rNvVJXwkrMSPpCATkct8fJA==", "integrity": "sha512-ei5rfKtoRO8OyOIor2Rz5fhzjThwIHJZ3uyDPnDHTXbP0aMQ1RN/6AI5B5d9dBxJOU+BvOAk7ZQ1xphsX8Lrog==",
"requires": { "requires": {
"multiformats": "^9.4.2" "multiformats": "^9.4.2"
} }
@ -20151,7 +20263,8 @@
"util-deprecate": { "util-deprecate": {
"version": "1.0.2", "version": "1.0.2",
"resolved": "https://registry.npmjs.org/util-deprecate/-/util-deprecate-1.0.2.tgz", "resolved": "https://registry.npmjs.org/util-deprecate/-/util-deprecate-1.0.2.tgz",
"integrity": "sha1-RQ1Nyfpw3nMnYvvS1KKJgUGaDM8=" "integrity": "sha1-RQ1Nyfpw3nMnYvvS1KKJgUGaDM8=",
"dev": true
}, },
"utils-merge": { "utils-merge": {
"version": "1.0.1", "version": "1.0.1",

View File

@ -57,7 +57,6 @@
"reset-hard": "git clean -dfx && git reset --hard && npm i && npm run build && for d in examples/*/; do (cd $d; npm i); done" "reset-hard": "git clean -dfx && git reset --hard && npm i && npm run build && for d in examples/*/; do (cd $d; npm i); done"
}, },
"browser": { "browser": {
"buffer": false,
"crypto": false "crypto": false
}, },
"engines": { "engines": {