You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feat: Add URL parsing support for all video functions (v0.2.0)
✨ Features:
- All video functions now accept YouTube URLs in addition to video IDs
- Support for 10+ URL formats (youtu.be, watch, embed, shorts, live, etc.)
- Automatic video ID extraction from URLs with query parameters
- New extractVideoId() utility for URL normalization
🔧 Changes:
- Updated getTranscript, getTranscriptText, getTranscriptSRT, getTranscriptVTT, listTranscripts
- Updated getVideoInfo, getBasicVideoInfo
- Added INVALID_INPUT error code
- Unified URL parsing logic in src/utils/extract-video-id.ts
✅ Tests:
- Comprehensive test coverage for all URL formats
- All 11 test cases passing
- Validated with video J6OnBDmErUg
📝 Docs:
- Updated README with URL examples
- Updated CHANGELOG for v0.2.0
- Updated API Reference tables
0 commit comments