Repository navigation
v1.1.0
v1.1.0
Breaking Changes
-
Constructor Signature Change: The API constructor now takes a single options object instead of separate parameters
// Before (v1.0.0) const api = new YouTubeTranscriptApi( // Cache options as first parameter { enabled: true, maxAge: 1000 * 60 * 60 * 24 * 30, // 30 days }, // Logger options as second parameter { enabled: true, namespace: "youtube-transcript", } ); // After (v1.1.0) const api = new YouTubeTranscriptApi({ // All options in a single object cache: { enabled: true, maxAge: 1000 * 60 * 60 * 24 * 30, // 30 days }, logger: { enabled: true, namespace: "youtube-transcript", } });
-
Error Handling: Updated error hierarchy with more specific error types
Improvements
- Improved performance with optimized caching
- Better metadata extraction
- Enhanced error reporting with more specific error types