Releases: mongodb/laravel-mongodb
Releases · mongodb/laravel-mongodb
Release list
5.10.0
Immutable
release. Only release title and notes can be modified.
What's Changed
Fixed
- fix:
morphOne()using the wrong MorphOne relation class by @zigzagdev in #3564
Other Changes
- PHPLARA-258 Mutualize PHP + MongoDB extension setup in CI by @GromNaN in #3562
- PHPLARA-225 Support relation aggregates on document models by @GromNaN in #3560
- PHPLARA-249 support automated embedding in vectorSearch by @GromNaN in #3556
- Fix .gitattributes to include skills by @paulinevos in #3570
- PHPLARA-133: Add support for Laravel 13 attributes by @paulinevos in #3565
- Fix morphs() support on MongoDB schema blueprints by @Hashim1999164 in #3569
- PHPLARA-259 Apply maxTimeMS from connection options by @GromNaN in #3571
- Fix invalid BSON regex flags in DatabasePresenceVerifier::getCount() by @zigzagdev in #3563
New Contributors
- @Hashim1999164 made their first contribution in #3569
Full Changelog: 5.9.1...5.10.0
5.9.1
Immutable
release. Only release title and notes can be modified.
5.9.0
Immutable
release. Only release title and notes can be modified.
What's Changed
New Features
- PHPORM-458: Support auto-embedding by @paulinevos in #3531
- Drop support for Laravel 10, 11 and PHP 8.1 by @GromNaN in #3537
- feat(scout): support sorting by relevance score (
_score) in ScoutEngine by @zigzagdev in #3534 - PHPLARA-73 Make id/_id column aliasing overridable via Grammar by @GromNaN in #3539
- PHPLARA-247: Add plugin install suggestion to Boost guidelines by @paulinevos in #3545
- PHPLARA-253: Create
database-infoBoost tool as alternative todatabase-schemaby @paulinevos in #3544 - PHPLARA-81 Add AsBsonDocument and AsBsonArray casts by @GromNaN in #3540
- PHPLARA-100: Create agent skills by @paulinevos in #3546
- PHPLARA-251: Create database query tool for Boost by @paulinevos in #3548
- Move agent skill to Laravel Boost convention by @pushpak1300 in #3550
Fixed
- Fix: Recurse into
stdClassvalues inprepareFieldsForQueryby @zigzagdev in #3525 - fix:
MongoLocklottery never pruned expired locks by @zigzagdev in #3533 - PHPORM-497: Fix failing PHPStan static analysis action by @GromNaN in #3529
- Fix groupBy() building an invalid $group stage when _id is selected by @ZayanKhan-12 in #3553
Other Changes
- PHPORM-486: Explicitly do not support base vector search methods by @paulinevos in #3535
New Contributors
- @ZayanKhan-12 made their first contribution in #3553
- @pushpak1300 made their first contribution in #3550
Full Changelog: 5.8.2...5.9.0
5.8.2
Immutable
release. Only release title and notes can be modified.
What's Changed
Bug
- PHPORM-492 Fix PHPDoc return and param types for raw() methods by @GromNaN in #3526
- Fix: prevent
getCastTypefrom mutating model-wide dateFormat by @zigzagdev in #3514
Full Changelog: 5.8.1...5.8.2
5.8.1
Immutable
release. Only release title and notes can be modified.
What's Changed
Fixed
- PHPORM-495 Fix sort direction enum use by @alcaeus in #3519
Full Changelog: 5.8.0...5.8.1
5.8.0
Immutable
release. Only release title and notes can be modified.
What's Changed
New Features
- Move field aliasing methods to Grammar class as public overridable API by @dercoder in #3476
- PHPORM-305 Deprecate "array" cast storing as JSON-encoded string by @GromNaN in #3495
- Add advanced type definition for Atlas Search Indexes by @GromNaN in #3234
- PHPORM-491 Support \SortDirection enum in Query\Builder::orderBy() by @babaduk47 in #3507
Fixed
- Update generics on hybrid relations by @bskl in #3489
- Fix MongoStore increment behavior for expired cache entries by @zigzagdev in #3467
- Fix incorrect behaviour when comparing castable attributes in
originalIsEquivalentmethod by @guram-vashakidze in #3439 - Make
EmbedsRelations::embedsManyandEmbedsRelations::embedsOnepublic by @GromNaN in #2588 - fix: Sync correct timestamps offset by @zigzagdev in #3509
- Fix:
increment&decrementon embedded models to delegate toModel::incrementOrDecrement()by @zigzagdev in #3510 - PHPORM-494 Fix
MongoStore::unserialize()for empty arrays and objects by @GromNaN in #3517
New Contributors
- @dercoder made their first contribution in #3476
- @babaduk47 made their first contribution in #3507
Full Changelog: 5.7.1...5.8.0
5.7.1
Immutable
release. Only release title and notes can be modified.
What's Changed
Fixed
- Fix relation name passed to
morphedByMany()by @bskl in #3491 - PHPORM-479 Fix
MongoBatchRepository::rollBack()throwing when no active session by @GromNaN in #3492 - Fix: Sync cancellation timestamps by @zigzagdev in #3496
Other Changes
Full Changelog: 5.7.0...5.7.1
5.7.0
Immutable
release. Only release title and notes can be modified.
What's Changed
New Features
- Laravel 13.x Compatibility by @laravel-shift in #3482
New Contributors
- @laravel-shift made their first contribution in #3482
Full Changelog: 5.6.0...5.7.0
5.6.0
Immutable
release. Only release title and notes can be modified.
This release fixes compatibility with Laravel 12.51.
What's Changed
Fixed
- PHPORM-373 Use
DatabaseTransactionsManagerinManagesTransactionstrait by @paulinevos in #3443 - PHPORM-432 Wait for search indexes to be dropped before creating new one in tests by @GromNaN in #3460
- ScoutEngine: correct
delete()TypeError message to reference EloquentCollection by @zigzagdev in #3457 - Fix test that randomly crashes by @GromNaN in #3464
- Fix Builder methods declaration for compatibility with Laravel 12.51 by @GromNaN in #3479
Other Changes
- Improve change log categories by @paulinevos in #3442
- Bump actions/labeler from 5 to 6 by @dependabot[bot] in #3445
- Remove explicit dependency to symfony/http-kernel as it's not used directly by @GromNaN in #3446
- Bump mongodb-labs/drivers-github-tools from 2 to 3 by @dependabot[bot] in #3452
- Bump github/codeql-action from 3 to 4 by @dependabot[bot] in #3455
- Bump actions/checkout from 5 to 6 by @dependabot[bot] in #3458
- PHPORM-418 Test with PHP 8.5 and reduce test matrix by @GromNaN in #3459
- Consolidate repetitive model instantiations across tests by @zigzagdev in #3416
- Bump actions/cache from 4 to 5 by @dependabot[bot] in #3468
- Drop docs folder by @alcaeus in #3473
- Fix chunked order query bug by @paulinevos in #3480
New Contributors
- @zigzagdev made their first contribution in #3457
Full Changelog: 5.5.0...5.6.0
5.5.0
What's Changed
Fixed
- PHPORM-330 Fix: Convert query duration time to milliseconds by @AmirRezaM75 in #3374
- PHPORM-331 Fix test on job payload by @GromNaN in #3375
- Fix database name extraction from DSN containing a CA file path by @fergusean in #3381
- [5.x] Replaced a too strict assertion in DatabaseSessionHandler.php that prevented to use the sessions at all with a more simple sanity check. Test already failed on that, now they pass. by @tonivega in #3366
Other Changes
- Validate PSR namespaces in CI by @GromNaN in #3363
- Bump ramsey/composer-install from 3.1.0 to 3.1.1 by @dependabot[bot] in #3393
- PHPORM-326 Add collation to
db:tablecommand by @paulinevos in #3394 - Add conditional return type to
Builder::raw()by @paulinevos in #3395 - Support adding schema validation by @paulinevos in #3397
QueryBuildermultiply and divide support by @faissaloux in #3373- Bump PHP to 8.2 in Docker test container by @paulinevos in #3399
- Bump stefanzweifel/git-auto-commit-action from 5 to 6 by @dependabot[bot] in #3409
- Limit CI workflows to supported branches by @alcaeus in #3411
- Improve error handling on unsupported hybrid queries by @paulinevos in #3404
- PHPORM-264: Deprecate Mongo soft deletes trait by @paulinevos in #3408
- Add Mongo builder mixin to
DocumentModelby @paulinevos in #3417 - PHPORM-146: Add override attribute everywhere by @paulinevos in #3412
- Replace extra substr() call by @jmikola in #3430
- Bump actions/checkout from 4 to 5 by @dependabot[bot] in #3440
Docs changes
- DOCSP-50472: schema validation by @rustagir in #3400
- DOCSP-50781: Update SoftDeletes references by @mcmorisi in #3413
- DOCSP-50607: multiply/divide QB methods by @rustagir in #3403
- DOCSP-50960: Install PHP ext with pie by @norareidy in #3419
New Contributors
- @tonivega made their first contribution in #3366
- @AmirRezaM75 made their first contribution in #3374
- @fergusean made their first contribution in #3381
- @paulinevos made their first contribution in #3394
- @faissaloux made their first contribution in #3373
Full Changelog: 5.4.3...5.5.0