Note
This replaces the incorrect v2.0.0-beta.4 release tagged from the wrong branch.
Migration guide
If you're migrating from v1.x, read the full migration guide instead.
🟠 Task methods now return types (Impact: moderate)
$client->getTasks() and $index->getTasks() now return a TaskResults object.
// Before (v1.x)
$tasks = $client->getTasks();
$results = $tasks['results']; // Accessing as array
// After (v2.x)
$tasks = $client->getTasks(); // Returns TaskResults
$results = $tasks->getResults(); // Returns an array of Task objectsAdditionally
- The internal task manager
all()method now returns an array ofTaskobjects. - The
TaskResultsclass is now final
⚠️ Breaking changes
🚀 Enhancements
- Add raw data to
Taskand implementArrayAccess(backward compatibility) (#863) @norkunas - Use environment flag to allow all network IPs in tests (#867) @Strift
⚙️ Maintenance/misc
- Bump actions/cache from 4 to 5 (#856) @dependabot[bot]
- Bump actions/download-artifact from 6 to 7 (#858) @dependabot[bot]
- Bump actions/upload-artifact from 5 to 6 (#860) @dependabot[bot]
- Add AI usage disclosure guidelines to CONTRIBUTING.md (#862) @curquiza
Thanks to @Strift, @norkunas and dependabot[bot]! 🎉
See full changelog: v2.0.0-beta.3...v2.0.0-beta.5