Skip to content

Commit b3d1a43

Browse files
committed
Update CHANGELOG.md
1 parent d3ce71b commit b3d1a43

1 file changed

Lines changed: 23 additions & 2 deletions

File tree

CHANGELOG.md

Lines changed: 23 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,25 @@
22

33
All notable changes to this `laravel-elasticsearch` package will be documented in this file.
44

5+
## v5.6.1 - 2026-04-06
6+
7+
> **Future-proofing note:** After GitHub incorrectly shadow-banned my account (since reinstated with no
8+
> explanation beyond "it shouldn't happen again"), all packages are now mirrored to GitLab. GitHub
9+
> remains the home for issues, PRs, and community collaboration, but **Packagist downloads exclusively
10+
from GitLab** to ensure uninterrupted access to releases regardless of GitHub's actions.
11+
12+
This release is compatible with Laravel 11, 12 & 13
13+
14+
### Fixed
15+
16+
- **Laravel 13.3 compatibility**`newCollection()` override on base Model to prevent `HasCollection`
17+
trait from attempting to instantiate the abstract parent class (`Cannot instantiate abstract class`
18+
error introduced in Laravel 13.3's new `resolveCollectionFromAttribute` grandchild resolution)
19+
- **QueryException** crash on `Undefined array key "error"` when Elasticsearch returns responses
20+
without the expected `error.type` structure (e.g. malformed or non-standard error payloads)
21+
22+
**Full Changelog**: https://github.com/pdphilip/laravel-elasticsearch/compare/v5.6.0...v5.6.1
23+
524
## v5.6.0 - 2026-03-24
625

726
This release is compatible with Laravel 11, 12 & 13
@@ -21,15 +40,17 @@ This release is compatible with Laravel 11, 12 & 13
2140

2241
### Refactored
2342

24-
- Collapsed Laravel version compatibility layer from 12 files (4 dispatchers + 4 v11 traits + 4 v12 traits) into 4 self-contained traits. Version checks now happen inside each method with spread operators for different constructor signatures — no more file-level conditional trait loading. Removed phpstan bootstrap `class_alias` hacks that were needed for the old pattern.
43+
- Collapsed Laravel version compatibility layer from 12 files (4 dispatchers + 4 v11 traits + 4 v12 traits) into 4 self-contained traits. Version checks now happen inside each method with spread operators for different constructor
44+
signatures — no more file-level conditional trait loading. Removed phpstan bootstrap `class_alias` hacks that were needed for the old pattern.
2545

2646
**Full Changelog**: https://github.com/pdphilip/laravel-elasticsearch/compare/v5.5.3...v5.6.0
2747

2848
## v5.5.3 - 2026-03-20
2949

3050
### Fixed
3151

32-
- `distinct()`, `bulkDistinct()`, and `groupBy()` now work on nested fields (e.g., `distinct('tags.key', true)`). Previously these returned empty results because the compiled DSL lacked the required `nested` aggregation wrapper. The package now auto-detects nested mappings and wraps aggregations accordingly — no changes needed in userland code.
52+
- `distinct()`, `bulkDistinct()`, and `groupBy()` now work on nested fields (e.g., `distinct('tags.key', true)`). Previously these returned empty results because the compiled DSL lacked the required `nested` aggregation wrapper. The package
53+
now auto-detects nested mappings and wraps aggregations accordingly — no changes needed in userland code.
3354
- When `whereNestedObject()` is combined with `distinct()` on the same nested path, the nested filter is injected inside the aggregation context so that only matching sub-documents are aggregated.
3455

3556
**Full Changelog**: https://github.com/pdphilip/laravel-elasticsearch/compare/v5.5.2...v5.5.3

0 commit comments

Comments
 (0)