Compare commits

...

5 Commits

Author SHA1 Message Date
semantic-release-bot 0603ec2394 chore(release): 0.1.0-develop.8 [skip ci]
# [0.1.0-develop.8](https://git.lumeweb.com/LumeWeb/kernel-s5/compare/v0.1.0-develop.7...v0.1.0-develop.8) (2023-09-04)

### Bug Fixes

* have peerConnectedDefer resolve when we have a connected peer via peerConnected ([beb4215](beb42152b8))
2023-09-04 08:33:58 +00:00
Derrick Hammer 38c2a931db
Merge remote-tracking branch 'origin/develop' into develop 2023-09-04 04:32:52 -04:00
Derrick Hammer b8c359ba58
dep: update libkernel 2023-09-04 04:32:46 -04:00
Derrick Hammer bd04087a97
refactor: only prefix ED25519 if its not the 1st byte 2023-09-03 20:54:57 -04:00
Derrick Hammer beb42152b8
fix: have peerConnectedDefer resolve when we have a connected peer via peerConnected 2023-09-03 20:49:44 -04:00
4 changed files with 27 additions and 18 deletions

View File

@ -1,3 +1,10 @@
# [0.1.0-develop.8](https://git.lumeweb.com/LumeWeb/kernel-s5/compare/v0.1.0-develop.7...v0.1.0-develop.8) (2023-09-04)
### Bug Fixes
* have peerConnectedDefer resolve when we have a connected peer via peerConnected ([beb4215](https://git.lumeweb.com/LumeWeb/kernel-s5/commit/beb42152b829196af26fc70f3189e8ade651c717))
# [0.1.0-develop.7](https://git.lumeweb.com/LumeWeb/kernel-s5/compare/v0.1.0-develop.6...v0.1.0-develop.7) (2023-09-03) # [0.1.0-develop.7](https://git.lumeweb.com/LumeWeb/kernel-s5/compare/v0.1.0-develop.6...v0.1.0-develop.7) (2023-09-03)

28
npm-shrinkwrap.json generated
View File

@ -1,16 +1,16 @@
{ {
"name": "@lumeweb/kernel-s5", "name": "@lumeweb/kernel-s5",
"version": "0.1.0-develop.7", "version": "0.1.0-develop.8",
"lockfileVersion": 3, "lockfileVersion": 3,
"requires": true, "requires": true,
"packages": { "packages": {
"": { "": {
"name": "@lumeweb/kernel-s5", "name": "@lumeweb/kernel-s5",
"version": "0.1.0-develop.7", "version": "0.1.0-develop.8",
"dependencies": { "dependencies": {
"@lumeweb/kernel-protomux-client": "^0.0.2-develop.20", "@lumeweb/kernel-protomux-client": "^0.0.2-develop.20",
"@lumeweb/kernel-swarm-client": "^0.1.0-develop.9", "@lumeweb/kernel-swarm-client": "^0.1.0-develop.9",
"@lumeweb/libkernel": "^0.1.0-develop.39", "@lumeweb/libkernel": "^0.1.0-develop.44",
"@lumeweb/libs5-transport-hyper": "^0.1.0-develop.18", "@lumeweb/libs5-transport-hyper": "^0.1.0-develop.18",
"whatwg-url": "^13.0.0" "whatwg-url": "^13.0.0"
}, },
@ -1709,11 +1709,11 @@
} }
}, },
"node_modules/@lumeweb/libkernel": { "node_modules/@lumeweb/libkernel": {
"version": "0.1.0-develop.39", "version": "0.1.0-develop.44",
"resolved": "https://registry.npmjs.org/@lumeweb/libkernel/-/libkernel-0.1.0-develop.39.tgz", "resolved": "https://registry.npmjs.org/@lumeweb/libkernel/-/libkernel-0.1.0-develop.44.tgz",
"integrity": "sha512-KqWf/xFXE/wqevLklY4xTu4OJEoh3emSjZGUa/NP/iroh1upX6+rjEonjXKhAt/3XGCyqUOvRQcJ9dNnkFAKhQ==", "integrity": "sha512-vja0bvr2YZvRs1/HocW4BBJOl39bbXFrJPMDGULqYFnW1GZOGIk3tYmqsv7FRxzMpty9aqX4HHxcrX/7AyGbGQ==",
"dependencies": { "dependencies": {
"@lumeweb/libweb": "0.2.0-develop.39", "@lumeweb/libweb": "0.2.0-develop.49",
"emittery": "^1.0.1", "emittery": "^1.0.1",
"p-defer": "^4.0.0" "p-defer": "^4.0.0"
} }
@ -1730,9 +1730,9 @@
} }
}, },
"node_modules/@lumeweb/libportal": { "node_modules/@lumeweb/libportal": {
"version": "0.2.0-develop.21", "version": "0.2.0-develop.23",
"resolved": "https://registry.npmjs.org/@lumeweb/libportal/-/libportal-0.2.0-develop.21.tgz", "resolved": "https://registry.npmjs.org/@lumeweb/libportal/-/libportal-0.2.0-develop.23.tgz",
"integrity": "sha512-5KbRQEDntkCoh1YITQkpUqFMzmfkaYQGQRCCn5QeM7DN2eIJMzpo4q+lZXFX/ztqueFaSZYMDrSZ4tzAPP+c6w==", "integrity": "sha512-KN7KqFu5I+aYDeOL8hhaw1sjFjof8TrrPRvbdGmlQ7RDgkRbqiOQ8LQx2zPteBJPPGJfOtrnWWygBqy9wjuiaw==",
"dependencies": { "dependencies": {
"@lumeweb/libs5": "^0.1.0-develop.44", "@lumeweb/libs5": "^0.1.0-develop.44",
"@noble/curves": "^1.1.0", "@noble/curves": "^1.1.0",
@ -1779,12 +1779,12 @@
} }
}, },
"node_modules/@lumeweb/libweb": { "node_modules/@lumeweb/libweb": {
"version": "0.2.0-develop.39", "version": "0.2.0-develop.49",
"resolved": "https://registry.npmjs.org/@lumeweb/libweb/-/libweb-0.2.0-develop.39.tgz", "resolved": "https://registry.npmjs.org/@lumeweb/libweb/-/libweb-0.2.0-develop.49.tgz",
"integrity": "sha512-0qqBHXUb1eD5HOHhsycL3kev6osW+NNswWNovC+zpH7CtWeXfy4u+Of4uEA9qq4c80nZDB06FAQF1r03EeAwMg==", "integrity": "sha512-KwlluSiWwCHUEr47LEC6la0seMUeOpQ/d06K2eTT8b5ZlZ0lXjvDWJeLQm8azZexldG8nW9ikev5YlBUAWagdA==",
"dependencies": { "dependencies": {
"@lumeweb/community-portals": "^0.1.0-develop.6", "@lumeweb/community-portals": "^0.1.0-develop.6",
"@lumeweb/libportal": "0.2.0-develop.21", "@lumeweb/libportal": "0.2.0-develop.23",
"@lumeweb/node-library-preset": "0.2.7", "@lumeweb/node-library-preset": "0.2.7",
"@noble/curves": "^1.1.0", "@noble/curves": "^1.1.0",
"@noble/hashes": "^1.3.1", "@noble/hashes": "^1.3.1",

View File

@ -1,6 +1,6 @@
{ {
"name": "@lumeweb/kernel-s5", "name": "@lumeweb/kernel-s5",
"version": "0.1.0-develop.7", "version": "0.1.0-develop.8",
"type": "module", "type": "module",
"readme": "ERROR: No README data found!", "readme": "ERROR: No README data found!",
"repository": { "repository": {
@ -15,7 +15,7 @@
"dependencies": { "dependencies": {
"@lumeweb/kernel-protomux-client": "^0.0.2-develop.20", "@lumeweb/kernel-protomux-client": "^0.0.2-develop.20",
"@lumeweb/kernel-swarm-client": "^0.1.0-develop.9", "@lumeweb/kernel-swarm-client": "^0.1.0-develop.9",
"@lumeweb/libkernel": "^0.1.0-develop.39", "@lumeweb/libkernel": "^0.1.0-develop.44",
"@lumeweb/libs5-transport-hyper": "^0.1.0-develop.18", "@lumeweb/libs5-transport-hyper": "^0.1.0-develop.18",
"whatwg-url": "^13.0.0" "whatwg-url": "^13.0.0"
}, },

View File

@ -92,7 +92,7 @@ async function setup() {
await s5peer.init(); await s5peer.init();
node.services.p2p.onNewPeer(s5peer, true); node.services.p2p.onNewPeer(s5peer, true);
peerConnectedDefer.resolve(); node.services.p2p.once("peerConnected", peerConnectedDefer.resolve);
}); });
return peerConnectedDefer.promise; return peerConnectedDefer.promise;
@ -115,7 +115,9 @@ async function handleGetRegistryEntry(aq: ActiveQuery) {
pubkey = ensureBytes("registry entry ", pubkey, 32); pubkey = ensureBytes("registry entry ", pubkey, 32);
pubkey = concatBytes(Uint8Array.from([CID_HASH_TYPES.ED25519]), pubkey); if (pubkey[0] !== CID_HASH_TYPES.ED25519) {
pubkey = concatBytes(Uint8Array.from([CID_HASH_TYPES.ED25519]), pubkey);
}
const ret = await node.services.registry.get(pubkey); const ret = await node.services.registry.get(pubkey);