|
2 | 2 |
|
3 | 3 | All notable changes to this `laravel-elasticsearch` package will be documented in this file. |
4 | 4 |
|
| 5 | +## v5.7.1 - 2026-08-20 |
| 6 | + |
| 7 | +This release is compatible with Laravel 11, 12 & 13, and with Elasticsearch 8 & 9 |
| 8 | + |
| 9 | +### Added |
| 10 | + |
| 11 | +- **Elasticsearch 9 support** - the full suite runs green against ES 8.18 and 9.5, and CI now tests |
| 12 | + both on every push. No code changes were needed: the `^8.17` client talks to both server lines. |
| 13 | + |
| 14 | +### Fixed |
| 15 | + |
| 16 | +- **`cursor()` returns a `LazyCollection`** - matching Laravel's own builders, so `cursor()->chunk()`, |
| 17 | + `->map()` and `->filter()` work instead of fataling with `Call to undefined method |
| 18 | + Generator::chunk()`. Found and fixed by [@BobbyBorisov](https://github.com/BobbyBorisov) in |
| 19 | + [laravel-opensearch#28](https://github.com/pdphilip/laravel-opensearch/pull/28) |
| 20 | +- **`cursor()` crashed on a fresh connection** - `Processor::getRawResponse()` dereferenced null when |
| 21 | + a cursor was the first query on its connection (`Call to a member function asArray() on null`) |
| 22 | + |
| 23 | +### Changed |
| 24 | + |
| 25 | +- `cursor()` returns `LazyCollection` instead of `Generator`. `foreach` is unaffected; anything |
| 26 | + type-hinting `Generator` or `Iterator` needs updating |
| 27 | +- A cursor is re-iterable - a second pass opens a fresh scroll instead of throwing |
| 28 | + `Cannot rewind a generator` |
| 29 | + |
| 30 | +> **Laravel 11 notice:** three advisories now cover the whole 11.x branch with no 11.x release that |
| 31 | +> clears them, and Composer 2.9+ blocks advisory-affected versions while resolving. On Laravel 11, |
| 32 | +> `composer require` and `composer update` will refuse to install anything, this package included. |
| 33 | +> `composer install` from a lock file still works. `composer config policy.advisories.block false` |
| 34 | +> lifts it; upgrading to 12 or 13 is the real fix. |
| 35 | +
|
| 36 | +**Full Changelog**: https://github.com/pdphilip/laravel-elasticsearch/compare/v5.7.0...v5.7.1 |
| 37 | + |
5 | 38 | ## v5.7.0 - 2026-05-24 |
6 | 39 |
|
7 | 40 | This release is compatible with Laravel 11, 12 & 13 |
|
0 commit comments