feat: Add metadata support for peer discovery events

- Add metadata field to PeerDiscoveredEvent interface
- Add metadata field to PeerInfo interface
- Update event handler to forward metadata from native events
- Enables proper user identification in discovery

🤖 Generated with Claude Code
Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
Chris Daßler
2025-09-29 11:40:36 +02:00
parent e3067c3404
commit ebb4f105f9
4 changed files with 16 additions and 3 deletions

View File

@@ -1,11 +1,11 @@
{
"name": "@metatrom/libp2p-native-bridge",
"version": "1.0.0",
"version": "1.2.0-beta.1",
"main": "index.ts",
"type": "module",
"description": "Native libp2p bridge for React Native applications",
"metatrom": {
"ior": "com.metatrom.libp2p-native-bridge@1.0.0",
"ior": "com.metatrom.libp2p-native-bridge@1.2.0-beta.1",
"capabilities": {
"p2p": true,
"contracts": false,