TypeScript SDK Breaking Changes
Client Class Name Change
The client is now calledFathom instead of FathomApi.
Old Syntax
New Syntax
API Key Authentication Syntax
The API key authentication syntax has changed to support the new security model.Old Syntax
New Syntax
OAuth Support
Version 0.0.30 adds OAuth support, which requires the new client structure:Migration Guide
To migrate from an older version to 0.0.30:-
Update imports:
-
Update client initialization:
-
Update method calls (if any method signatures changed):
Backward Compatibility
Older versions of the SDK continue to work with API key authentication, but they don’t support OAuth features.
- Pin to the old version for existing applications
- Create a new integration using version 0.0.30 for OAuth features
- Gradually migrate existing code to the new syntax
Version Pinning
We recommend pinning to a specific version to avoid unexpected breaking changes:What’s New in 0.0.30
- ✅ OAuth 2.0 support
- ✅ Improved security model
- ✅ Better TypeScript types
- ✅ Enhanced error handling
- ✅ Standalone functions for bundle optimization
- ✅ Async iteration for pagination

