Releases: mongodb/laravel-mongodb
4.8.1
What's Changed
Fixed
- PHPORM-263 Fix deprecation message for collection/table config in MongoDBQueueServiceProvider by @GromNaN in #3209
Other Changes
- DOCSP-42794: Laravel Passport by @norareidy in #3113
- DOCSP-43115 - v4.8 compat by @mongoKart in #3125
- DOCSP-44610: fix php links by @rustagir in #3185
- Fix generation of SARIF reports by @alcaeus in #3193
Full Changelog: 4.8.0...4.8.1
5.1.0
What's Changed
New Features
- PHPORM-239 Convert
_id
andUTCDateTime
in results ofModel::raw()
before hydratation by @GromNaN in #3152 - PHPORM-243 Alias
_id
toid
inSchema::getColumns()
by @GromNaN in #3160 - Owner key for morphTo relations by @hans-thomas in #3162
- PHPORM-207 Convert arrow notation
->
to dot.
by @GromNaN in #3170
Fixed
- PHPORM-241 Add return type to CommandSubscriber by @GromNaN in #3157
- PHPORM-248 register command subscriber only when logs are enabled by @GromNaN in #3167
- Fix
Query\Builder::pluck()
withObjectId
as key by @fuyuki0511 in #3169
Other Changes
- PHPORM-205: Automate branch creation when releasing by @alcaeus in #3145
- Remove changelog, use release notes instead by @GromNaN in #3164
- DOCSP-43806: getColumns id alias by @rustagir in #3165
New Contributors
- @fuyuki0511 made their first contribution in #3169
Full Changelog: 5.0.2...5.1.0
5.0.2
What's Changed
Fixed
- PHPORM-241 Add return type to CommandSubscriber by @GromNaN in #3158
Other Changes
- DOCSP-43539: v5 release by @rustagir in #3154
- DOCSP-43530: Id field in query results by @norareidy in #3149
Full Changelog: 5.0.1...5.0.2
5.0.1
5.0.0
The PHP team is happy to announce that version 5.0.0 of the MongoDB integration for Laravel is now available. Feedbacks are welcome in this discussion.
Breaking changes for better compatibility with Laravel and Eloquent
id
is always alias to_id
in MongoDB. You can remove theprotected $primaryKey = '_id'
in model classes. Replace all$model->_id
with$model->id
.DateTimeInterface
objects (includingCarbon
) are converted to MongoDBUTCDateTime
by the query builder in queries, inserted and updated data. In results, MongoDBUTCDateTime
objects are automatically converted toCarbon
date with the default timezone. Some Eloquent cast my no longer be required.- Results of the Query Builder are returned as
stdClass
instead ofarray
. Replace code like$item['name']
with$item->name
. $collection
is replaced by$table
to customize the name of an Eloquent Model.- The providers
Auth\PasswordResetServiceProvider
,MongoDBQueueServiceProvider
andQueue\Failed\MongoFailedJobProvider
are removed. Remove them from your application. The MongoDB connection is compatible with the Laravel classes MongoDB\Laravel\Connection
is replaced byMongoDB\Connection
, and query are logged using MongoDB Monitoring Events.
What's Changed
New Features
- PHPORM-147 Make
id
an alias for_id
by @GromNaN in #3040 - PHPORM-230 Convert DateTimeInterface to UTCDateTime in queries by @GromNaN in #3105
- PHPORM-216 Remove $collection setting from DocumentModel and Connecti… by @GromNaN in #3104
- PHPORM-229 Make Query\Builder return objects instead of array to match Laravel behavior by @GromNaN in #3107
- PHPORM-231 Remove MongoFailedJobProvider by @GromNaN in #3122
- Remove support for Laravel 10 by @GromNaN in #3123
- PHPORM-234 Convert dates in DB Query results by @GromNaN in #3119
- PHPORM-235 Remove custom DatabaseTokenRepository by @GromNaN in #3124
- PHPORM-56 Replace Collection proxy class with Driver monitoring by @GromNaN in #3137
Other Changes
- DOCSP-42794: Laravel Passport by @norareidy in #3113
- DOCSP-43115 - v4.8 compat by @mongoKart in #3125
- Update PR template by @GromNaN in #3121
- Remove MongoDBQueueServiceProvider in composer.json by @masterbater in #3131
- PHPORM-157 Remove
Blueprint::background()
by @GromNaN in #3132 - DOCSP-43158: carbon date values db query results by @rustagir in #3133
- PHPORM-236 Remove _id from query results by @GromNaN in #3136
- DOCSP-41335: Id field alias by @norareidy in #3042
- DOCSP-43172: Remove DatabaseTokenRepository class by @norareidy in #3130
- DOCSP-43159: QB returns objects by @rustagir in #3135
- DOCSP-42956: Remove $collection support by @norareidy in #3138
- DOCSP-42957: DateTimeInterface in queries by @norareidy in #3140
- Add options to countDocuments method by @verduck in #3142
- Update merge-up config for new branch pattern by @GromNaN in #3143
- Update changelog for 5.0.0 by @GromNaN in #3144
New Contributors
- @masterbater made their first contribution in #3131
- @verduck made their first contribution in #3142
Full Changelog: 4.8.0...5.0.0
5.0.0-RC1
The PHP team is happy to announce that version 5.0.0-RC1 of the MongoDB integration for Laravel is now available. This is a release candidate for which we'd like to receive your feedback in the discussion.
Breaking changes for better compatibility with Laravel and Eloquent
id
is always alias to_id
in MongoDB. You can remove theprotected $primaryKey = '_id'
in model classes. Replace all$model->_id
with$model->id
.DateTimeInterface
objects (includingCarbon
) are converted to MongoDBUTCDateTime
by the query builder in queries, inserted and updated data. In results, MongoDBUTCDateTime
objects are automatically converted toCarbon
date with the default timezone. Some Eloquent cast my no longer be required.- Results of the Query Builder are returned as
stdClass
instead ofarray
. Replace code like$item['name']
with$item->name
. $collection
is replaced by$table
to customize the name of an Eloquent Model.- The providers
Auth\PasswordResetServiceProvider
,MongoDBQueueServiceProvider
andQueue\Failed\MongoFailedJobProvider
are removed. Remove them from your application. The MongoDB connection is compatible with the Laravel classes MongoDB\Laravel\Connection
is replaced byMongoDB\Connection
, and query are logged using MongoDB Monitoring Events.
What's Changed
New Features
- PHPORM-147 Make
id
an alias for_id
by @GromNaN in #3040 - PHPORM-230 Convert DateTimeInterface to UTCDateTime in queries by @GromNaN in #3105
- PHPORM-216 Remove $collection setting from DocumentModel and Connecti… by @GromNaN in #3104
- PHPORM-229 Make Query\Builder return objects instead of array to match Laravel behavior by @GromNaN in #3107
- PHPORM-231 Remove MongoFailedJobProvider by @GromNaN in #3122
- Remove support for Laravel 10 by @GromNaN in #3123
- PHPORM-234 Convert dates in DB Query results by @GromNaN in #3119
- PHPORM-235 Remove custom DatabaseTokenRepository by @GromNaN in #3124
- PHPORM-56 Replace Collection proxy class with Driver monitoring by @GromNaN in #3137
Other Changes
- DOCSP-42794: Laravel Passport by @norareidy in #3113
- DOCSP-43115 - v4.8 compat by @mongoKart in #3125
- Update PR template by @GromNaN in #3121
- Remove MongoDBQueueServiceProvider in composer.json by @masterbater in #3131
- PHPORM-157 Remove
Blueprint::background()
by @GromNaN in #3132 - DOCSP-43158: carbon date values db query results by @rustagir in #3133
- PHPORM-236 Remove _id from query results by @GromNaN in #3136
- DOCSP-41335: Id field alias by @norareidy in #3042
- DOCSP-43172: Remove DatabaseTokenRepository class by @norareidy in #3130
New Contributors
- @masterbater made their first contribution in #3131
Full Changelog: 4.8.0...5.0.0-rc1
4.8.0
What's Changed
New Features
- Added two methods incrementEach and decrementEach by @SmallRuralDog in #2550
- PHPORM-232 Support whereLike and whereNotLike by @GromNaN in #3108
- Add ConnectionCount and DriverTitle for monitoring commands by @GromNaN in #3072
Fixed
- PHPORM-227 Fix single document upsert by @GromNaN in #3100
Other Changes
- PHPORM-219 Deprecate
Connection::collection()
andSchema::collection()
by @GromNaN in #3062 - PHPORM-220 Deprecate using the
$collection
property to customize the name by @GromNaN in #3064 - DOCSP-41680: Remove quick start buttons by @norareidy in #3081
- Fix wrong name for driver options in docs by @alcaeus in #3074
- Move code ownership for docs to Laravel Docs team by @alcaeus in #3090
- DOCSP-41621: upsert by @rustagir in #3089
- Fix missing bracket in config snippet by @hms5232 in #3095
- DOCSP-41741: incrementEach and decrementEach by @norareidy in #3088
- DOCSP-41557: New v4.7 commands and methods by @norareidy in #3084
- DOCSP-42155: adjust for updated source constants by @rustagir in #3110
- DOCSP-42818: wherelike and wherenotlike docs by @rustagir in #3114
New Contributors
- @SmallRuralDog made their first contribution in #2550
- @hms5232 made their first contribution in #3095
Full Changelog: 4.7.1...4.8.0
4.7.2
What's Changed
Fixed
- PHPORM-227 Fix single document upsert by @GromNaN in #3100
Other Changes
- DOCSP-41680: Remove quick start buttons by @norareidy in #3081
- Fix wrong name for driver options in docs by @alcaeus in #3074
- Move code ownership for docs to Laravel Docs team by @alcaeus in #3090
- DOCSP-41621: upsert by @rustagir in #3089
- DOCSP-41557: New v4.7 commands and methods by @norareidy in #3084
- DOCSP-42155: adjust for updated source constants by @rustagir in #3110
Full Changelog: 4.7.1...4.7.2
4.7.1
What's Changed
Fixed
- PHPORM-222 Register the
BusServiceProvider
whenBatchRepository
is built by @GromNaN in #3071
Full Changelog: 4.7.0...4.7.1
4.7.0
This release improves the compatibility with introspection features provided by Laravel (commands db:show
and db:table
) and the package barryvdh/laravel-ide-helper
.
What's Changed
New Features
- Add
Connection::getServerVersion()
by @GromNaN in #3043 - Add Schema
getTables()
by @GromNaN in #3044 - Add Schema
getColumns()
andgetIndexes()
by @GromNaN in #3045 - Add Schema
hasColumn()
andhasColumns()
method by @Alex-Belyi in #3001 - Add
Query\Builder::upsert()
by @GromNaN in #3053
Fixed
New Contributors
- @mcmorisi made their first contribution in #3036
- @Alex-Belyi made their first contribution in #3001
Full Changelog: 4.6.0...4.7.0