baryonsoft / overleaf

GNU Affero General Public License v3.0
0 stars 0 forks source link

Update dependency mongoose to v7 #193

Closed renovate[bot] closed 1 year ago

renovate[bot] commented 1 year ago

Mend Renovate

This PR contains the following updates:

Package Change Age Adoption Passing Confidence
mongoose (source) ^6.11.4 -> ^7.0.0 age adoption passing confidence

Release Notes

Automattic/mongoose (mongoose) ### [`v7.5.1`](https://togithub.com/Automattic/mongoose/blob/HEAD/CHANGELOG.md#751--2023-09-11) [Compare Source](https://togithub.com/Automattic/mongoose/compare/7.5.0...7.5.1) \================== - fix: set default value for \_update when no update object is provided and versionKey is set to false [#​13795](https://togithub.com/Automattic/mongoose/issues/13795) [#​13783](https://togithub.com/Automattic/mongoose/issues/13783) [MohOraby](https://togithub.com/MohOraby) - fix: avoid unexpected error when accessing null array element on discriminator array when populating [#​13716](https://togithub.com/Automattic/mongoose/issues/13716) [ZSabakh](https://togithub.com/ZSabakh) - types(schematypes): use DocType for instance method this [#​13822](https://togithub.com/Automattic/mongoose/issues/13822) [#​13800](https://togithub.com/Automattic/mongoose/issues/13800) [pshaddel](https://togithub.com/pshaddel) - types: remove duplicated 'exists' method in Model interface in models.d.ts [#​13818](https://togithub.com/Automattic/mongoose/issues/13818) [ohzeno](https://togithub.com/ohzeno) - docs(model): replace outdated docs on deprecated findOneAndUpdate() overwrite option [#​13821](https://togithub.com/Automattic/mongoose/issues/13821) [#​13715](https://togithub.com/Automattic/mongoose/issues/13715) - docs: add example of using `virtuals.pathsToSkip` option for `toObject()` and `toJSON()` [#​13798](https://togithub.com/Automattic/mongoose/issues/13798) [RobertHunter-Pluto](https://togithub.com/RobertHunter-Pluto) ### [`v7.5.0`](https://togithub.com/Automattic/mongoose/blob/HEAD/CHANGELOG.md#750--2023-08-29) [Compare Source](https://togithub.com/Automattic/mongoose/compare/7.4.5...7.5.0) \================== - feat: use mongodb driver v5.18.1 - feat: allow top level dollar keys with findOneAndUpdate(), update() for MongoDB 5 [#​13786](https://togithub.com/Automattic/mongoose/issues/13786) - fix(document): make array getters avoid unintentionally modifying array, defer getters until index access instead [#​13774](https://togithub.com/Automattic/mongoose/issues/13774) - feat: deprecate `overwrite` option for findOneAndUpdate() [#​13578](https://togithub.com/Automattic/mongoose/issues/13578) - feat: add pathsToSkip option for Model.validate [#​13663](https://togithub.com/Automattic/mongoose/issues/13663) [#​10353](https://togithub.com/Automattic/mongoose/issues/10353) - feat: support alias when declaring index [#​13659](https://togithub.com/Automattic/mongoose/issues/13659) [#​13276](https://togithub.com/Automattic/mongoose/issues/13276) - fix(query): remove unnecessary check for atomic operators in findOneAndReplace() [#​13678](https://togithub.com/Automattic/mongoose/issues/13678) - types: add SearchMeta Interface for Atlas Search [#​13792](https://togithub.com/Automattic/mongoose/issues/13792) [mreouven](https://togithub.com/mreouven) - types(schematypes): add missing BigInt SchemaType [#​13787](https://togithub.com/Automattic/mongoose/issues/13787) ### [`v7.4.5`](https://togithub.com/Automattic/mongoose/blob/HEAD/CHANGELOG.md#745--2023-08-25) [Compare Source](https://togithub.com/Automattic/mongoose/compare/7.4.4...7.4.5) \================== - fix(debug): avoid putting virtuals and getters in debug output [#​13778](https://togithub.com/Automattic/mongoose/issues/13778) - fix(model): make Model.bulkWrite() with empty array and ordered false not throw an error [#​13664](https://togithub.com/Automattic/mongoose/issues/13664) - fix(document): correctly handle inclusive/exclusive projections when applying subdocument defaults [#​13763](https://togithub.com/Automattic/mongoose/issues/13763) [#​13720](https://togithub.com/Automattic/mongoose/issues/13720) ### [`v7.4.4`](https://togithub.com/Automattic/mongoose/blob/HEAD/CHANGELOG.md#744--2023-08-22) [Compare Source](https://togithub.com/Automattic/mongoose/compare/7.4.3...7.4.4) \================== - fix(connection): reset document state in between transaction retries [#​13726](https://togithub.com/Automattic/mongoose/issues/13726) [#​13698](https://togithub.com/Automattic/mongoose/issues/13698) - fix(cursor): bubble up resumeTokenChanged event from change streams [#​13736](https://togithub.com/Automattic/mongoose/issues/13736) [#​13607](https://togithub.com/Automattic/mongoose/issues/13607) - fix(query+populate): add refPath to projection by default, unless explicitly excluded [#​13758](https://togithub.com/Automattic/mongoose/issues/13758) - fix(schema): support 'ascending', 'asc', 'descending', 'desc' for index direction [#​13761](https://togithub.com/Automattic/mongoose/issues/13761) [#​13725](https://togithub.com/Automattic/mongoose/issues/13725) - fix(ChangeStream): add \_bindEvents to addListener function for observable support [#​13759](https://togithub.com/Automattic/mongoose/issues/13759) [yury-ivaniutsenka](https://togithub.com/yury-ivaniutsenka) - types: infer return type when using `get()`, `markModified()`, etc. with known property name literal [#​13739](https://togithub.com/Automattic/mongoose/issues/13739) [maybesmurf](https://togithub.com/maybesmurf) - types: add missing typings for option includeResultMetadata [#​13747](https://togithub.com/Automattic/mongoose/issues/13747) [#​13746](https://togithub.com/Automattic/mongoose/issues/13746) [Idnan](https://togithub.com/Idnan) - types: export InferSchemaType [#​13737](https://togithub.com/Automattic/mongoose/issues/13737) - docs(middleware): clarify that query middleware applies to document by default [#​13734](https://togithub.com/Automattic/mongoose/issues/13734) [#​13713](https://togithub.com/Automattic/mongoose/issues/13713) - docs: add brief note on TypeScript generic usage for embedded discriminator path() calls [#​13728](https://togithub.com/Automattic/mongoose/issues/13728) [#​10435](https://togithub.com/Automattic/mongoose/issues/10435) - docs: link v7 migration guide [#​13742](https://togithub.com/Automattic/mongoose/issues/13742) [Cooldogyum](https://togithub.com/Cooldogyum) - docs(migrating_to\_6): add note about incompatible packages [#​13733](https://togithub.com/Automattic/mongoose/issues/13733) ### [`v7.4.3`](https://togithub.com/Automattic/mongoose/blob/HEAD/CHANGELOG.md#743--2023-08-11) [Compare Source](https://togithub.com/Automattic/mongoose/compare/7.4.2...7.4.3) \================== - fix: avoid applying map property getters when saving [#​13704](https://togithub.com/Automattic/mongoose/issues/13704) [#​13657](https://togithub.com/Automattic/mongoose/issues/13657) - fix(query): allow deselecting discriminator key [#​13722](https://togithub.com/Automattic/mongoose/issues/13722) [#​13679](https://togithub.com/Automattic/mongoose/issues/13679) - types(models+query): return lean type when passing QueryOptions with lean: true to relevant model functions like find() and findOne() [#​13721](https://togithub.com/Automattic/mongoose/issues/13721) [#​13705](https://togithub.com/Automattic/mongoose/issues/13705) - types(schema): correct return type for Schema.prototype.indexes() [#​13718](https://togithub.com/Automattic/mongoose/issues/13718) [#​13702](https://togithub.com/Automattic/mongoose/issues/13702) - types: allow accessing options from pre middleware [#​13708](https://togithub.com/Automattic/mongoose/issues/13708) [#​13633](https://togithub.com/Automattic/mongoose/issues/13633) - types: add UpdateQueryKnownOnly type for stricter UpdateQuery type checking [#​13699](https://togithub.com/Automattic/mongoose/issues/13699) [#​13630](https://togithub.com/Automattic/mongoose/issues/13630) - types(schema): support required: { isRequired: true } syntax in schema definition [#​13680](https://togithub.com/Automattic/mongoose/issues/13680) - docs(middleware): clarify that doc.deleteOne() doesn't run query middleware currently [#​13707](https://togithub.com/Automattic/mongoose/issues/13707) [#​13669](https://togithub.com/Automattic/mongoose/issues/13669) ### [`v7.4.2`](https://togithub.com/Automattic/mongoose/blob/HEAD/CHANGELOG.md#742--2023-08-03) [Compare Source](https://togithub.com/Automattic/mongoose/compare/7.4.1...7.4.2) \================== - fix(model): avoid hanging on empty bulkWrite() with ordered: false [#​13684](https://togithub.com/Automattic/mongoose/issues/13684) [#​13664](https://togithub.com/Automattic/mongoose/issues/13664) - fix: Document.prototype.isModified support for a string of keys as first parameter [#​13674](https://togithub.com/Automattic/mongoose/issues/13674) [#​13667](https://togithub.com/Automattic/mongoose/issues/13667) [gastoncasini](https://togithub.com/gastoncasini) - fix: disable id virtual if alias:id set [#​13654](https://togithub.com/Automattic/mongoose/issues/13654) [#​13650](https://togithub.com/Automattic/mongoose/issues/13650) - fix: support timestamps:false on bulkWrite with updateOne and updateMany [#​13649](https://togithub.com/Automattic/mongoose/issues/13649) [#​13611](https://togithub.com/Automattic/mongoose/issues/13611) - docs(typescript): highlight auto type inference for methods and statics, add info on using methods with generics [#​13696](https://togithub.com/Automattic/mongoose/issues/13696) [#​12942](https://togithub.com/Automattic/mongoose/issues/12942) - docs(middleware): fix old example using post('remove') [#​13683](https://togithub.com/Automattic/mongoose/issues/13683) [#​13518](https://togithub.com/Automattic/mongoose/issues/13518) - docs(deprecations): quick fix for includeResultMetadata docs [#​13695](https://togithub.com/Automattic/mongoose/issues/13695) ### [`v7.4.1`](https://togithub.com/Automattic/mongoose/blob/HEAD/CHANGELOG.md#741--2023-07-24) [Compare Source](https://togithub.com/Automattic/mongoose/compare/7.4.0...7.4.1) \================== - fix(document): correctly clean up nested subdocs modified state on save() [#​13644](https://togithub.com/Automattic/mongoose/issues/13644) [#​13609](https://togithub.com/Automattic/mongoose/issues/13609) - fix(schema): avoid propagating toObject.transform and toJSON.transform option to implicitly created schemas [#​13634](https://togithub.com/Automattic/mongoose/issues/13634) [#​13599](https://togithub.com/Automattic/mongoose/issues/13599) - fix: prevent schema options overwriting user defined writeConcern [#​13612](https://togithub.com/Automattic/mongoose/issues/13612) [#​13592](https://togithub.com/Automattic/mongoose/issues/13592) - types: correctly handle pre('deleteOne', { document: true }) [#​13632](https://togithub.com/Automattic/mongoose/issues/13632) - types(schema): handle type: Schema.Types.Map in TypeScript [#​13628](https://togithub.com/Automattic/mongoose/issues/13628) - types: Add inline comment to to tell the default value of the runValidator flag in the queryOptions types [#​13636](https://togithub.com/Automattic/mongoose/issues/13636) [omran95](https://togithub.com/omran95) - docs: rework several code examples that still use callbacks [#​13635](https://togithub.com/Automattic/mongoose/issues/13635) [#​13616](https://togithub.com/Automattic/mongoose/issues/13616) - docs: remove callbacks from validation description [#​13638](https://togithub.com/Automattic/mongoose/issues/13638) [#​13501](https://togithub.com/Automattic/mongoose/issues/13501) ### [`v7.4.0`](https://togithub.com/Automattic/mongoose/blob/HEAD/CHANGELOG.md#740--2023-07-18) [Compare Source](https://togithub.com/Automattic/mongoose/compare/7.3.4...7.4.0) \================== - perf: speed up mapOfSubdocs benchmark by 4x by avoiding unnecessary O(n^2) loop in getPathsToValidate() [#​13614](https://togithub.com/Automattic/mongoose/issues/13614) - feat: upgrade to MongoDB Node.js driver 5.7.0 [#​13591](https://togithub.com/Automattic/mongoose/issues/13591) - feat: support generating custom cast error message with a function [#​13608](https://togithub.com/Automattic/mongoose/issues/13608) [#​3162](https://togithub.com/Automattic/mongoose/issues/3162) - feat(query): support MongoDB driver's includeResultMetadata option for findOneAndUpdate [#​13584](https://togithub.com/Automattic/mongoose/issues/13584) [#​13539](https://togithub.com/Automattic/mongoose/issues/13539) - feat(connection): add Connection.prototype.removeDb() for removing a related connection [#​13580](https://togithub.com/Automattic/mongoose/issues/13580) [#​11821](https://togithub.com/Automattic/mongoose/issues/11821) - feat(query): delay converting documents into POJOs until query execution, allow querying subdocuments with defaults disabled [#​13522](https://togithub.com/Automattic/mongoose/issues/13522) - feat(model): add option "aggregateErrors" for create() [#​13544](https://togithub.com/Automattic/mongoose/issues/13544) [hasezoey](https://togithub.com/hasezoey) - feat(schema): add collectionOptions option to schemas [#​13513](https://togithub.com/Automattic/mongoose/issues/13513) - fix: move all MongoDB-specific connection logic into driver layer, add createClient() method to handle creating MongoClient [#​13542](https://togithub.com/Automattic/mongoose/issues/13542) - fix(document): allow setting keys with dots in mixed paths underneath nested paths [#​13536](https://togithub.com/Automattic/mongoose/issues/13536) - types: augment bson.ObjectId instead of adding on own type [#​13515](https://togithub.com/Automattic/mongoose/issues/13515) [#​12537](https://togithub.com/Automattic/mongoose/issues/12537) [hasezoey](https://togithub.com/hasezoey) - docs(guide): fix md lint [#​13593](https://togithub.com/Automattic/mongoose/issues/13593) [hasezoey](https://togithub.com/hasezoey) - docs: changed the code from 'await author.save()' to 'await story1.save()' [#​13596](https://togithub.com/Automattic/mongoose/issues/13596) [SomSingh23](https://togithub.com/SomSingh23) ### [`v7.3.4`](https://togithub.com/Automattic/mongoose/releases/tag/7.3.4) [Compare Source](https://togithub.com/Automattic/mongoose/compare/7.3.3...7.3.4) # 7.3.4 / 2023-07-12 - chore: release 7.4.4 to overwrite accidental publish of 5.13.20 to latest tag ### [`v7.3.3`](https://togithub.com/Automattic/mongoose/blob/HEAD/CHANGELOG.md#733--2023-07-10) [Compare Source](https://togithub.com/Automattic/mongoose/compare/7.3.2...7.3.3) \================== - fix: avoid prototype pollution on init - fix(document): clean up all array subdocument modified paths on save() [#​13589](https://togithub.com/Automattic/mongoose/issues/13589) [#​13582](https://togithub.com/Automattic/mongoose/issues/13582) - types: avoid unnecessary MergeType<> if TOverrides not set, clean up statics and insertMany() type issues [#​13577](https://togithub.com/Automattic/mongoose/issues/13577) [#​13529](https://togithub.com/Automattic/mongoose/issues/13529) ### [`v7.3.2`](https://togithub.com/Automattic/mongoose/blob/HEAD/CHANGELOG.md#732--2023-07-06) [Compare Source](https://togithub.com/Automattic/mongoose/compare/7.3.1...7.3.2) \================== - fix(model): avoid TypeError if insertMany() fails with error that does not have writeErrors property [#​13579](https://togithub.com/Automattic/mongoose/issues/13579) [#​13531](https://togithub.com/Automattic/mongoose/issues/13531) - fix(query): convert findOneAndUpdate to findOneAndReplace when overwrite set for backwards compat with Mongoose 6 [#​13572](https://togithub.com/Automattic/mongoose/issues/13572) [#​13550](https://togithub.com/Automattic/mongoose/issues/13550) - fix(query): throw readable error when executing a Query instance without an associated model [#​13571](https://togithub.com/Automattic/mongoose/issues/13571) [#​13570](https://togithub.com/Automattic/mongoose/issues/13570) - types: support mongoose.Schema.ObjectId as alias for mongoose.Schema.Types.ObjectId [#​13543](https://togithub.com/Automattic/mongoose/issues/13543) [#​13534](https://togithub.com/Automattic/mongoose/issues/13534) - docs(connections): clarify that socketTimeoutMS now defaults to 0 [#​13576](https://togithub.com/Automattic/mongoose/issues/13576) [#​13537](https://togithub.com/Automattic/mongoose/issues/13537) - docs(migrating_to\_7): add mapReduce() removal to migration guide [#​13568](https://togithub.com/Automattic/mongoose/issues/13568) [#​13548](https://togithub.com/Automattic/mongoose/issues/13548) - docs(schemas): fix typo in schemas.md [#​13540](https://togithub.com/Automattic/mongoose/issues/13540) [Metehan-Altuntekin](https://togithub.com/Metehan-Altuntekin) ### [`v7.3.1`](https://togithub.com/Automattic/mongoose/blob/HEAD/CHANGELOG.md#731--2023-06-21) [Compare Source](https://togithub.com/Automattic/mongoose/compare/7.3.0...7.3.1) \================== - fix(query): respect query-level strict option on findOneAndReplace() [#​13516](https://togithub.com/Automattic/mongoose/issues/13516) [#​13507](https://togithub.com/Automattic/mongoose/issues/13507) - docs(connections): expand docs on serverSelectionTimeoutMS [#​13533](https://togithub.com/Automattic/mongoose/issues/13533) [#​12967](https://togithub.com/Automattic/mongoose/issues/12967) - docs: add example of accessing save options in pre save [#​13498](https://togithub.com/Automattic/mongoose/issues/13498) - docs(connections+faq): add info on localhost vs 127.0.0.1 - docs(SchemaType): validate members are validator & message (not msg) [#​13521](https://togithub.com/Automattic/mongoose/issues/13521) [lorand-horvath](https://togithub.com/lorand-horvath) ### [`v7.3.0`](https://togithub.com/Automattic/mongoose/blob/HEAD/CHANGELOG.md#730--2023-06-14) [Compare Source](https://togithub.com/Automattic/mongoose/compare/7.2.4...7.3.0) \================== - feat: upgrade mongodb -> 5.6.0 [#​13455](https://togithub.com/Automattic/mongoose/issues/13455) [lorand-horvath](https://togithub.com/lorand-horvath) - feat(aggregate): add Aggregate.prototype.finally() to be consistent with Promise API for TypeScript [#​13509](https://togithub.com/Automattic/mongoose/issues/13509) - feat(schema): support selecting subset of fields to apply optimistic concurrency to [#​13506](https://togithub.com/Automattic/mongoose/issues/13506) [#​10591](https://togithub.com/Automattic/mongoose/issues/10591) - feat(model): add `ordered` option to `Model.create()` [#​13472](https://togithub.com/Automattic/mongoose/issues/13472) [#​4038](https://togithub.com/Automattic/mongoose/issues/4038) - feat(schema): consistently add .get() function to all SchemaType classes - feat(populate): pass virtual to match function to allow merging match options [#​13477](https://togithub.com/Automattic/mongoose/issues/13477) [#​12443](https://togithub.com/Automattic/mongoose/issues/12443) - types: allow overwriting Paths in select() to tell TypeScript which fields are projected [#​13478](https://togithub.com/Automattic/mongoose/issues/13478) [#​13224](https://togithub.com/Automattic/mongoose/issues/13224) - types(schema): add validateModifiedOnly as schema option [#​13503](https://togithub.com/Automattic/mongoose/issues/13503) [#​10153](https://togithub.com/Automattic/mongoose/issues/10153) - docs: add note about validateModifiedOnly as a schema option [#​13503](https://togithub.com/Automattic/mongoose/issues/13503) [#​10153](https://togithub.com/Automattic/mongoose/issues/10153) - docs(migrating_to\_7): update migrating_to\_7.md to include Model.countDocuments [#​13508](https://togithub.com/Automattic/mongoose/issues/13508) [Climax777](https://togithub.com/Climax777) - docs(further_reading): remove style for "img" [hasezoey](https://togithub.com/hasezoey) ### [`v7.2.4`](https://togithub.com/Automattic/mongoose/blob/HEAD/CHANGELOG.md#724--2023-06-12) [Compare Source](https://togithub.com/Automattic/mongoose/compare/7.2.3...7.2.4) \================== - fix(query): handle non-string discriminator key values in query [#​13496](https://togithub.com/Automattic/mongoose/issues/13496) [#​13492](https://togithub.com/Automattic/mongoose/issues/13492) ### [`v7.2.3`](https://togithub.com/Automattic/mongoose/blob/HEAD/CHANGELOG.md#723--2023-06-09) [Compare Source](https://togithub.com/Automattic/mongoose/compare/7.2.2...7.2.3) \================== - fix(model): ignore falsy last argument to create() for backwards compatibility [#​13493](https://togithub.com/Automattic/mongoose/issues/13493) [#​13491](https://togithub.com/Automattic/mongoose/issues/13491) [#​13487](https://togithub.com/Automattic/mongoose/issues/13487) [MohOraby](https://togithub.com/MohOraby) - types: remove generic param that's causing issues for typegoose [#​13494](https://togithub.com/Automattic/mongoose/issues/13494) [#​13482](https://togithub.com/Automattic/mongoose/issues/13482) - types(aggregate): allow object syntax for $mergeObjects [#​13470](https://togithub.com/Automattic/mongoose/issues/13470) [#​13060](https://togithub.com/Automattic/mongoose/issues/13060) - docs(connection): clarify how Connection.prototype.destroy() is different from close() [#​13475](https://togithub.com/Automattic/mongoose/issues/13475) - docs(populate): fix accidental removal of text [#​13480](https://togithub.com/Automattic/mongoose/issues/13480) - docs: add additional notes for Atlas X.509 authentication [#​13452](https://togithub.com/Automattic/mongoose/issues/13452) [alexbevi](https://togithub.com/alexbevi) - docs(populate): add a little more info on why we recommend using ObjectId for \_id [#​13474](https://togithub.com/Automattic/mongoose/issues/13474) [#​13400](https://togithub.com/Automattic/mongoose/issues/13400) ### [`v7.2.2`](https://togithub.com/Automattic/mongoose/blob/HEAD/CHANGELOG.md#722--2023-05-30) [Compare Source](https://togithub.com/Automattic/mongoose/compare/7.2.1...7.2.2) \================== - fix(schema): make bulkWrite updateOne() and updateMany() respect timestamps option when set by merging schemas [#​13445](https://togithub.com/Automattic/mongoose/issues/13445) - fix(schema): recursively copy schemas from different modules when calling new Schema() [#​13441](https://togithub.com/Automattic/mongoose/issues/13441) [#​13275](https://togithub.com/Automattic/mongoose/issues/13275) - fix(update): allow setting paths with dots under non-strict paths [#​13450](https://togithub.com/Automattic/mongoose/issues/13450) [#​13434](https://togithub.com/Automattic/mongoose/issues/13434) - types: improve function parameter types for ToObjectOptions transform option [#​13446](https://togithub.com/Automattic/mongoose/issues/13446) [#​13421](https://togithub.com/Automattic/mongoose/issues/13421) - docs: add nextjs page with link to next starter app and couple FAQs [#​13444](https://togithub.com/Automattic/mongoose/issues/13444) [#​13430](https://togithub.com/Automattic/mongoose/issues/13430) - docs(connections): add section on multi tenant [#​13449](https://togithub.com/Automattic/mongoose/issues/13449) [#​11187](https://togithub.com/Automattic/mongoose/issues/11187) - docs(connection+model): expand docs on accessors for underlying collections [#​13448](https://togithub.com/Automattic/mongoose/issues/13448) [#​13334](https://togithub.com/Automattic/mongoose/issues/13334) ### [`v7.2.1`](https://togithub.com/Automattic/mongoose/blob/HEAD/CHANGELOG.md#721--2023-05-24) [Compare Source](https://togithub.com/Automattic/mongoose/compare/7.2.0...7.2.1) \================== - fix(array): track correct changes when setting nested array of primitives [#​13422](https://togithub.com/Automattic/mongoose/issues/13422) [#​13372](https://togithub.com/Automattic/mongoose/issues/13372) - fix(query): handle plus path in projection with findOneAndUpdate() [#​13437](https://togithub.com/Automattic/mongoose/issues/13437) [#​13413](https://togithub.com/Automattic/mongoose/issues/13413) - fix(cursor): handle calling skipMiddlewareFunction() in pre('find') middleware with cursors [#​13436](https://togithub.com/Automattic/mongoose/issues/13436) [#​13411](https://togithub.com/Automattic/mongoose/issues/13411) - fix(model): include inspect output in castBulkWrite() error [#​13426](https://togithub.com/Automattic/mongoose/issues/13426) - fix: avoid setting null property when updating using update pipeline with child timestamps but no top-level timestamps [#​13427](https://togithub.com/Automattic/mongoose/issues/13427) [#​13379](https://togithub.com/Automattic/mongoose/issues/13379) - docs: remove callback based examples [#​13433](https://togithub.com/Automattic/mongoose/issues/13433) [#​13401](https://togithub.com/Automattic/mongoose/issues/13401) - docs(connections): add details about keepAlive deprecation [#​13431](https://togithub.com/Automattic/mongoose/issues/13431) - docs: add list of supported patterns for error message templating [#​13425](https://togithub.com/Automattic/mongoose/issues/13425) [#​13311](https://togithub.com/Automattic/mongoose/issues/13311) ### [`v7.2.0`](https://togithub.com/Automattic/mongoose/blob/HEAD/CHANGELOG.md#720--2023-05-19) [Compare Source](https://togithub.com/Automattic/mongoose/compare/7.1.2...7.2.0) \================== - feat: upgrade mongodb -> 5.5.0 - feat(document): add flattenObjectIds option to toObject() and toJSON() [#​13383](https://togithub.com/Automattic/mongoose/issues/13383) [#​13341](https://togithub.com/Automattic/mongoose/issues/13341) - feat(query): add translateAliases option to automatically call translate aliases on query fields [#​13397](https://togithub.com/Automattic/mongoose/issues/13397) [#​8678](https://togithub.com/Automattic/mongoose/issues/8678) [#​7511](https://togithub.com/Automattic/mongoose/issues/7511) - feat(schema): propagate toObject and toJSON options to implicitly created schemas [#​13325](https://togithub.com/Automattic/mongoose/issues/13325) - feat(model): add throwOnValidationError option for opting into getting MongooseBulkWriteError if all valid operations succeed in bulkWrite() and insertMany() [#​13410](https://togithub.com/Automattic/mongoose/issues/13410) [#​13256](https://togithub.com/Automattic/mongoose/issues/13256) - feat(types+mongoose): export MongooseError [#​13403](https://togithub.com/Automattic/mongoose/issues/13403) [#​13387](https://togithub.com/Automattic/mongoose/issues/13387) [ramos-ph](https://togithub.com/ramos-ph) ### [`v7.1.2`](https://togithub.com/Automattic/mongoose/blob/HEAD/CHANGELOG.md#712--2023-05-18) [Compare Source](https://togithub.com/Automattic/mongoose/compare/7.1.1...7.1.2) \================== - fix: set timestamps on single nested subdoc in insertMany() [#​13416](https://togithub.com/Automattic/mongoose/issues/13416) [#​13343](https://togithub.com/Automattic/mongoose/issues/13343) - fix: mention model name in missing virtual option in getModelsMapForPopulate [#​13408](https://togithub.com/Automattic/mongoose/issues/13408) [#​13406](https://togithub.com/Automattic/mongoose/issues/13406) [hasezoey](https://togithub.com/hasezoey) - fix: custom debug function not processing all args [#​13418](https://togithub.com/Automattic/mongoose/issues/13418) [#​13364](https://togithub.com/Automattic/mongoose/issues/13364) - docs: add virtuals schema options [#​13407](https://togithub.com/Automattic/mongoose/issues/13407) [hasezoey](https://togithub.com/hasezoey) - docs: clarify `JSON.stringify()` virtuals docs [#​13273](https://togithub.com/Automattic/mongoose/issues/13273) [iatenine](https://togithub.com/iatenine) ### [`v7.1.1`](https://togithub.com/Automattic/mongoose/blob/HEAD/CHANGELOG.md#711--2023-05-10) [Compare Source](https://togithub.com/Automattic/mongoose/compare/7.1.0...7.1.1) \================== - fix(document): handle set() from top-level underneath a map of mixed [#​13386](https://togithub.com/Automattic/mongoose/issues/13386) - fix: don't modify passed options object to `createConnection()` [#​13376](https://togithub.com/Automattic/mongoose/issues/13376) - types: make lean() not clobber result type for updateOne(), etc. [#​13389](https://togithub.com/Automattic/mongoose/issues/13389) [#​13382](https://togithub.com/Automattic/mongoose/issues/13382) - types: handle union types in FlattenMaps [#​13368](https://togithub.com/Automattic/mongoose/issues/13368) [#​13346](https://togithub.com/Automattic/mongoose/issues/13346) [Jokero](https://togithub.com/Jokero) - types(document): correct return type for Model.prototype.deleteOne(): promise, not query [#​13367](https://togithub.com/Automattic/mongoose/issues/13367) [#​13223](https://togithub.com/Automattic/mongoose/issues/13223) - types: update document.d.ts $set function params to match set [#​13304](https://togithub.com/Automattic/mongoose/issues/13304) [jeffersonlipsky](https://togithub.com/jeffersonlipsky) - docs: add excludeIndexes to the guide schema options list [#​13377](https://togithub.com/Automattic/mongoose/issues/13377) [#​13287](https://togithub.com/Automattic/mongoose/issues/13287) - docs: fix broken "fork me" on home page [#​13336](https://togithub.com/Automattic/mongoose/issues/13336) ### [`v7.1.0`](https://togithub.com/Automattic/mongoose/blob/HEAD/CHANGELOG.md#710--2023-04-27) [Compare Source](https://togithub.com/Automattic/mongoose/compare/7.0.5...7.1.0) \================== - feat: upgrade mongodb -> 5.3.0 - feat(schema): add BigInt support, upgrade mongodb -> 5.3.0 [#​13318](https://togithub.com/Automattic/mongoose/issues/13318) [#​13081](https://togithub.com/Automattic/mongoose/issues/13081) [#​6936](https://togithub.com/Automattic/mongoose/issues/6936) - feat: handle MongoDB's new UUID type, export mongoose.Types.UUID [#​13323](https://togithub.com/Automattic/mongoose/issues/13323) [#​13103](https://togithub.com/Automattic/mongoose/issues/13103) - feat: implement createCollections() [#​13324](https://togithub.com/Automattic/mongoose/issues/13324) - feat(query): add isPathSelectedInclusive function on query [#​13177](https://togithub.com/Automattic/mongoose/issues/13177) - types: added overloads for Schema.pre/post with different values for SchemaPreOptions [#​12680](https://togithub.com/Automattic/mongoose/issues/12680) [jpilgrim](https://togithub.com/jpilgrim) - types(query): make lean() flatten out inferred maps into Record\ [#​13326](https://togithub.com/Automattic/mongoose/issues/13326) [#​13010](https://togithub.com/Automattic/mongoose/issues/13010) - docs: update README deno url [#​13332](https://togithub.com/Automattic/mongoose/issues/13332) - docs: update jsdoc to use full URLs instead of non-prefix absolute urls (also fix some urls) [#​13328](https://togithub.com/Automattic/mongoose/issues/13328) [hasezoey](https://togithub.com/hasezoey) - docs: reload api js files on change [#​13313](https://togithub.com/Automattic/mongoose/issues/13313) [hasezoey](https://togithub.com/hasezoey) - docs: update website sidebar to be better use-able [#​13321](https://togithub.com/Automattic/mongoose/issues/13321) [hasezoey](https://togithub.com/hasezoey) - docs: fix schematype [@​see](https://togithub.com/see) links [#​13310](https://togithub.com/Automattic/mongoose/issues/13310) [hasezoey](https://togithub.com/hasezoey) - docs(subdocuments): remove callback usage, use deleteOne() rather than remove() re: [#​13284](https://togithub.com/Automattic/mongoose/issues/13284) [#​13316](https://togithub.com/Automattic/mongoose/issues/13316) ### [`v7.0.5`](https://togithub.com/Automattic/mongoose/blob/HEAD/CHANGELOG.md#705--2023-04-24) [Compare Source](https://togithub.com/Automattic/mongoose/compare/7.0.4...7.0.5) \================== - fix(schema): correctly handle uuids with populate() [#​13317](https://togithub.com/Automattic/mongoose/issues/13317) [#​13267](https://togithub.com/Automattic/mongoose/issues/13267) - fix(schema): add clusteredIndex to schema options [#​13286](https://togithub.com/Automattic/mongoose/issues/13286) [jakesjews](https://togithub.com/jakesjews) - fix(document): use collection.findOne() for saving docs with no changes to avoid firing findOne middleware [#​13298](https://togithub.com/Automattic/mongoose/issues/13298) - types(schema): avoid circular constraint in TSchemaOptions with --incremental by deferring ResolveSchemaOptions<> [#​13291](https://togithub.com/Automattic/mongoose/issues/13291) [#​13129](https://togithub.com/Automattic/mongoose/issues/13129) - docs(subdocs): fix mention of subdocument ".remove" function [#​13312](https://togithub.com/Automattic/mongoose/issues/13312) [hasezoey](https://togithub.com/hasezoey) - docs: add mongoose.Promise removal to migrating to 7 guide [#​13295](https://togithub.com/Automattic/mongoose/issues/13295) - docs: updated formatting of Error Handling section to better highlight the two kinds of possible errors [#​13279](https://togithub.com/Automattic/mongoose/issues/13279) [Ankit-Mandal](https://togithub.com/Ankit-Mandal) - docs: fix broken link [#​13301](https://togithub.com/Automattic/mongoose/issues/13301) [#​13281](https://togithub.com/Automattic/mongoose/issues/13281) ### [`v7.0.4`](https://togithub.com/Automattic/mongoose/blob/HEAD/CHANGELOG.md#704--2023-04-17) [Compare Source](https://togithub.com/Automattic/mongoose/compare/7.0.3...7.0.4) \================== - fix(schema): fix dangling reference to virtual in tree after removeVirtual() [#​13255](https://togithub.com/Automattic/mongoose/issues/13255) [#​13085](https://togithub.com/Automattic/mongoose/issues/13085) - fix(query): cast query filters on `findOneAndUpdate()` [#​13220](https://togithub.com/Automattic/mongoose/issues/13220) [#​13219](https://togithub.com/Automattic/mongoose/issues/13219) [dermasmid](https://togithub.com/dermasmid) - types(model): aligned watch() type for mongodb 4.6.0 [#​13208](https://togithub.com/Automattic/mongoose/issues/13208) [#​13206](https://togithub.com/Automattic/mongoose/issues/13206) - docs: fix async function anchors [#​13226](https://togithub.com/Automattic/mongoose/issues/13226) [hasezoey](https://togithub.com/hasezoey) - docs: fix schema syntax in exemple [#​13262](https://togithub.com/Automattic/mongoose/issues/13262) [c-marc](https://togithub.com/c-marc) - docs: rework scripts to allow easier setting of current and past versions [#​13222](https://togithub.com/Automattic/mongoose/issues/13222) [#​13148](https://togithub.com/Automattic/mongoose/issues/13148) [hasezoey](https://togithub.com/hasezoey) ### [`v7.0.3`](https://togithub.com/Automattic/mongoose/blob/HEAD/CHANGELOG.md#703--2023-03-23) [Compare Source](https://togithub.com/Automattic/mongoose/compare/7.0.2...7.0.3) \================== - fix(query): avoid executing transforms if query wasn't executed [#​13185](https://togithub.com/Automattic/mongoose/issues/13185) [#​13165](https://togithub.com/Automattic/mongoose/issues/13165) - fix(schema): make creating top-level virtual underneath subdocument equivalent to creating virtual on the subdocument [#​13197](https://togithub.com/Automattic/mongoose/issues/13197) [#​13189](https://togithub.com/Automattic/mongoose/issues/13189) - fix(timestamps): set timestamps on empty replaceOne() [#​13196](https://togithub.com/Automattic/mongoose/issues/13196) [#​13170](https://togithub.com/Automattic/mongoose/issues/13170) - fix(types): change return type of lean() to include null if nullable [#​13155](https://togithub.com/Automattic/mongoose/issues/13155) [#​13151](https://togithub.com/Automattic/mongoose/issues/13151) [lpizzinidev](https://togithub.com/lpizzinidev) - fix(types): fixed type of DocumentArray constructor parameter [#​13183](https://togithub.com/Automattic/mongoose/issues/13183) [#​13087](https://togithub.com/Automattic/mongoose/issues/13087) [lpizzinidev](https://togithub.com/lpizzinidev) - docs: refactor header naming to lessen conflicts [#​12901](https://togithub.com/Automattic/mongoose/issues/12901) [hasezoey](https://togithub.com/hasezoey) - docs: change header levels to be consistent across files [#​13173](https://togithub.com/Automattic/mongoose/issues/13173) [hasezoey](https://togithub.com/hasezoey) ### [`v7.0.2`](https://togithub.com/Automattic/mongoose/blob/HEAD/CHANGELOG.md#702--2023-03-15) [Compare Source](https://togithub.com/Automattic/mongoose/compare/7.0.1...7.0.2) \================== - fix: validate array elements when passing array path to validateSync() in pathsToValidate [#​13167](https://togithub.com/Automattic/mongoose/issues/13167) [#​13159](https://togithub.com/Automattic/mongoose/issues/13159) - fix(schema): propagate typeKey down to implicitly created subdocuments [#​13164](https://togithub.com/Automattic/mongoose/issues/13164) [#​13154](https://togithub.com/Automattic/mongoose/issues/13154) - fix(types): add index param to eachAsync fn [#​13153](https://togithub.com/Automattic/mongoose/issues/13153) [krosenk729](https://togithub.com/krosenk729) - fix(types/documentarray): type DocumentArray constructor parameter as object [#​13089](https://togithub.com/Automattic/mongoose/issues/13089) [#​13087](https://togithub.com/Automattic/mongoose/issues/13087) [lpizzinidev](https://togithub.com/lpizzinidev) - fix(types): type query `select()` as string, string\[], or record; not `any` [#​13146](https://togithub.com/Automattic/mongoose/issues/13146) [#​13142](https://togithub.com/Automattic/mongoose/issues/13142) [rbereziuk](https://togithub.com/rbereziuk) - fix(types/query): change QueryOptions lean type to Record\ [#​13150](https://togithub.com/Automattic/mongoose/issues/13150) [lpizzinidev](https://togithub.com/lpizzinidev) - docs: add and run eslint-plugin-markdown [#​13156](https://togithub.com/Automattic/mongoose/issues/13156) [hasezoey](https://togithub.com/hasezoey) - docs(generateSearch): fix search generation for API [#​13161](https://togithub.com/Automattic/mongoose/issues/13161) [hasezoey](https://togithub.com/hasezoey) - docs(generateSearch): move config missing error to require [#​13160](https://togithub.com/Automattic/mongoose/issues/13160) [hasezoey](https://togithub.com/hasezoey) - chore: remove unused docs libraries [#​13172](https://togithub.com/Automattic/mongoose/issues/13172) [hasezoey](https://togithub.com/hasezoey) ### [`v7.0.1`](https://togithub.com/Automattic/mongoose/blob/HEAD/CHANGELOG.md#701--2023-03-06) [Compare Source](https://togithub.com/Automattic/mongoose/compare/7.0.0...7.0.1) \================== - fix(aggregate): added await to prevent exception in aggregate exec [#​13126](https://togithub.com/Automattic/mongoose/issues/13126) [lpizzinidev](https://togithub.com/lpizzinidev) - fix(types): handle Record\ as value for HydratedDocument TOverrides parameter [#​13123](https://togithub.com/Automattic/mongoose/issues/13123) [#​13094](https://togithub.com/Automattic/mongoose/issues/13094) - fix(types): remove "update" function [#​13120](https://togithub.com/Automattic/mongoose/issues/13120) [hasezoey](https://togithub.com/hasezoey) - docs(compatibility): added mongoDB server compatibility for mongoose 7 [#​13102](https://togithub.com/Automattic/mongoose/issues/13102) [lpizzinidev](https://togithub.com/lpizzinidev) - docs: Updated callback method for Model.findOne() [#​13096](https://togithub.com/Automattic/mongoose/issues/13096) [Arghyahub](https://togithub.com/Arghyahub) - chore: update github actions to not use ubuntu-18.04 anymore [#​13137](https://togithub.com/Automattic/mongoose/issues/13137) [hasezoey](https://togithub.com/hasezoey) ### [`v7.0.0`](https://togithub.com/Automattic/mongoose/blob/HEAD/CHANGELOG.md#700--2023-02-27) [Compare Source](https://togithub.com/Automattic/mongoose/compare/6.12.0...7.0.0) \================== - BREAKING CHANGE: copy schema options when merging schemas using new Schema() or Schema.prototype.add() [#​13092](https://togithub.com/Automattic/mongoose/issues/13092) - feat(types): export mongodb types more robustly [#​12948](https://togithub.com/Automattic/mongoose/issues/12948) [simon-abbott](https://togithub.com/simon-abbott) - docs: fix populate docs [#​13090](https://togithub.com/Automattic/mongoose/issues/13090) [hasezoey](https://togithub.com/hasezoey) - docs(migrating_to\_6): added info about removal of reconnectTries and reconnectInterval options [#​13083](https://togithub.com/Automattic/mongoose/issues/13083) [lpizzinidev](https://togithub.com/lpizzinidev)

Configuration

📅 Schedule: Branch creation - "every weekday" (UTC), Automerge - At any time (no schedule defined).

🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.

Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

🔕 Ignore: Close this PR and you won't be reminded about this update again.



This PR has been generated by Mend Renovate. View repository job log here.

renovate[bot] commented 1 year ago

Renovate Ignore Notification

Because you closed this PR without merging, Renovate will ignore this update. You will not get PRs for any future 7.x releases. But if you manually upgrade to 7.x then Renovate will re-enable minor and patch updates automatically.

If you accidentally closed this PR, or if you changed your mind: rename this PR to get a fresh replacement PR.