Skip to content

Latest commit

 

History

History
151 lines (108 loc) · 12 KB

CHANGELOG.md

File metadata and controls

151 lines (108 loc) · 12 KB

Changelog

All notable changes to this project will be documented in this file.

[4.3.0] - unreleased

  • New aggregation pipeline builder by @GromNaN in #2738
  • Drop support for Composer 1.x by @GromNaN in #2784
  • Fix artisan query:retry command by @GromNaN in #2838
  • Add mongodb cache and lock drivers by @GromNaN in #2877

[4.2.2] - 2024-04-25

  • Add return types to FindAndModifyCommandSubscriber, used by firstOrCreate by @wivaku in #2913

[4.2.1] - 2024-04-25

  • Set timestamps when using Model::createOrFirst() by @GromNaN in #2905

[4.2.0] - 2024-03-14

  • Add support for Laravel 11 by @GromNaN in #2735
  • Implement Model::createOrFirst() using findOneAndUpdate operation by @GromNaN in #2742

[4.1.3] - 2024-03-05

  • Fix the timezone of datetime fields when they are read from the database. By @GromNaN in #2739
  • Fix support for null values in datetime and reset date fields with custom format to the start of the day. By @GromNaN in #2741

[4.1.2] - 2024-02-22

  • Fix support for subqueries using the query builder by @GromNaN in #2717
  • Fix Query\Builder::dump and dd methods to dump the MongoDB query by @GromNaN in #2727 and #2730

[4.1.1] - 2024-01-17

[4.1.0] - 2023-12-14

[4.0.3] - 2024-01-17

[4.0.2] - 2023-11-03

  • Fix compatibility with Laravel 10.30 #2661 by @Treggats
  • PHPORM-101 Allow empty insert batch for consistency with Eloquent SQL #2661 by @GromNaN

4.0.1 skipped due to a mistake in the release process.

[4.0.0] - 2023-09-28

  • Rename package to mongodb/laravel-mongodb
  • Change namespace to MongoDB\Laravel
  • Add classes to cast ObjectId and UUID instances 5105553 by @alcaeus.
  • Add Query\Builder::toMql() to simplify comprehensive query tests ae3e0d5 by @GromNaN.
  • Fix Query\Builder::whereNot to use MongoDB $not operator e045fab by @GromNaN.
  • Fix Query\Builder::whereBetween to accept Carbon\Period object f729baa by @GromNaN.
  • Throw an exception for unsupported Query\Builder methods e1a83f4 by @GromNaN.
  • Throw an exception when Query\Builder::orderBy() is used with invalid direction edd0871 by @GromNaN.
  • Throw an exception when Query\Builder::push() is used incorrectly 19cf7a2 by @GromNaN.
  • Remove public property Query\Builder::$paginating e045fab by @GromNaN.
  • Remove call to deprecated Collection::count for countDocuments 4514964 by @GromNaN.
  • Accept operators prefixed by $ in Query\Builder::orWhere 0fb83af by @GromNaN.
  • Remove Query\Builder::whereAll($column, $values). Use Query\Builder::where($column, 'all', $values) instead. 1d74dc3 by @GromNaN.
  • Fix validation of unique values when the validated value is found as part of an existing value. d5f1bb9 by @GromNaN.
  • Support % and _ in like expression ea89e86 by @GromNaN.
  • Change signature of Query\Builder::__constructor to match the parent class #2570 by @GromNaN.
  • Fix Query on whereDate, whereDay, whereMonth, whereYear, whereTime to use MongoDB operators #2376 by @Davpyu and @GromNaN.
  • Model::unset() does not persist the change. Call Model::save() to persist the change #2578 by @GromNaN.
  • Support delete one document with Query\Builder::limit(1)->delete() #2591 by @GromNaN
  • Add trait MongoDB\Laravel\Eloquent\MassPrunable to replace the Eloquent trait on MongoDB models #2598 by @GromNaN

[3.9.2] - 2022-09-01

Added

Fixed

[3.9.1] - 2022-03-11

Added

Fixed

[3.9.0] - 2022-02-17

Added

[3.8.4] - 2021-05-27

Fixed

Changed

[3.8.3] - 2021-02-21

Changed

[3.8.2] - 2020-12-18

Changed

[3.8.1] - 2020-10-23

Added

Changed

[3.8.0] - 2020-09-03

Added

  • Laravel 8 support & updated versions of all dependencies #2108 by @divine.