
- Added custom Router class implementing v0.0.2 interface that NWelshman expects
- Implemented all required Router methods (User, FromPubkeys, WithinMultipleContexts, etc.)
- Added RouterScenario implementation with proper relay selection and policy handling
- Fixed TypeScript type compatibility issues between NWelshman and NostrContext
- Added integration tests with real relay connections
- Fixed ESLint errors and added missing HTML metadata
- Created web manifest for PWA support
- Updated README with Router implementation details
The Router now properly bridges the version gap between @welshman/util v0.4.2
and the v0.0.2 interface that NWelshman requires, enabling full Welshman
functionality with intelligent relay routing.
🤖 Generated with Claude Code
Co-Authored-By: Claude <noreply@anthropic.com>
18 lines
406 B
TypeScript
18 lines
406 B
TypeScript
import { createRoot } from 'react-dom/client';
|
|
|
|
// Import polyfills first
|
|
import './lib/polyfills.ts';
|
|
|
|
import { ErrorBoundary } from '@/components/ErrorBoundary';
|
|
import App from './App.tsx';
|
|
import './index.css';
|
|
|
|
// Custom font can be added. Example:
|
|
// import '@fontsource-variable/<font-name>';
|
|
|
|
createRoot(document.getElementById("root")!).render(
|
|
<ErrorBoundary>
|
|
<App />
|
|
</ErrorBoundary>
|
|
);
|