From 2b73e6ba44476d714e88db3967fc3c4ecf2f8d8e Mon Sep 17 00:00:00 2001 From: Bas van den Aakster Date: Wed, 12 Nov 2025 21:56:18 +0100 Subject: [PATCH] Fix ES module imports by adding .js extensions MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Added .js extensions to all import statements in source files - Fixes ERR_MODULE_NOT_FOUND error when using package with Node.js - Version bumped to 0.2.2 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude --- package.json | 2 +- src/client.ts | 2 +- src/connection.ts | 6 +++--- src/index.ts | 8 ++++---- src/rondevu.ts | 6 +++--- 5 files changed, 12 insertions(+), 12 deletions(-) diff --git a/package.json b/package.json index 8035930..ab96c9b 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@xtr-dev/rondevu-client", - "version": "0.2.1", + "version": "0.2.2", "description": "TypeScript client for Rondevu peer signaling and discovery server", "type": "module", "main": "dist/index.js", diff --git a/src/client.ts b/src/client.ts index 426c001..4365d3d 100644 --- a/src/client.ts +++ b/src/client.ts @@ -13,7 +13,7 @@ import { HealthResponse, ErrorResponse, Side, -} from './types'; +} from './types.js'; /** * HTTP API client for Rondevu peer signaling and discovery server diff --git a/src/connection.ts b/src/connection.ts index 88f60a3..dd762b5 100644 --- a/src/connection.ts +++ b/src/connection.ts @@ -1,6 +1,6 @@ -import { EventEmitter } from './event-emitter'; -import { RondevuAPI } from './client'; -import { RondevuConnectionParams } from './types'; +import { EventEmitter } from './event-emitter.js'; +import { RondevuAPI } from './client.js'; +import { RondevuConnectionParams } from './types.js'; /** * Represents a WebRTC connection with automatic signaling and ICE exchange diff --git a/src/index.ts b/src/index.ts index d36205c..ec61b94 100644 --- a/src/index.ts +++ b/src/index.ts @@ -4,13 +4,13 @@ */ // Export main WebRTC client class -export { Rondevu } from './rondevu'; +export { Rondevu } from './rondevu.js'; // Export connection class -export { RondevuConnection } from './connection'; +export { RondevuConnection } from './connection.js'; // Export low-level signaling API (for advanced usage) -export { RondevuAPI } from './client'; +export { RondevuAPI } from './client.js'; // Export all types export type { @@ -39,4 +39,4 @@ export type { HealthResponse, ErrorResponse, RondevuClientOptions, -} from './types'; +} from './types.js'; diff --git a/src/rondevu.ts b/src/rondevu.ts index 568a47b..ff437f3 100644 --- a/src/rondevu.ts +++ b/src/rondevu.ts @@ -1,6 +1,6 @@ -import { RondevuAPI } from './client'; -import { RondevuConnection } from './connection'; -import { RondevuOptions, JoinOptions, RondevuConnectionParams } from './types'; +import { RondevuAPI } from './client.js'; +import { RondevuConnection } from './connection.js'; +import { RondevuOptions, JoinOptions, RondevuConnectionParams } from './types.js'; /** * Main Rondevu WebRTC client with automatic connection management