mirror of
https://github.com/logos-messaging/logos-messaging-js.git
synced 2026-03-21 14:23:10 +00:00
move all discoveries to @waku/discovery
This commit is contained in:
parent
199f6ab2ff
commit
d5d86b2a7f
109
package-lock.json
generated
109
package-lock.json
generated
@ -13,9 +13,7 @@
|
||||
"packages/enr",
|
||||
"packages/core",
|
||||
"packages/relay",
|
||||
"packages/peer-exchange",
|
||||
"packages/dns-discovery",
|
||||
"packages/local-discovery",
|
||||
"packages/discovery",
|
||||
"packages/message-encryption",
|
||||
"packages/sdk",
|
||||
"packages/tests",
|
||||
@ -2883,14 +2881,6 @@
|
||||
"resolved": "https://registry.npmjs.org/multiformats/-/multiformats-13.0.1.tgz",
|
||||
"integrity": "sha512-bt3R5iXe2O8xpp3wkmQhC73b/lC4S2ihU8Dndwcsysqbydqb8N+bpP116qMcClZ17g58iSIwtXUTcg2zT4sniA=="
|
||||
},
|
||||
"node_modules/@libp2p/interfaces": {
|
||||
"version": "3.3.2",
|
||||
"license": "Apache-2.0 OR MIT",
|
||||
"engines": {
|
||||
"node": ">=16.0.0",
|
||||
"npm": ">=7.0.0"
|
||||
}
|
||||
},
|
||||
"node_modules/@libp2p/logger": {
|
||||
"version": "4.0.5",
|
||||
"resolved": "https://registry.npmjs.org/@libp2p/logger/-/logger-4.0.5.tgz",
|
||||
@ -5467,8 +5457,8 @@
|
||||
"node": ">= 10.0.0"
|
||||
}
|
||||
},
|
||||
"node_modules/@waku/dns-discovery": {
|
||||
"resolved": "packages/dns-discovery",
|
||||
"node_modules/@waku/discovery": {
|
||||
"resolved": "packages/discovery",
|
||||
"link": true
|
||||
},
|
||||
"node_modules/@waku/enr": {
|
||||
@ -5491,10 +5481,6 @@
|
||||
"resolved": "packages/message-hash",
|
||||
"link": true
|
||||
},
|
||||
"node_modules/@waku/peer-exchange": {
|
||||
"resolved": "packages/peer-exchange",
|
||||
"link": true
|
||||
},
|
||||
"node_modules/@waku/proto": {
|
||||
"resolved": "packages/proto",
|
||||
"link": true
|
||||
@ -27834,9 +27820,47 @@
|
||||
}
|
||||
}
|
||||
},
|
||||
"packages/discovery": {
|
||||
"name": "@waku/discovery",
|
||||
"version": "0.0.1",
|
||||
"license": "MIT OR Apache-2.0",
|
||||
"dependencies": {
|
||||
"@waku/enr": "0.0.20",
|
||||
"@waku/interfaces": "^0.0.21",
|
||||
"@waku/proto": "^0.0.6",
|
||||
"@waku/utils": "0.0.14",
|
||||
"debug": "^4.3.4",
|
||||
"dns-query": "^0.11.2",
|
||||
"hi-base32": "^0.5.1",
|
||||
"uint8arrays": "^5.0.1"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@libp2p/peer-id": "^4.0.4",
|
||||
"@libp2p/peer-id-factory": "^4.0.5",
|
||||
"@multiformats/multiaddr": "^12.0.0",
|
||||
"@rollup/plugin-commonjs": "^25.0.7",
|
||||
"@rollup/plugin-json": "^6.0.0",
|
||||
"@rollup/plugin-node-resolve": "^15.2.3",
|
||||
"@types/chai": "^4.3.11",
|
||||
"@types/node-localstorage": "^1.3.3",
|
||||
"@waku/build-utils": "*",
|
||||
"chai": "^4.3.10",
|
||||
"chai-as-promised": "^7.1.1",
|
||||
"cspell": "^8.3.2",
|
||||
"mocha": "^10.3.0",
|
||||
"node-localstorage": "^3.0.5",
|
||||
"npm-run-all": "^4.1.5",
|
||||
"rollup": "^4.9.5",
|
||||
"sinon": "^17.0.1"
|
||||
},
|
||||
"engines": {
|
||||
"node": ">=18"
|
||||
}
|
||||
},
|
||||
"packages/dns-discovery": {
|
||||
"name": "@waku/dns-discovery",
|
||||
"version": "0.0.20",
|
||||
"extraneous": true,
|
||||
"license": "MIT OR Apache-2.0",
|
||||
"dependencies": {
|
||||
"@waku/enr": "0.0.20",
|
||||
@ -28463,6 +28487,7 @@
|
||||
"packages/peer-exchange": {
|
||||
"name": "@waku/peer-exchange",
|
||||
"version": "0.0.19",
|
||||
"extraneous": true,
|
||||
"license": "MIT OR Apache-2.0",
|
||||
"dependencies": {
|
||||
"@libp2p/interfaces": "^3.3.2",
|
||||
@ -28550,10 +28575,9 @@
|
||||
"@libp2p/ping": "^1.0.11",
|
||||
"@libp2p/websockets": "^8.0.11",
|
||||
"@waku/core": "0.0.26",
|
||||
"@waku/dns-discovery": "0.0.20",
|
||||
"@waku/discovery": "*",
|
||||
"@waku/interfaces": "0.0.21",
|
||||
"@waku/local-discovery": "^0.0.1",
|
||||
"@waku/peer-exchange": "^0.0.19",
|
||||
"@waku/relay": "0.0.9",
|
||||
"@waku/utils": "0.0.14",
|
||||
"libp2p": "^1.1.2"
|
||||
@ -28602,9 +28626,8 @@
|
||||
"@types/mocha": "^10.0.6",
|
||||
"@types/sinon": "^17.0.3",
|
||||
"@types/tail": "^2.2.3",
|
||||
"@waku/dns-discovery": "*",
|
||||
"@waku/discovery": "*",
|
||||
"@waku/message-encryption": "*",
|
||||
"@waku/peer-exchange": "*",
|
||||
"@waku/sdk": "*",
|
||||
"allure-commandline": "^2.24.1",
|
||||
"allure-mocha": "^2.9.2",
|
||||
@ -30646,9 +30669,6 @@
|
||||
"uint8arraylist": "^2.4.8"
|
||||
}
|
||||
},
|
||||
"@libp2p/interfaces": {
|
||||
"version": "3.3.2"
|
||||
},
|
||||
"@libp2p/logger": {
|
||||
"version": "4.0.5",
|
||||
"resolved": "https://registry.npmjs.org/@libp2p/logger/-/logger-4.0.5.tgz",
|
||||
@ -32518,8 +32538,8 @@
|
||||
}
|
||||
}
|
||||
},
|
||||
"@waku/dns-discovery": {
|
||||
"version": "file:packages/dns-discovery",
|
||||
"@waku/discovery": {
|
||||
"version": "file:packages/discovery",
|
||||
"requires": {
|
||||
"@libp2p/peer-id": "^4.0.4",
|
||||
"@libp2p/peer-id-factory": "^4.0.5",
|
||||
@ -32528,18 +32548,23 @@
|
||||
"@rollup/plugin-json": "^6.0.0",
|
||||
"@rollup/plugin-node-resolve": "^15.2.3",
|
||||
"@types/chai": "^4.3.11",
|
||||
"@types/node-localstorage": "^1.3.3",
|
||||
"@waku/build-utils": "*",
|
||||
"@waku/enr": "0.0.20",
|
||||
"@waku/interfaces": "0.0.21",
|
||||
"@waku/interfaces": "^0.0.21",
|
||||
"@waku/proto": "^0.0.6",
|
||||
"@waku/utils": "0.0.14",
|
||||
"chai": "^4.3.10",
|
||||
"chai-as-promised": "^7.1.1",
|
||||
"cspell": "^8.3.2",
|
||||
"debug": "^4.3.4",
|
||||
"dns-query": "^0.11.2",
|
||||
"hi-base32": "^0.5.1",
|
||||
"mocha": "^10.3.0",
|
||||
"node-localstorage": "^3.0.5",
|
||||
"npm-run-all": "^4.1.5",
|
||||
"rollup": "^4.9.5",
|
||||
"sinon": "^17.0.1",
|
||||
"uint8arrays": "^5.0.1"
|
||||
}
|
||||
},
|
||||
@ -32980,30 +33005,6 @@
|
||||
"rollup": "^4.9.5"
|
||||
}
|
||||
},
|
||||
"@waku/peer-exchange": {
|
||||
"version": "file:packages/peer-exchange",
|
||||
"requires": {
|
||||
"@libp2p/interfaces": "^3.3.2",
|
||||
"@rollup/plugin-commonjs": "^25.0.7",
|
||||
"@rollup/plugin-json": "^6.0.0",
|
||||
"@rollup/plugin-node-resolve": "^15.2.3",
|
||||
"@waku/build-utils": "*",
|
||||
"@waku/core": "0.0.26",
|
||||
"@waku/enr": "0.0.20",
|
||||
"@waku/interfaces": "0.0.21",
|
||||
"@waku/proto": "0.0.6",
|
||||
"@waku/utils": "0.0.14",
|
||||
"chai": "^4.3.10",
|
||||
"cspell": "^8.3.2",
|
||||
"debug": "^4.3.4",
|
||||
"it-all": "^3.0.4",
|
||||
"it-length-prefixed": "^9.0.4",
|
||||
"it-pipe": "^3.0.1",
|
||||
"npm-run-all": "^4.1.5",
|
||||
"rollup": "^4.9.5",
|
||||
"uint8arraylist": "^2.4.3"
|
||||
}
|
||||
},
|
||||
"@waku/proto": {
|
||||
"version": "file:packages/proto",
|
||||
"requires": {
|
||||
@ -33052,10 +33053,9 @@
|
||||
"@rollup/plugin-node-resolve": "^15.2.3",
|
||||
"@waku/build-utils": "*",
|
||||
"@waku/core": "0.0.26",
|
||||
"@waku/dns-discovery": "0.0.20",
|
||||
"@waku/discovery": "*",
|
||||
"@waku/interfaces": "0.0.21",
|
||||
"@waku/local-discovery": "^0.0.1",
|
||||
"@waku/peer-exchange": "^0.0.19",
|
||||
"@waku/relay": "0.0.9",
|
||||
"@waku/utils": "0.0.14",
|
||||
"cspell": "^8.3.2",
|
||||
@ -33077,11 +33077,10 @@
|
||||
"@types/sinon": "^17.0.3",
|
||||
"@types/tail": "^2.2.3",
|
||||
"@waku/core": "*",
|
||||
"@waku/dns-discovery": "*",
|
||||
"@waku/discovery": "*",
|
||||
"@waku/enr": "*",
|
||||
"@waku/interfaces": "*",
|
||||
"@waku/message-encryption": "*",
|
||||
"@waku/peer-exchange": "*",
|
||||
"@waku/sdk": "*",
|
||||
"@waku/utils": "*",
|
||||
"allure-commandline": "^2.24.1",
|
||||
|
||||
@ -10,9 +10,7 @@
|
||||
"packages/enr",
|
||||
"packages/core",
|
||||
"packages/relay",
|
||||
"packages/peer-exchange",
|
||||
"packages/dns-discovery",
|
||||
"packages/local-discovery",
|
||||
"packages/discovery",
|
||||
"packages/message-encryption",
|
||||
"packages/sdk",
|
||||
"packages/tests",
|
||||
|
||||
1
packages/discovery/mock_local_storage/waku%3Apeers
Normal file
1
packages/discovery/mock_local_storage/waku%3Apeers
Normal file
@ -0,0 +1 @@
|
||||
[]
|
||||
@ -1,7 +1,7 @@
|
||||
{
|
||||
"name": "@waku/dns-discovery",
|
||||
"version": "0.0.20",
|
||||
"description": "DNS Peer Discovery (EIP-1459)",
|
||||
"name": "@waku/discovery",
|
||||
"version": "0.0.1",
|
||||
"description": "Peer Discoveries for Waku. This package provides DNS Peer Discovery (EIP-1459), Peer Exchange Discovery (https://rfc.vac.dev/spec/34/) and Local Discovery.",
|
||||
"types": "./dist/index.d.ts",
|
||||
"module": "./dist/index.js",
|
||||
"exports": {
|
||||
@ -52,6 +52,8 @@
|
||||
},
|
||||
"dependencies": {
|
||||
"@waku/enr": "0.0.20",
|
||||
"@waku/interfaces": "^0.0.21",
|
||||
"@waku/proto": "^0.0.6",
|
||||
"@waku/utils": "0.0.14",
|
||||
"debug": "^4.3.4",
|
||||
"dns-query": "^0.11.2",
|
||||
@ -66,13 +68,16 @@
|
||||
"@rollup/plugin-json": "^6.0.0",
|
||||
"@rollup/plugin-node-resolve": "^15.2.3",
|
||||
"@types/chai": "^4.3.11",
|
||||
"@types/node-localstorage": "^1.3.3",
|
||||
"@waku/build-utils": "*",
|
||||
"@waku/interfaces": "0.0.21",
|
||||
"chai": "^4.3.10",
|
||||
"chai-as-promised": "^7.1.1",
|
||||
"cspell": "^8.3.2",
|
||||
"mocha": "^10.3.0",
|
||||
"node-localstorage": "^3.0.5",
|
||||
"npm-run-all": "^4.1.5",
|
||||
"rollup": "^4.9.5"
|
||||
"rollup": "^4.9.5",
|
||||
"sinon": "^17.0.1"
|
||||
},
|
||||
"files": [
|
||||
"dist",
|
||||
3
packages/discovery/src/index.ts
Normal file
3
packages/discovery/src/index.ts
Normal file
@ -0,0 +1,3 @@
|
||||
export * from "./dns/index.js";
|
||||
export * from "./local/index.js";
|
||||
export * from "./peer-exchange/index.js";
|
||||
@ -1,6 +0,0 @@
|
||||
module.exports = {
|
||||
parserOptions: {
|
||||
tsconfigRootDir: __dirname,
|
||||
project: "./tsconfig.dev.json"
|
||||
}
|
||||
};
|
||||
@ -1,6 +0,0 @@
|
||||
{
|
||||
"reporterEnabled": "spec, allure-mocha",
|
||||
"allureMochaReporter": {
|
||||
"outputDir": "allure-results"
|
||||
}
|
||||
}
|
||||
@ -1,26 +0,0 @@
|
||||
const config = {
|
||||
extension: ['ts'],
|
||||
spec: 'src/**/*.spec.ts',
|
||||
require: ['ts-node/register', 'isomorphic-fetch'],
|
||||
loader: 'ts-node/esm',
|
||||
'node-option': [
|
||||
'experimental-specifier-resolution=node',
|
||||
'loader=ts-node/esm'
|
||||
],
|
||||
exit: true
|
||||
};
|
||||
|
||||
if (process.env.CI) {
|
||||
console.log("Running tests in parallel");
|
||||
config.parallel = true;
|
||||
config.jobs = 6;
|
||||
console.log("Activating allure reporting");
|
||||
config.reporter = 'mocha-multi-reporters';
|
||||
config.reporterOptions = {
|
||||
configFile: '.mocha.reporters.json'
|
||||
};
|
||||
} else {
|
||||
console.log("Running tests serially. To enable parallel execution update mocha config");
|
||||
}
|
||||
|
||||
module.exports = config;
|
||||
@ -1,3 +0,0 @@
|
||||
const config = require("../../karma.conf.cjs");
|
||||
|
||||
module.exports = config;
|
||||
@ -1,83 +0,0 @@
|
||||
{
|
||||
"name": "@waku/local-discovery",
|
||||
"version": "0.0.1",
|
||||
"description": "Local Discovery keeps records of healthy peers in the browser's local storage for quicker bootstrapping.",
|
||||
"types": "./dist/index.d.ts",
|
||||
"module": "./dist/index.js",
|
||||
"exports": {
|
||||
".": {
|
||||
"types": "./dist/index.d.ts",
|
||||
"import": "./dist/index.js"
|
||||
}
|
||||
},
|
||||
"type": "module",
|
||||
"author": "Waku Team",
|
||||
"homepage": "https://github.com/waku-org/js-waku/tree/master/packages/local-discovery#readme",
|
||||
"repository": {
|
||||
"type": "git",
|
||||
"url": "https://github.com/waku-org/js-waku.git"
|
||||
},
|
||||
"bugs": {
|
||||
"url": "https://github.com/waku-org/js-waku/issues"
|
||||
},
|
||||
"license": "MIT OR Apache-2.0",
|
||||
"keywords": [
|
||||
"waku",
|
||||
"decentralized",
|
||||
"secure",
|
||||
"communication",
|
||||
"web3",
|
||||
"ethereum",
|
||||
"dapps",
|
||||
"privacy"
|
||||
],
|
||||
"scripts": {
|
||||
"build": "run-s build:**",
|
||||
"build:esm": "tsc",
|
||||
"build:bundle": "rollup --config rollup.config.js",
|
||||
"fix": "run-s fix:*",
|
||||
"fix:lint": "eslint src *.js --fix",
|
||||
"check": "run-s check:*",
|
||||
"check:lint": "eslint src --ext .ts",
|
||||
"check:spelling": "cspell \"{README.md,src/**/*.ts}\"",
|
||||
"check:tsc": "tsc -p tsconfig.dev.json",
|
||||
"prepublish": "npm run build",
|
||||
"reset-hard": "git clean -dfx -e .idea && git reset --hard && npm i && npm run build",
|
||||
"test": "NODE_ENV=test run-s test:*",
|
||||
"test:node": "NODE_ENV=test TS_NODE_PROJECT=./tsconfig.dev.json mocha"
|
||||
},
|
||||
"engines": {
|
||||
"node": ">=18"
|
||||
},
|
||||
"dependencies": {
|
||||
"@libp2p/interface": "^1.1.2",
|
||||
"@waku/interfaces": "^0.0.21",
|
||||
"@waku/utils": "^0.0.14"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@rollup/plugin-commonjs": "^25.0.7",
|
||||
"@rollup/plugin-json": "^6.0.0",
|
||||
"@rollup/plugin-node-resolve": "^15.2.3",
|
||||
"@types/chai": "^4.3.11",
|
||||
"@types/node-localstorage": "^1.3.3",
|
||||
"@waku/build-utils": "*",
|
||||
"chai": "^4.3.10",
|
||||
"chai-as-promised": "^7.1.1",
|
||||
"cspell": "^7.3.2",
|
||||
"mocha": "^10.2.0",
|
||||
"node-localstorage": "^3.0.5",
|
||||
"npm-run-all": "^4.1.5",
|
||||
"rollup": "^4.9.5",
|
||||
"sinon": "^17.0.1"
|
||||
},
|
||||
"files": [
|
||||
"dist",
|
||||
"bundle",
|
||||
"src/**/*.ts",
|
||||
"!**/*.spec.*",
|
||||
"!**/*.json",
|
||||
"CHANGELOG.md",
|
||||
"LICENSE",
|
||||
"README.md"
|
||||
]
|
||||
}
|
||||
@ -1,24 +0,0 @@
|
||||
import commonjs from "@rollup/plugin-commonjs";
|
||||
import json from "@rollup/plugin-json";
|
||||
import { nodeResolve } from "@rollup/plugin-node-resolve";
|
||||
import { extractExports } from "@waku/build-utils";
|
||||
|
||||
import * as packageJson from "./package.json" assert { type: "json" };
|
||||
|
||||
const input = extractExports(packageJson);
|
||||
|
||||
export default {
|
||||
input,
|
||||
output: {
|
||||
dir: "bundle",
|
||||
format: "esm"
|
||||
},
|
||||
plugins: [
|
||||
commonjs(),
|
||||
json(),
|
||||
nodeResolve({
|
||||
browser: true,
|
||||
preferBuiltins: false
|
||||
})
|
||||
]
|
||||
};
|
||||
@ -1,3 +0,0 @@
|
||||
{
|
||||
"extends": "../../tsconfig.dev"
|
||||
}
|
||||
@ -1,10 +0,0 @@
|
||||
{
|
||||
"extends": "../../tsconfig",
|
||||
"compilerOptions": {
|
||||
"outDir": "dist/",
|
||||
"rootDir": "src",
|
||||
"tsBuildInfoFile": "dist/.tsbuildinfo"
|
||||
},
|
||||
"include": ["src"],
|
||||
"exclude": ["src/**/*.spec.ts", "src/test_utils"]
|
||||
}
|
||||
@ -1,4 +0,0 @@
|
||||
{
|
||||
"extends": ["../../typedoc.base.json"],
|
||||
"entryPoints": ["src/index.ts"]
|
||||
}
|
||||
@ -1,6 +0,0 @@
|
||||
module.exports = {
|
||||
parserOptions: {
|
||||
tsconfigRootDir: __dirname,
|
||||
project: "./tsconfig.dev.json"
|
||||
}
|
||||
};
|
||||
@ -1,263 +0,0 @@
|
||||
# Changelog
|
||||
|
||||
### Dependencies
|
||||
|
||||
* The following workspace dependencies were updated
|
||||
* dependencies
|
||||
* @waku/core bumped from 0.0.12 to 0.0.13
|
||||
* @waku/enr bumped from 0.0.7 to 0.0.8
|
||||
* @waku/proto bumped from 0.0.3 to 0.0.4
|
||||
* @waku/utils bumped from * to 0.0.3
|
||||
* devDependencies
|
||||
* @waku/interfaces bumped from 0.0.9 to 0.0.10
|
||||
|
||||
### Dependencies
|
||||
|
||||
* The following workspace dependencies were updated
|
||||
* dependencies
|
||||
* @waku/enr bumped from 0.0.8 to 0.0.9
|
||||
|
||||
### Dependencies
|
||||
|
||||
* The following workspace dependencies were updated
|
||||
* dependencies
|
||||
* @waku/core bumped from 0.0.14 to 0.0.15
|
||||
|
||||
### Dependencies
|
||||
|
||||
* The following workspace dependencies were updated
|
||||
* dependencies
|
||||
* @waku/core bumped from 0.0.15 to 0.0.16
|
||||
* @waku/enr bumped from 0.0.9 to 0.0.10
|
||||
* @waku/utils bumped from 0.0.3 to 0.0.4
|
||||
* devDependencies
|
||||
* @waku/interfaces bumped from 0.0.10 to 0.0.11
|
||||
|
||||
### Dependencies
|
||||
|
||||
* The following workspace dependencies were updated
|
||||
* dependencies
|
||||
* @waku/core bumped from 0.0.16 to 0.0.17
|
||||
* @waku/enr bumped from 0.0.10 to 0.0.11
|
||||
* @waku/utils bumped from 0.0.4 to 0.0.5
|
||||
* devDependencies
|
||||
* @waku/interfaces bumped from 0.0.11 to 0.0.12
|
||||
|
||||
### Dependencies
|
||||
|
||||
* The following workspace dependencies were updated
|
||||
* dependencies
|
||||
* @waku/core bumped from 0.0.18 to 0.0.19
|
||||
* @waku/enr bumped from 0.0.12 to 0.0.13
|
||||
* @waku/proto bumped from * to 0.0.5
|
||||
* @waku/utils bumped from 0.0.6 to 0.0.7
|
||||
* devDependencies
|
||||
* @waku/interfaces bumped from 0.0.13 to 0.0.14
|
||||
|
||||
### Dependencies
|
||||
|
||||
* The following workspace dependencies were updated
|
||||
* dependencies
|
||||
* @waku/core bumped from 0.0.19 to 0.0.20
|
||||
* @waku/enr bumped from 0.0.13 to 0.0.14
|
||||
* @waku/utils bumped from 0.0.7 to 0.0.8
|
||||
* devDependencies
|
||||
* @waku/interfaces bumped from 0.0.14 to 0.0.15
|
||||
|
||||
### Dependencies
|
||||
|
||||
* The following workspace dependencies were updated
|
||||
* dependencies
|
||||
* @waku/core bumped from 0.0.25 to 0.0.26
|
||||
* @waku/enr bumped from 0.0.19 to 0.0.20
|
||||
* @waku/interfaces bumped from 0.0.20 to 0.0.21
|
||||
* @waku/proto bumped from 0.0.5 to 0.0.6
|
||||
* @waku/utils bumped from 0.0.13 to 0.0.14
|
||||
|
||||
## [0.0.18](https://github.com/waku-org/js-waku/compare/peer-exchange-v0.0.17...peer-exchange-v0.0.18) (2023-11-01)
|
||||
|
||||
|
||||
### Features
|
||||
|
||||
* Logger with log levels ([#1672](https://github.com/waku-org/js-waku/issues/1672)) ([0f7d63e](https://github.com/waku-org/js-waku/commit/0f7d63ef93716223dc8fea7e8cb09e12e267b386))
|
||||
|
||||
|
||||
### Dependencies
|
||||
|
||||
* The following workspace dependencies were updated
|
||||
* dependencies
|
||||
* @waku/core bumped from 0.0.24 to 0.0.25
|
||||
* @waku/enr bumped from 0.0.18 to 0.0.19
|
||||
* @waku/interfaces bumped from 0.0.19 to 0.0.20
|
||||
* @waku/utils bumped from 0.0.12 to 0.0.13
|
||||
|
||||
## [0.0.17](https://github.com/waku-org/js-waku/compare/peer-exchange-v0.0.16...peer-exchange-v0.0.17) (2023-10-16)
|
||||
|
||||
|
||||
### Features
|
||||
|
||||
* **static-sharding:** Filter peer connections per shards ([#1626](https://github.com/waku-org/js-waku/issues/1626)) ([124a29e](https://github.com/waku-org/js-waku/commit/124a29ebba59c05fbbf199d969e6ba3f9e57d45b))
|
||||
|
||||
|
||||
### Dependencies
|
||||
|
||||
* The following workspace dependencies were updated
|
||||
* dependencies
|
||||
* @waku/core bumped from 0.0.23 to 0.0.24
|
||||
* @waku/enr bumped from 0.0.17 to 0.0.18
|
||||
* @waku/interfaces bumped from 0.0.18 to 0.0.19
|
||||
* @waku/utils bumped from 0.0.11 to 0.0.12
|
||||
|
||||
## [0.0.16](https://github.com/waku-org/js-waku/compare/peer-exchange-v0.0.15...peer-exchange-v0.0.16) (2023-09-11)
|
||||
|
||||
|
||||
### ⚠ BREAKING CHANGES
|
||||
|
||||
* set peer-exchange with default bootstrap ([#1469](https://github.com/waku-org/js-waku/issues/1469))
|
||||
|
||||
### Features
|
||||
|
||||
* Pre-emptive stream creation for protocols ([#1516](https://github.com/waku-org/js-waku/issues/1516)) ([b4f8216](https://github.com/waku-org/js-waku/commit/b4f821676120aa06f4772eed62fb105d5afae7c6))
|
||||
* Set peer-exchange with default bootstrap ([#1469](https://github.com/waku-org/js-waku/issues/1469)) ([81a52a8](https://github.com/waku-org/js-waku/commit/81a52a8097ba948783c9d798ba362af0f27e1c10))
|
||||
|
||||
|
||||
### Dependencies
|
||||
|
||||
* The following workspace dependencies were updated
|
||||
* dependencies
|
||||
* @waku/core bumped from 0.0.22 to 0.0.23
|
||||
* @waku/enr bumped from 0.0.16 to 0.0.17
|
||||
* @waku/interfaces bumped from 0.0.17 to 0.0.18
|
||||
* @waku/utils bumped from 0.0.10 to 0.0.11
|
||||
|
||||
## [0.0.15](https://github.com/waku-org/js-waku/compare/peer-exchange-v0.0.14...peer-exchange-v0.0.15) (2023-08-02)
|
||||
|
||||
|
||||
### Bug Fixes
|
||||
|
||||
* Improve connection manager error handling + edge cases ([#1450](https://github.com/waku-org/js-waku/issues/1450)) ([785df52](https://github.com/waku-org/js-waku/commit/785df528fe6e5010a61391994e222028dbc4e4c5))
|
||||
|
||||
|
||||
### Dependencies
|
||||
|
||||
* The following workspace dependencies were updated
|
||||
* dependencies
|
||||
* @waku/core bumped from 0.0.21 to 0.0.22
|
||||
* @waku/enr bumped from 0.0.15 to 0.0.16
|
||||
* @waku/utils bumped from 0.0.9 to 0.0.10
|
||||
* @waku/interfaces bumped from 0.0.16 to 0.0.17
|
||||
|
||||
## [0.0.14](https://github.com/waku-org/js-waku/compare/peer-exchange-v0.0.13...peer-exchange-v0.0.14) (2023-07-26)
|
||||
|
||||
|
||||
### ⚠ BREAKING CHANGES
|
||||
|
||||
* upgrade to libp2p@0.45 ([#1400](https://github.com/waku-org/js-waku/issues/1400))
|
||||
|
||||
### Features
|
||||
|
||||
* Enable event emission for peer discovery/connection in ConnectionManager ([#1438](https://github.com/waku-org/js-waku/issues/1438)) ([6ce898d](https://github.com/waku-org/js-waku/commit/6ce898d77132f30b5d8f33b48c7f6276992a486e))
|
||||
* Upgrade to libp2p@0.45 ([#1400](https://github.com/waku-org/js-waku/issues/1400)) ([420e6c6](https://github.com/waku-org/js-waku/commit/420e6c698dd8f44d40d34e47d876da5d2e1ce85e))
|
||||
|
||||
|
||||
### Dependencies
|
||||
|
||||
* The following workspace dependencies were updated
|
||||
* dependencies
|
||||
* @waku/core bumped from 0.0.20 to 0.0.21
|
||||
* @waku/enr bumped from 0.0.14 to 0.0.15
|
||||
* @waku/utils bumped from 0.0.8 to 0.0.9
|
||||
* @waku/interfaces bumped from 0.0.15 to 0.0.16
|
||||
|
||||
## [0.0.11](https://github.com/waku-org/js-waku/compare/peer-exchange-v0.0.10...peer-exchange-v0.0.11) (2023-05-18)
|
||||
|
||||
|
||||
### ⚠ BREAKING CHANGES
|
||||
|
||||
* @waku/relay ([#1316](https://github.com/waku-org/js-waku/issues/1316))
|
||||
|
||||
### Features
|
||||
|
||||
* @waku/relay ([#1316](https://github.com/waku-org/js-waku/issues/1316)) ([50c2c25](https://github.com/waku-org/js-waku/commit/50c2c2540f3c5ff78d93f3fea646da0eee246e17))
|
||||
|
||||
|
||||
### Dependencies
|
||||
|
||||
* The following workspace dependencies were updated
|
||||
* dependencies
|
||||
* @waku/core bumped from * to 0.0.18
|
||||
* @waku/enr bumped from * to 0.0.12
|
||||
* @waku/utils bumped from * to 0.0.6
|
||||
* devDependencies
|
||||
* @waku/interfaces bumped from * to 0.0.13
|
||||
|
||||
## [0.0.5](https://github.com/waku-org/js-waku/compare/peer-exchange-v0.0.4...peer-exchange-v0.0.5) (2023-03-23)
|
||||
|
||||
|
||||
### Features
|
||||
|
||||
* Compliance test for peer-exchange discovery ([#1186](https://github.com/waku-org/js-waku/issues/1186)) ([5b0c3c3](https://github.com/waku-org/js-waku/commit/5b0c3c3cac3ddb5687d8f59457d6056527a8666c))
|
||||
|
||||
|
||||
### Bug Fixes
|
||||
|
||||
* @waku/peer-exchange uses @waku/core and should depend on it ([e922ed4](https://github.com/waku-org/js-waku/commit/e922ed49ec70553227751518251152c765efd07c))
|
||||
|
||||
|
||||
### Dependencies
|
||||
|
||||
* The following workspace dependencies were updated
|
||||
* dependencies
|
||||
* @waku/core bumped from * to 0.0.12
|
||||
* @waku/enr bumped from 0.0.6 to 0.0.7
|
||||
* devDependencies
|
||||
* @waku/interfaces bumped from 0.0.8 to 0.0.9
|
||||
|
||||
## [0.0.4](https://github.com/waku-org/js-waku/compare/peer-exchange-v0.0.3...peer-exchange-v0.0.4) (2023-03-16)
|
||||
|
||||
|
||||
### ⚠ BREAKING CHANGES
|
||||
|
||||
* directly convert from ENR to `PeerInfo`, remove unneeded utility
|
||||
* extract decoder code
|
||||
* bump typescript
|
||||
* bump all prod dependencies
|
||||
* bump libp2p dependencies
|
||||
|
||||
### Features
|
||||
|
||||
* Codec as a property of the protocol implementations ([a5ff788](https://github.com/waku-org/js-waku/commit/a5ff788eed419556e11319f22ca9e3109c81df92))
|
||||
* DNS discovery as default bootstrap discovery ([#1114](https://github.com/waku-org/js-waku/issues/1114)) ([11819fc](https://github.com/waku-org/js-waku/commit/11819fc7b14e18385d421facaf2af0832cad1da8))
|
||||
|
||||
|
||||
### Bug Fixes
|
||||
|
||||
* **dns-discovery/peer-exchange:** Check if peer is already tagged ([952aadd](https://github.com/waku-org/js-waku/commit/952aadd7bbbe1a7265c5126c1678f552bef0648d))
|
||||
* Prettier and cspell ignore CHANGELOG ([#1235](https://github.com/waku-org/js-waku/issues/1235)) ([4d7b3e3](https://github.com/waku-org/js-waku/commit/4d7b3e39e6761afaf5d05a13cc4b3c23e15f9bd5))
|
||||
* Remove initialising peer-exchange while creating a node ([#1158](https://github.com/waku-org/js-waku/issues/1158)) ([1b41569](https://github.com/waku-org/js-waku/commit/1b4156902387ea35b24b3d6f5d22e4635ea8cf18))
|
||||
|
||||
|
||||
### Miscellaneous Chores
|
||||
|
||||
* Bump all prod dependencies ([88cc76d](https://github.com/waku-org/js-waku/commit/88cc76d2b811e1fa4460207f38704ecfe18fb260))
|
||||
* Bump libp2p dependencies ([803ae7b](https://github.com/waku-org/js-waku/commit/803ae7bd8ed3de665026446c23cde90e7eba9d36))
|
||||
* Bump typescript ([12d86e6](https://github.com/waku-org/js-waku/commit/12d86e6abcc68e27c39ca86b4f0dc2b68cdd6000))
|
||||
* Directly convert from ENR to `PeerInfo`, remove unneeded utility ([6dbcde0](https://github.com/waku-org/js-waku/commit/6dbcde041ab8fa8c2df75cc25319a0eccf6b0454))
|
||||
* Extract decoder code ([130c49b](https://github.com/waku-org/js-waku/commit/130c49b636807063364f309da0da2a24a68f2178))
|
||||
|
||||
|
||||
### Dependencies
|
||||
|
||||
* The following workspace dependencies were updated
|
||||
* dependencies
|
||||
* @waku/enr bumped from * to 0.0.6
|
||||
* @waku/proto bumped from * to 0.0.3
|
||||
* devDependencies
|
||||
* @waku/interfaces bumped from * to 0.0.8
|
||||
|
||||
## Changelog
|
||||
|
||||
All notable changes to this project will be documented in this file.
|
||||
|
||||
The file is maintained by [Release Please](https://github.com/googleapis/release-please) based on [Conventional Commits](https://www.conventionalcommits.org) specification,
|
||||
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
||||
@ -1,83 +0,0 @@
|
||||
{
|
||||
"name": "@waku/peer-exchange",
|
||||
"version": "0.0.19",
|
||||
"description": "Peer Exchange (https://rfc.vac.dev/spec/34/) protocol for Waku",
|
||||
"types": "./dist/index.d.ts",
|
||||
"module": "./dist/index.js",
|
||||
"exports": {
|
||||
".": {
|
||||
"types": "./dist/index.d.ts",
|
||||
"import": "./dist/index.js"
|
||||
}
|
||||
},
|
||||
"type": "module",
|
||||
"author": "Waku Team",
|
||||
"homepage": "https://github.com/waku-org/js-waku/tree/master/packages/peer-exchange#readme",
|
||||
"repository": {
|
||||
"type": "git",
|
||||
"url": "https://github.com/waku-org/js-waku.git"
|
||||
},
|
||||
"bugs": {
|
||||
"url": "https://github.com/waku-org/js-waku/issues"
|
||||
},
|
||||
"license": "MIT OR Apache-2.0",
|
||||
"keywords": [
|
||||
"waku",
|
||||
"decentralized",
|
||||
"secure",
|
||||
"communication",
|
||||
"web3",
|
||||
"ethereum",
|
||||
"dapps",
|
||||
"privacy"
|
||||
],
|
||||
"scripts": {
|
||||
"build": "run-s build:**",
|
||||
"build:esm": "tsc",
|
||||
"build:bundle": "rollup --config rollup.config.js",
|
||||
"fix": "run-s fix:*",
|
||||
"fix:lint": "eslint src *.js --fix",
|
||||
"check": "run-s check:*",
|
||||
"check:lint": "eslint src *.js",
|
||||
"check:spelling": "cspell \"{README.md,src/**/*.ts}\"",
|
||||
"check:tsc": "tsc -p tsconfig.dev.json",
|
||||
"prepublish": "npm run build",
|
||||
"reset-hard": "git clean -dfx -e .idea && git reset --hard && npm i && npm run build"
|
||||
},
|
||||
"engines": {
|
||||
"node": ">=18"
|
||||
},
|
||||
"dependencies": {
|
||||
"@libp2p/interfaces": "^3.3.2",
|
||||
"@waku/core": "0.0.26",
|
||||
"@waku/enr": "0.0.20",
|
||||
"@waku/interfaces": "0.0.21",
|
||||
"@waku/proto": "0.0.6",
|
||||
"@waku/utils": "0.0.14",
|
||||
"debug": "^4.3.4",
|
||||
"it-all": "^3.0.4",
|
||||
"it-length-prefixed": "^9.0.4",
|
||||
"it-pipe": "^3.0.1"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@rollup/plugin-commonjs": "^25.0.7",
|
||||
"@rollup/plugin-json": "^6.0.0",
|
||||
"@rollup/plugin-node-resolve": "^15.2.3",
|
||||
"@waku/build-utils": "*",
|
||||
"chai": "^4.3.10",
|
||||
"cspell": "^8.3.2",
|
||||
"npm-run-all": "^4.1.5",
|
||||
"rollup": "^4.9.5",
|
||||
"uint8arraylist": "^2.4.3"
|
||||
},
|
||||
"files": [
|
||||
"dist",
|
||||
"bundle",
|
||||
"src/**/*.ts",
|
||||
"!**/*.spec.*",
|
||||
"!**/*.json",
|
||||
"CHANGELOG.md",
|
||||
"LICENSE",
|
||||
"README.md"
|
||||
]
|
||||
}
|
||||
@ -1,24 +0,0 @@
|
||||
import commonjs from "@rollup/plugin-commonjs";
|
||||
import json from "@rollup/plugin-json";
|
||||
import { nodeResolve } from "@rollup/plugin-node-resolve";
|
||||
import { extractExports } from "@waku/build-utils";
|
||||
|
||||
import * as packageJson from "./package.json" assert { type: "json" };
|
||||
|
||||
const input = extractExports(packageJson);
|
||||
|
||||
export default {
|
||||
input,
|
||||
output: {
|
||||
dir: "bundle",
|
||||
format: "esm"
|
||||
},
|
||||
plugins: [
|
||||
commonjs(),
|
||||
json(),
|
||||
nodeResolve({
|
||||
browser: true,
|
||||
preferBuiltins: false
|
||||
})
|
||||
]
|
||||
};
|
||||
@ -1,3 +0,0 @@
|
||||
{
|
||||
"extends": "../../tsconfig.dev"
|
||||
}
|
||||
@ -1,10 +0,0 @@
|
||||
{
|
||||
"extends": "../../tsconfig",
|
||||
"compilerOptions": {
|
||||
"outDir": "dist/",
|
||||
"rootDir": "src",
|
||||
"tsBuildInfoFile": "dist/.tsbuildinfo"
|
||||
},
|
||||
"include": ["src"],
|
||||
"exclude": ["src/**/*.spec.ts", "src/test_utils"]
|
||||
}
|
||||
@ -1,4 +0,0 @@
|
||||
{
|
||||
"extends": ["../../typedoc.base.json"],
|
||||
"entryPoints": ["src/index.ts"]
|
||||
}
|
||||
@ -67,10 +67,9 @@
|
||||
"@libp2p/ping": "^1.0.11",
|
||||
"@libp2p/websockets": "^8.0.11",
|
||||
"@waku/core": "0.0.26",
|
||||
"@waku/dns-discovery": "0.0.20",
|
||||
"@waku/interfaces": "0.0.21",
|
||||
"@waku/local-discovery": "^0.0.1",
|
||||
"@waku/peer-exchange": "^0.0.19",
|
||||
"@waku/discovery": "*",
|
||||
"@waku/relay": "0.0.9",
|
||||
"@waku/utils": "0.0.14",
|
||||
"libp2p": "^1.1.2"
|
||||
|
||||
@ -15,7 +15,12 @@ import {
|
||||
WakuOptions,
|
||||
wakuStore
|
||||
} from "@waku/core";
|
||||
import { enrTree, wakuDnsDiscovery } from "@waku/dns-discovery";
|
||||
import {
|
||||
enrTree,
|
||||
wakuDnsDiscovery,
|
||||
wakuLocalStorageDiscovery,
|
||||
wakuPeerExchangeDiscovery
|
||||
} from "@waku/discovery";
|
||||
import {
|
||||
type CreateLibp2pOptions,
|
||||
DefaultPubsubTopic,
|
||||
@ -28,8 +33,6 @@ import {
|
||||
PubsubTopic,
|
||||
type ShardInfo
|
||||
} from "@waku/interfaces";
|
||||
import { wakuLocalStorageDiscovery } from "@waku/local-discovery";
|
||||
import { wakuPeerExchangeDiscovery } from "@waku/peer-exchange";
|
||||
import { RelayCreateOptions, wakuGossipSub, wakuRelay } from "@waku/relay";
|
||||
import { ensureShardingConfigured } from "@waku/utils";
|
||||
import { createLibp2p } from "libp2p";
|
||||
|
||||
@ -74,9 +74,8 @@
|
||||
"@types/mocha": "^10.0.6",
|
||||
"@types/sinon": "^17.0.3",
|
||||
"@types/tail": "^2.2.3",
|
||||
"@waku/dns-discovery": "*",
|
||||
"@waku/message-encryption": "*",
|
||||
"@waku/peer-exchange": "*",
|
||||
"@waku/discovery": "*",
|
||||
"@waku/sdk": "*",
|
||||
"allure-commandline": "^2.24.1",
|
||||
"allure-mocha": "^2.9.2",
|
||||
|
||||
@ -8,7 +8,7 @@ import {
|
||||
enrTree,
|
||||
PeerDiscoveryDns,
|
||||
wakuDnsDiscovery
|
||||
} from "@waku/dns-discovery";
|
||||
} from "@waku/discovery";
|
||||
import { Libp2pComponents } from "@waku/interfaces";
|
||||
import { createLightNode } from "@waku/sdk";
|
||||
import { expect } from "chai";
|
||||
|
||||
@ -1,12 +1,12 @@
|
||||
import type { PeerId } from "@libp2p/interface";
|
||||
import tests from "@libp2p/interface-compliance-tests/peer-discovery";
|
||||
import type { Multiaddr } from "@multiformats/multiaddr";
|
||||
import type { LightNode, PeerInfo } from "@waku/interfaces";
|
||||
import {
|
||||
PeerExchangeCodec,
|
||||
PeerExchangeDiscovery,
|
||||
WakuPeerExchange
|
||||
} from "@waku/peer-exchange";
|
||||
} from "@waku/discovery";
|
||||
import type { LightNode, PeerInfo } from "@waku/interfaces";
|
||||
import {
|
||||
createLightNode,
|
||||
DEFAULT_CLUSTER_ID,
|
||||
|
||||
@ -3,8 +3,8 @@ import {
|
||||
Fleet,
|
||||
getPredefinedBootstrapNodes
|
||||
} from "@waku/core/lib/predefined_bootstrap_nodes";
|
||||
import { wakuPeerExchangeDiscovery } from "@waku/discovery";
|
||||
import type { LightNode } from "@waku/interfaces";
|
||||
import { wakuPeerExchangeDiscovery } from "@waku/peer-exchange";
|
||||
import { createLightNode, DefaultPubsubTopic } from "@waku/sdk";
|
||||
import { expect } from "chai";
|
||||
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
import { bootstrap } from "@libp2p/bootstrap";
|
||||
import type { PeerId } from "@libp2p/interface";
|
||||
import { wakuPeerExchangeDiscovery } from "@waku/peer-exchange";
|
||||
import { wakuPeerExchangeDiscovery } from "@waku/discovery";
|
||||
import {
|
||||
ContentTopicInfo,
|
||||
createLightNode,
|
||||
|
||||
@ -1,5 +1,5 @@
|
||||
import { bootstrap } from "@libp2p/bootstrap";
|
||||
import { enrTree, wakuDnsDiscovery } from "@waku/dns-discovery";
|
||||
import { enrTree, wakuDnsDiscovery } from "@waku/discovery";
|
||||
import { LightNode } from "@waku/interfaces";
|
||||
import { createLightNode } from "@waku/sdk";
|
||||
import { expect } from "chai";
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user