Skip to content

Commit 199f6ab

Browse files
feat: local discovery (#1811)
* initialise the new package * feat: implement LocalStorageDiscovery * add: Startable to cspell * add compliance test * add: discovery tests * rm: browser tests script * address comments * add type safety to getting peers from local * only dispatch peer if it does not exist * move ws ma extraction to utils * chore: update package name to local-discovery * fix: add compliance test with no external deps on service node * use peer:identify instead of peer:update * add: unit tests & remove sdk dependency * move tests to self package * update cspell + remove unrequired deps * add types * maintain in-memory peers for localstorage * address comments * chore: rename * use name from options * fix: saving peers * rm: only
1 parent aabd907 commit 199f6ab

23 files changed

+1477
-11
lines changed

.cspell.json

+11-1
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
"language": "en",
55
"words": [
66
"abortable",
7+
"Addrs",
78
"ahadns",
89
"Alives",
910
"asym",
@@ -96,6 +97,7 @@
9697
"secp",
9798
"sharded",
9899
"sscanf",
100+
"Startable",
99101
"staticnode",
100102
"statusim",
101103
"statusteam",
@@ -125,7 +127,15 @@
125127
"Привет",
126128
"مرحبا"
127129
],
128-
"flagWords": ["pubSub: pubsub", "pubSubTopics: pubsubTopics", "pubSubTopic: pubsubTopic", "PubSub: Pubsub", "PubSubTopics: PubsubTopics", "PubSubTopic: PubsubTopic", "DefaultPubSubTopic: DefaultPubsubTopic"],
130+
"flagWords": [
131+
"pubSub: pubsub",
132+
"pubSubTopics: pubsubTopics",
133+
"pubSubTopic: pubsubTopic",
134+
"PubSub: Pubsub",
135+
"PubSubTopics: PubsubTopics",
136+
"PubSubTopic: PubsubTopic",
137+
"DefaultPubSubTopic: DefaultPubsubTopic"
138+
],
129139
"ignorePaths": [
130140
"package.json",
131141
"package-lock.json",

.gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -13,3 +13,4 @@ test-results
1313
playwright-report
1414
example
1515
allure-results
16+
packages/local-discovery/mock_local_storage

0 commit comments

Comments
 (0)