fix: export V2 API classes and types from index

- Export RondevuUsername, RondevuServices, RondevuDiscovery classes
- Export all related type interfaces
- Export pool-related types (PoolStatus, PooledServiceHandle)

This fixes the issue where the V2 APIs were available as properties
on the Rondevu client instance but not accessible as standalone imports.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
2025-12-05 18:37:33 +01:00
parent 15f821f08a
commit c9f6119148
2 changed files with 26 additions and 1 deletions

View File

@@ -1,6 +1,6 @@
{ {
"name": "@xtr-dev/rondevu-client", "name": "@xtr-dev/rondevu-client",
"version": "0.8.0", "version": "0.8.1",
"description": "TypeScript client for Rondevu DNS-like WebRTC with username claiming and service discovery", "description": "TypeScript client for Rondevu DNS-like WebRTC with username claiming and service discovery",
"type": "module", "type": "module",
"main": "dist/index.js", "main": "dist/index.js",

View File

@@ -27,3 +27,28 @@ export type {
PeerEvents, PeerEvents,
PeerTimeouts PeerTimeouts
} from './peer/index.js'; } from './peer/index.js';
// Export username API
export { RondevuUsername } from './usernames.js';
export type { UsernameClaimResult, UsernameCheckResult } from './usernames.js';
// Export services API
export { RondevuServices } from './services.js';
export type {
ServicePublishResult,
PublishServiceOptions,
ServiceHandle
} from './services.js';
// Export discovery API
export { RondevuDiscovery } from './discovery.js';
export type {
ServiceInfo,
ServiceListResult,
ServiceQueryResult,
ServiceDetails,
ConnectResult
} from './discovery.js';
// Export pool types
export type { PoolStatus, PooledServiceHandle } from './service-pool.js';