github meilisearch/meilisearch-php v2.0.0-beta.5
v2.0.0-beta.5 🌱

latest releases: v2.0.0-beta.8, v1.17.0, v2.0.0-beta.7...
pre-release10 months ago

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 objects

Additionally

  • The internal task manager all() method now returns an array of Task objects.
  • The TaskResults class is now final

⚠️ Breaking changes

  • Wrap data with Task before passing to TasksResults (#864) @norkunas

🚀 Enhancements

  • Add raw data to Task and implement ArrayAccess (backward compatibility) (#863) @norkunas
  • Use environment flag to allow all network IPs in tests (#867) @Strift

⚙️ Maintenance/misc

Thanks to @Strift, @norkunas and dependabot[bot]! 🎉

See full changelog: v2.0.0-beta.3...v2.0.0-beta.5

Don't miss a new meilisearch-php release

NewReleases is sending notifications on new releases.