@upstash/context7-sdk@0.2.0
upstash/context7@upstash/context7-sdk@0.2.0Jan 7, 2026by github-actions[bot]
AI Summary
This minor release simplifies the SDK API by streamlining context retrieval methods, replacing complex response types with standardized structures, and removing pagination and mode parameters.
Key Highlights
- Simplified API architecture
- New `getContext()` method
- Standardized response types (Library/Documentation)
- Removal of pagination and mode options
Breaking Changes
- Replaced `getDocs()` with `getContext(query, libraryId, options)`
- Updated `searchLibrary(query, libraryName)` to take both query and libraryName parameters
- Removed pagination, mode, topic, and limit options from context retrieval
- Renamed response types to `Library` and `Documentation`
New Features
- Simplified context retrieval
- Standardized response types
Full Release Notes
### Minor Changes
- b3cd38a: feat: Simplify SDK API
- Replace `getDocs()` with `getContext(query, libraryId, options)` - now takes a query parameter for relevance-based retrieval
- Update `searchLibrary(query, libraryName)` to take both query and libraryName parameters
- Replace response types: `Library` and `Documentation` instead of `SearchResult`, `CodeDocsResponse`, `InfoDocsResponse`, etc.
- Remove pagination, mode, topic, and limit options from context retrieval
- Simplify `GetContextOptions` to only include `type: "json" | "txt"`