The latest AutoResearch SDK update introduces a new function for retrieving historical data and resolves a critical memory leak, improving both functionality and stability.
> impact
We've shipped a new version of the AutoResearch SDK, merging PR #342, which introduces the `getHistoricalData` function and patches a significant memory leak. The new function allows developers to programmatically access past research data points for specific topics, while the bug fix addresses an issue where SDK instances were not being properly garbage collected, leading to performance degradation in long-running applications.
This update was driven by direct developer feedback. The community has long requested a streamlined way to pull historical data for backtesting strategies and building more robust analytical models. Concurrently, our internal monitoring flagged a memory leak that could impact production systems, making its resolution a top priority to ensure the reliability and stability of the SDK for all users.
The impact is twofold: developers now have a powerful new tool with `getHistoricalData`, unlocking advanced analytics and backtesting capabilities directly within their applications. More importantly, the memory leak fix ensures that all applications built with the AutoResearch SDK will run more efficiently and reliably, preventing crashes and performance bottlenecks in production environments.
> Try this now
try this
# To get started with the latest AutoResearch SDK update,
# first import the client and initialize it with your API key.
import { AutoResearchClient } from '@autoresearch/sdk';
const client = new AutoResearchClient({ apiKey: 'YOUR_API_KEY' });
# Now, you can use the new getHistoricalData function.
# Let's fetch data for 'Decentralized AI' from the past year.
async function fetchOldData() {
try {
const historicalData = await client.getHistoricalData({
topic: 'Decentralized AI',
startDate: '2025-03-28',
endDate: '2026-03-28'
});
// # The function returns an array of data points.
console.log('Fetched Historical Data:', historicalData);
console.log(`Found ${historicalData.length} data points.`);
} catch (error) {
console.error('Failed to fetch historical data:', error);
}
}
fetchOldData();