v5.0.0-beta.4
Pre-release
Pre-release
v5.0.0-beta.4
🎯 What's New
This beta release includes important documentation improvements, enhanced TypeScript support, and better test coverage.
✨ Enhancements
- Enhanced TypeScript Support: Types can now be imported directly (e.g.,
import { ListenV1Response } from "@deepgram/sdk") in addition to the namespace import, improving IDE autocomplete and discoverability - Improved Documentation:
- Clarified that proxy servers are required for browser REST API calls due to CORS header restrictions
- Added detailed explanation of why the proxy is needed (custom headers not whitelisted)
- Enhanced migration guide with examples of both direct and namespace type imports
- Improved README with better examples and explanations
- Better Binary Handling: Fixed critical issue where TTS audio streams were incorrectly parsed as JSON by removing autogenerated message handler
- Improved Examples: All middleware examples converted from JavaScript to TypeScript for better type safety and developer experience
- Enhanced Testing: Added comprehensive tests for custom providers, fallback configurations, and base URL priority handling
- Better Configuration: Improved base URL handling and configuration priority
🧪 Testing Improvements
- Added tests for agent custom providers and fallbacks
- Added tests for base URL configuration priority
- Added tests for custom base URL handling
- Expanded example coverage for middleware use cases
📝 Documentation
- Updated fernignore to protect custom test files
- Improved middleware example documentation
🔧 Internal Changes
- Multiple SDK regenerations to keep up with API changes
- Improved build and test infrastructure
📦 Installation
npm install @deepgram/sdk@5.0.0-beta.4🔗 Full Changelog
Commits since v5.0.0-beta.3:
- f155120 SDK regeneration
- fbd867c chore: update fernignore
- 16cf0fc Revert "feat: add custom middleware package (TODO: ws support, rest works)"
- 0600353 feat: add custom middleware package (TODO: ws support, rest works)
- 98248d8 feat: test custom providers and fallbacks maybe?
- b3df50c chore: sdk regeneration
- 4e7a1fd feat: convert middleware examples to typescript
- 5af2bab test: add tests for baseurl config priority
- e8f05eb chore: sdk regeneration
- 3fdcf28 SDK regeneration
⚠️ Beta Release Notice
This is a beta release of v5.0.0. Whilst we're confident in the stability, please report any issues you encounter!
- Report issues: https://github.com/deepgram/deepgram-js-sdk/issues
- Docs: https://developers.deepgram.com/
- Discord: https://discord.gg/deepgram