Skip to content

Releases: mongodb/laravel-mongodb

v4.0.0-ALPHA2

31 Aug 15:22
ab02a25
Compare
Choose a tag to compare
v4.0.0-ALPHA2 Pre-release
Pre-release

This is a pre-version with Laravel 10.x support.

Please test on your project and report any issue.

Package is renamed mongodb/laravel-mongodb and namespace changed to MongoDB\Laravel.

Remaining issues:

  • Fix attribute vs relation priority #2577
  • Split documentation into multiple files PHPORM-31

What's Changed

  • Rename package to mongodb/laravel-mongodb
  • Change namespace to MongoDB\Laravel
  • Laravel 10 compatibility by @alcaeus in #2506
  • chore: improve docker tests by @divine in #2514
  • Update README.md by @abbasudo in #2512
  • Fix: remove incompatible return type by @saulens22 in #2517
  • fix Enums not being cast when calling Model::toArray() by @jeromegamez in #2522
  • Add classes to cast ObjectId and UUID instances #1 by @alcaeus.
  • Add Query\Builder::toMql() to simplify comprehensive query tests #6 by @GromNaN.
  • Fix Query\Builder::whereNot to use MongoDB $not operator #13 by @GromNaN.
  • Fix Query\Builder::whereBetween to accept Carbon\Period object #10 by @GromNaN.
  • Throw an exception for unsupported Query\Builder methods #9 by @GromNaN.
  • Throw an exception when Query\Builder::orderBy() is used with invalid direction #7 by @GromNaN.
  • Throw an exception when Query\Builder::push() is used incorrectly #5 by @GromNaN.
  • Remove public property Query\Builder::$paginating #15 by @GromNaN.
  • Remove call to deprecated Collection::count for countDocuments #18 by @GromNaN.
  • Accept operators prefixed by $ in Query\Builder::orWhere #20 by @GromNaN.
  • Remove Query\Builder::whereAll($column, $values). Use Query\Builder::where($column, 'all', $values) instead. #16 by @GromNaN.
  • Fix validation of unique values when the validated value is found as part of an existing value. #21 by @GromNaN.
  • Support % and _ in like expression #17 by @GromNaN.
  • Change signature of Query\Builder::__constructor to match the parent class #26 by @GromNaN.
  • Fix Query on whereDate, whereDay, whereMonth, whereYear, whereTime to use MongoDB operators #2570 by @Davpyu and @GromNaN.
  • Model::unset() does not persist the change. Call Model::save() to persist the change #2578 by @GromNaN.

New Contributors

Full Changelog: v3.9.5...v4.0.0-ALPHA2

Note: an old tag4.0.0-alpha.1 was created 3 years ago and should not be used.

v3.9.5

16 Feb 12:23
6ce35ac
Compare
Choose a tag to compare

Fixed:

  • Use the correct package name when looking up the version by @alcaeus in #2511

Full Changelog: v3.9.4...v3.9.5

v3.9.4

11 Feb 07:33
0b03010
Compare
Choose a tag to compare

Added:

  • Report package version when establishing connection by @alcaeus in #2507

Full Changelog: 3.9.3...v3.9.4

v3.9.3

16 Jan 20:29
098347c
Compare
Choose a tag to compare

Added:

Fixed:

v3.9.2

01 Sep 13:22
61cc6ed
Compare
Choose a tag to compare

Added

Fixed

v3.8.5

14 Jul 05:15
24a8fb9
Compare
Choose a tag to compare

Added

Fixed

v3.9.1

30 Jun 01:09
ad4422a
Compare
Choose a tag to compare

Added

Fixed

v3.9.0

17 Feb 10:21
1e49c5e
Compare
Choose a tag to compare

For Laravel related changes, please check https://laravel.com/docs/9.x/upgrade

Release 3.8.4

27 May 07:01
6aa6ad1
Compare
Choose a tag to compare
  • Add doesntExist to passthru #2194
  • Fix getRelationQuery breaking changes #2263
  • Add Model query whereDate support #2251
  • Add transaction free deleteAndRelease() method #2229
  • Add setDatabase to Jenssegers\Mongodb\Connection #2236
  • Check dates against DateTimeInterface instead of DateTime #2239
  • Move from psr-0 to psr-4 #2247
  • Apply fixes produced by php-cs-fixer #2250

v3.8.3

21 Feb 06:23
09fcda8
Compare
Choose a tag to compare