Skip to content

Conversation

@renovate
Copy link
Contributor

@renovate renovate bot commented Jul 18, 2023

This PR contains the following updates:

Package Change Age Confidence
mongoose (source) 7.3.4 -> 7.8.8 age confidence

Release Notes

Automattic/mongoose (mongoose)

v7.8.8

Compare Source

7.8.8 / 2025-12-04

v7.8.7

Compare Source

==================

v7.8.6

Compare Source

===================

  • chore: remove coverage output from bundle

v7.8.5

Compare Source

===================

  • chore: re-release to force npm audit to pick up 6.x fix for CVE-2025-23061

v7.8.4

Compare Source

===================

v7.8.3

Compare Source

==================

  • fix: disallow using $where in match
  • fix(projection): avoid setting projection to unknown exclusive/inclusive if elemMatch on a Date, ObjectId, etc. #​14894 #​14893
  • docs(migrating_to_7): add note about keepAlive to Mongoose 7 migration guide #​15032 #​13431

v7.8.2

Compare Source

==================

  • fix(projection): avoid setting projection to unknown exclusive/inclusive if elemMatch on a Date, ObjectId, etc. #​14894 #​14893

v7.8.1

Compare Source

==================

  • fix(query): handle casting $switch in $expr #​14761
  • docs(mongoose): remove out-of-date callback-based example for mongoose.connect() #​14811 #​14810

v7.8.0

Compare Source

==================

v7.7.0

Compare Source

==================

  • feat(model): add throwOnValidationError option for opting into getting MongooseBulkWriteError if all valid operations succeed in bulkWrite() and insertMany() #​14599 #​14587 #​14572 #​13410

v7.6.13

Compare Source

===================

  • fix(query): shallow clone $or and $and array elements to avoid mutating query filter arguments #​14614 #​14610
  • types: pass DocType down to subdocuments so HydratedSingleSubdocument and HydratedArraySubdocument toObject() returns correct type #​14612 #​14601
  • docs(migrating_to_7): add id setter to Mongoose 7 migration guide #​14645 #​13672

v7.6.12

Compare Source

===================

v7.6.11

Compare Source

===================

  • fix(populate): avoid match function filtering out null values in populate result #​14518
  • fix(schema): support setting discriminator options in Schema.prototype.discriminator() #​14493 #​14448
  • fix(schema): deduplicate idGetter so creating multiple models with same schema doesn't result in multiple id getters #​14492 #​14457

v7.6.10

Compare Source

===================

  • docs(model): add extra note about lean option for insertMany() skipping casting #​14415
  • docs(mongoose): add options.overwriteModel details to mongoose.model() docs #​14422

v7.6.9

Compare Source

==================

  • fix(document): handle embedded recursive discriminators on nested path defined using Schema.prototype.discriminator #​14256 #​14245
  • types(model): correct return type for findByIdAndDelete() #​14233 #​14190
  • docs(connections): add note about using asPromise() with createConnection() for error handling #​14364 #​14266
  • docs(model+query+findoneandupdate): add more details about overwriteDiscriminatorKey option to docs #​14264 #​14246

v7.6.8

Compare Source

==================

  • perf(schema): remove unnecessary lookahead in numeric subpath check
  • fix(discriminator): handle reusing schema with embedded discriminators defined using Schema.prototype.discriminator #​14202 #​14162
  • fix(ChangeStream): avoid suppressing errors in closed change stream #​14206 #​14177

v7.6.7

Compare Source

==================

  • fix: avoid minimizing single nested subdocs if they are required #​14151 #​14058
  • fix(populate): allow deselecting discriminator key when populating #​14155 #​3230
  • fix: allow adding discriminators using Schema.prototype.discriminator() to subdocuments after defining parent schema #​14131 #​14109
  • fix(schema): avoid creating unnecessary clone of schematype in nested array so nested document arrays use correct constructor #​14128 #​14101
  • fix(populate): call transform object with single id instead of array when populating a justOne path under an array #​14135 #​14073
  • types: add back mistakenly removed findByIdAndRemove() function signature #​14136 #​14132

v7.6.6

Compare Source

==================

v7.6.5

Compare Source

==================

v7.6.4

Compare Source

==================

  • fix(connection): retain modified status for documents created outside a transaction during transaction retries #​14017 #​13973
  • fix(schema): handle recursive schemas in discriminator definitions #​14011 #​13978
  • fix: handle casting $or underneath $elemMatch #​14007 #​13974
  • fix(populate): allow using options: { strictPopulate: false } to disable strict populate #​13863
  • docs: fix differences between sample codes and documentation #​13998 suzuki
  • docs: fix missing import and change wrong variable name #​13992 suzuki

v7.6.3

Compare Source

==================

  • fix(populate): handle multiple spaces when specifying paths to populate using space-delimited paths #​13984 #​13951
  • fix(update): avoid applying defaults on query filter when upserting with empty update #​13983 #​13962
  • fix(model): add versionKey to bulkWrite when inserting or upserting #​13981 #​13944
  • docs: fix typo in timestamps docs #​13976 danielcoker

v7.6.2

Compare Source

==================

  • perf: avoid storing a separate entry in schema subpaths for every element in an array #​13953 #​13874
  • fix(document): avoid triggering setter when initializing Model.prototype.collection to allow defining collection as a schema path name #​13968 #​13956
  • fix(model): make bulkSave() save changes in discriminator paths if calling bulkSave() on base model #​13959 #​13907
  • fix(document): allow calling $model() with no args for TypeScript #​13963 #​13878
  • fix(schema): handle embedded discriminators defined using Schema.prototype.discriminator() #​13958 #​13898
  • types(model): make InsertManyResult consistent with return type of insertMany #​13965 #​13904
  • types(models): add cleaner type definitions for insertMany() with no generics to prevent errors when using insertMany() in generic classes #​13964 #​13957
  • types(schematypes): allow defining map path using type: 'Map' in addition to type: Map #​13960 #​13755

v7.6.1

Compare Source

===================

  • fix(query): shallow clone $or and $and array elements to avoid mutating query filter arguments #​14614 #​14610
  • types: pass DocType down to subdocuments so HydratedSingleSubdocument and HydratedArraySubdocument toObject() returns correct type #​14612 #​14601
  • docs(migrating_to_7): add id setter to Mongoose 7 migration guide #​14645 #​13672

v7.6.0

Compare Source

==================

v7.5.4

Compare Source

==================

v7.5.3

Compare Source

==================

  • fix(document): handle MongoDB Long when casting BigInts #​13869 #​13791
  • fix(model): make bulkSave() persist changes that happen in pre('save') middleware #​13885 #​13799
  • fix: handle casting $elemMatch underneath $not underneath another $elemMatch #​13893 #​13880
  • fix(model): make bulkWrite casting respect global setDefaultsOnInsert #​13870 #​13823
  • fix(document): handle default values for discriminator key with embedded discriminators #​13891 #​13835
  • fix: account for null values when assigning isNew property within document array #​13883
  • types: avoid "interface can only extend object types with statically known members" error in TypeScript 4 #​13871
  • docs(deprecations): fix typo in includeResultMetadata deprecation docs #​13884 #​13844
  • docs: fix pre element overflow in home page #​13868 ghoshRitesh12

v7.5.2

Compare Source

==================

  • fix(schema): handle number discriminator keys when using Schema.prototype.discriminator() #​13858 #​13788
  • fix: ignore id property when calling set() with both id and _id specified to avoid id setter overwriting #​13762
  • types: pass correct document type to required and default function #​13851 #​13797
  • docs(model): add examples of using diffIndexes() to syncIndexes()and diffIndexes() api docs #​13850 #​13771

v7.5.1

Compare Source

==================

  • fix: set default value for _update when no update object is provided and versionKey is set to false #​13795 #​13783 MohOraby
  • fix: avoid unexpected error when accessing null array element on discriminator array when populating #​13716 ZSabakh
  • types(schematypes): use DocType for instance method this #​13822 #​13800 pshaddel
  • types: remove duplicated 'exists' method in Model interface in models.d.ts #​13818 ohzeno
  • docs(model): replace outdated docs on deprecated findOneAndUpdate() overwrite option #​13821 #​13715
  • docs: add example of using virtuals.pathsToSkip option for toObject() and toJSON() #​13798 RobertHunter-Pluto

v7.5.0

Compare Source

==================

  • feat: use mongodb driver v5.18.1
  • feat: allow top level dollar keys with findOneAndUpdate(), update() for MongoDB 5 #​13786
  • fix(document): make array getters avoid unintentionally modifying array, defer getters until index access instead #​13774
  • feat: deprecate overwrite option for findOneAndUpdate() #​13578
  • feat: add pathsToSkip option for Model.validate #​13663 #​10353
  • feat: support alias when declaring index #​13659 #​13276
  • fix(query): remove unnecessary check for atomic operators in findOneAndReplace() #​13678
  • types: add SearchMeta Interface for Atlas Search #​13792 mreouven
  • types(schematypes): add missing BigInt SchemaType #​13787

v7.4.5

Compare Source

==================

  • fix(debug): avoid putting virtuals and getters in debug output #​13778
  • fix(model): make Model.bulkWrite() with empty array and ordered false not throw an error #​13664
  • fix(document): correctly handle inclusive/exclusive projections when applying subdocument defaults #​13763 #​13720

v7.4.4

Compare Source

==================

  • fix(connection): reset document state in between transaction retries #​13726 #​13698
  • fix(cursor): bubble up resumeTokenChanged event from change streams #​13736 #​13607
  • fix(query+populate): add refPath to projection by default, unless explicitly excluded #​13758
  • fix(schema): support 'ascending', 'asc', 'descending', 'desc' for index direction #​13761 #​13725
  • fix(ChangeStream): add _bindEvents to addListener function for observable support #​13759 yury-ivaniutsenka
  • types: infer return type when using get(), markModified(), etc. with known property name literal #​13739 maybesmurf
  • types: add missing typings for option includeResultMetadata #​13747 #​13746 Idnan
  • types: export InferSchemaType #​13737
  • docs(middleware): clarify that query middleware applies to document by default #​13734 #​13713
  • docs: add brief note on TypeScript generic usage for embedded discriminator path() calls #​13728 #​10435
  • docs: link v7 migration guide #​13742 Cooldogyum
  • docs(migrating_to_6): add note about incompatible packages #​13733

v7.4.3

Compare Source

==================

  • fix: avoid applying map property getters when saving #​13704 #​13657
  • fix(query): allow deselecting discriminator key #​13722 #​13679
  • types(models+query): return lean type when passing QueryOptions with lean: true to relevant model functions like find() and findOne() #​13721 #​13705
  • types(schema): correct return type for Schema.prototype.indexes() #​13718 #​13702
  • types: allow accessing options from pre middleware #​13708 #​13633
  • types: add UpdateQueryKnownOnly type for stricter UpdateQuery type checking #​13699 #​13630
  • types(schema): support required: { isRequired: true } syntax in schema definition #​13680
  • docs(middleware): clarify that doc.deleteOne() doesn't run query middleware currently #​13707 #​13669

v7.4.2

Compare Source

==================

v7.4.1

Compare Source

==================

  • fix(document): correctly clean up nested subdocs modified state on save() #​13644 #​13609
  • fix(schema): avoid propagating toObject.transform and toJSON.transform option to implicitly created schemas #​13634 #​13599
  • fix: prevent schema options overwriting user defined writeConcern #​13612 #​13592
  • types: correctly handle pre('deleteOne', { document: true }) #​13632
  • types(schema): handle type: Schema.Types.Map in TypeScript #​13628
  • types: Add inline comment to to tell the default value of the runValidator flag in the queryOptions types #​13636 omran95
  • docs: rework several code examples that still use callbacks #​13635 #​13616
  • docs: remove callbacks from validation description #​13638 #​13501

v7.4.0

Compare Source

==================

  • perf: speed up mapOfSubdocs benchmark by 4x by avoiding unnecessary O(n^2) loop in getPathsToValidate() #​13614
  • feat: upgrade to MongoDB Node.js driver 5.7.0 #​13591
  • BREAKING CHANGE: add id setter which allows modifying _id by setting id (Note this change was originally shipped as a feat, but later reverted in Mongoose 8 due to compatibility issues) #​13517
  • feat: support generating custom cast error message with a function #​13608 #​3162
  • feat(query): support MongoDB driver's includeResultMetadata option for findOneAndUpdate #​13584 #​13539
  • feat(connection): add Connection.prototype.removeDb() for removing a related connection #​13580 #​11821
  • feat(query): delay converting documents into POJOs until query execution, allow querying subdocuments with defaults disabled #​13522
  • feat(model): add option "aggregateErrors" for create() #​13544 hasezoey
  • feat(schema): add collectionOptions option to schemas #​13513
  • fix: move all MongoDB-specific connection logic into driver layer, add createClient() method to handle creating MongoClient #​13542
  • fix(document): allow setting keys with dots in mixed paths underneath nested paths #​13536
  • types: augment bson.ObjectId instead of adding on own type #​13515 #​12537 hasezoey
  • docs(guide): fix md lint #​13593 hasezoey
  • docs: changed the code from 'await author.save()' to 'await story1.save()' #​13596 SomSingh23

Configuration

📅 Schedule: Branch creation - At any time (no schedule defined), 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.


  • If you want to rebase/retry this PR, check this box

This PR was generated by Mend Renovate. View the repository job log.

@renovate renovate bot changed the title fix(deps): update dependency mongoose to v7.4.0 fix(deps): update dependency mongoose to v7.4.1 Jul 24, 2023
@renovate renovate bot force-pushed the renovate/mongoose-7.x-lockfile branch from 61283fe to 7c26c0a Compare July 24, 2023 16:27
@renovate renovate bot changed the title fix(deps): update dependency mongoose to v7.4.1 fix(deps): update dependency mongoose to v7.4.2 Aug 3, 2023
@renovate renovate bot force-pushed the renovate/mongoose-7.x-lockfile branch from 7c26c0a to 44f744b Compare August 3, 2023 23:14
@renovate renovate bot force-pushed the renovate/mongoose-7.x-lockfile branch from 44f744b to 53a3d85 Compare August 11, 2023 20:18
@renovate renovate bot changed the title fix(deps): update dependency mongoose to v7.4.2 fix(deps): update dependency mongoose to v7.4.3 Aug 11, 2023
@renovate renovate bot changed the title fix(deps): update dependency mongoose to v7.4.3 fix(deps): update dependency mongoose to v7.4.4 Aug 22, 2023
@renovate renovate bot force-pushed the renovate/mongoose-7.x-lockfile branch from 53a3d85 to 2320171 Compare August 22, 2023 12:28
@renovate renovate bot changed the title fix(deps): update dependency mongoose to v7.4.4 fix(deps): update dependency mongoose to v7.4.5 Aug 25, 2023
@renovate renovate bot force-pushed the renovate/mongoose-7.x-lockfile branch from 2320171 to 8590969 Compare August 25, 2023 15:56
@renovate renovate bot changed the title fix(deps): update dependency mongoose to v7.4.5 fix(deps): update dependency mongoose to v7.5.0 Aug 29, 2023
@renovate renovate bot force-pushed the renovate/mongoose-7.x-lockfile branch from 8590969 to 8616bd2 Compare August 29, 2023 22:36
@renovate renovate bot changed the title fix(deps): update dependency mongoose to v7.5.0 fix(deps): update dependency mongoose to v7.5.1 Sep 11, 2023
@renovate renovate bot force-pushed the renovate/mongoose-7.x-lockfile branch from 8616bd2 to 0136d62 Compare September 11, 2023 17:34
@renovate renovate bot changed the title fix(deps): update dependency mongoose to v7.5.1 fix(deps): update dependency mongoose to v7.5.2 Sep 15, 2023
@renovate renovate bot force-pushed the renovate/mongoose-7.x-lockfile branch from 0136d62 to b51d409 Compare September 15, 2023 22:18
@renovate renovate bot force-pushed the renovate/mongoose-7.x-lockfile branch from b51d409 to cf6120a Compare September 25, 2023 23:00
@renovate renovate bot changed the title fix(deps): update dependency mongoose to v7.5.2 fix(deps): update dependency mongoose to v7.5.3 Sep 25, 2023
@renovate renovate bot changed the title fix(deps): update dependency mongoose to v7.5.3 fix(deps): update dependency mongoose to v7.5.4 Oct 4, 2023
@renovate renovate bot force-pushed the renovate/mongoose-7.x-lockfile branch from cf6120a to 019aa4c Compare October 4, 2023 22:51
@renovate renovate bot changed the title fix(deps): update dependency mongoose to v7.5.4 fix(deps): update dependency mongoose to v7.6.0 Oct 6, 2023
@renovate renovate bot force-pushed the renovate/mongoose-7.x-lockfile branch from 019aa4c to 20508c3 Compare October 6, 2023 21:42
@renovate renovate bot changed the title fix(deps): update dependency mongoose to v7.6.0 fix(deps): update dependency mongoose to v7.6.1 Oct 9, 2023
@renovate renovate bot force-pushed the renovate/mongoose-7.x-lockfile branch from 20508c3 to fb5da70 Compare October 9, 2023 22:28
@renovate renovate bot changed the title fix(deps): update dependency mongoose to v7.6.1 fix(deps): update dependency mongoose to v7.6.2 Oct 13, 2023
@renovate renovate bot force-pushed the renovate/mongoose-7.x-lockfile branch from fb5da70 to 65598a9 Compare October 13, 2023 15:41
@renovate renovate bot changed the title fix(deps): update dependency mongoose to v7.6.2 fix(deps): update dependency mongoose to v7.6.3 Oct 17, 2023
@renovate renovate bot force-pushed the renovate/mongoose-7.x-lockfile branch from 65598a9 to 683531d Compare October 17, 2023 14:27
@renovate renovate bot changed the title fix(deps): update dependency mongoose to v7.6.3 fix(deps): update dependency mongoose to v7.6.4 Oct 31, 2023
@renovate renovate bot force-pushed the renovate/mongoose-7.x-lockfile branch from 683531d to 9093c6d Compare October 31, 2023 00:08
@renovate renovate bot force-pushed the renovate/mongoose-7.x-lockfile branch from 85b0831 to 977c79f Compare April 11, 2024 17:24
@renovate renovate bot changed the title fix(deps): update dependency mongoose to v7.6.10 fix(deps): update dependency mongoose to v7.6.11 Apr 11, 2024
@renovate renovate bot force-pushed the renovate/mongoose-7.x-lockfile branch from 977c79f to 90e7513 Compare May 22, 2024 00:40
@renovate renovate bot changed the title fix(deps): update dependency mongoose to v7.6.11 fix(deps): update dependency mongoose to v7.6.12 May 22, 2024
@renovate renovate bot force-pushed the renovate/mongoose-7.x-lockfile branch from 90e7513 to fd9373f Compare June 5, 2024 23:19
@renovate renovate bot changed the title fix(deps): update dependency mongoose to v7.6.12 fix(deps): update dependency mongoose to v7.6.13 Jun 5, 2024
@renovate renovate bot force-pushed the renovate/mongoose-7.x-lockfile branch from fd9373f to d79f4ec Compare June 18, 2024 22:12
@renovate renovate bot changed the title fix(deps): update dependency mongoose to v7.6.13 fix(deps): update dependency mongoose to v7.7.0 Jun 18, 2024
@renovate renovate bot changed the title fix(deps): update dependency mongoose to v7.7.0 fix(deps): update dependency mongoose to v7.8.0 Jul 23, 2024
@renovate renovate bot force-pushed the renovate/mongoose-7.x-lockfile branch from d79f4ec to d963b72 Compare July 23, 2024 22:07
@renovate renovate bot force-pushed the renovate/mongoose-7.x-lockfile branch from d963b72 to 466ba75 Compare August 19, 2024 20:01
@renovate renovate bot changed the title fix(deps): update dependency mongoose to v7.8.0 fix(deps): update dependency mongoose to v7.8.1 Aug 19, 2024
@renovate renovate bot force-pushed the renovate/mongoose-7.x-lockfile branch from 466ba75 to 64df8aa Compare September 25, 2024 22:44
@renovate renovate bot changed the title fix(deps): update dependency mongoose to v7.8.1 fix(deps): update dependency mongoose to v7.8.2 Sep 25, 2024
@renovate renovate bot force-pushed the renovate/mongoose-7.x-lockfile branch from 64df8aa to 3e1098b Compare November 26, 2024 17:04
@renovate renovate bot changed the title fix(deps): update dependency mongoose to v7.8.2 fix(deps): update dependency mongoose to v7.8.3 Nov 26, 2024
@renovate renovate bot force-pushed the renovate/mongoose-7.x-lockfile branch from 3e1098b to 7022a12 Compare January 14, 2025 17:19
@renovate renovate bot changed the title fix(deps): update dependency mongoose to v7.8.3 fix(deps): update dependency mongoose to v7.8.4 Jan 14, 2025
@renovate renovate bot force-pushed the renovate/mongoose-7.x-lockfile branch from 7022a12 to 7b7750f Compare January 20, 2025 17:44
@renovate renovate bot changed the title fix(deps): update dependency mongoose to v7.8.4 fix(deps): update dependency mongoose to v7.8.6 Jan 20, 2025
@renovate renovate bot force-pushed the renovate/mongoose-7.x-lockfile branch from 7b7750f to d6cb383 Compare March 3, 2025 17:23
@renovate renovate bot force-pushed the renovate/mongoose-7.x-lockfile branch from d6cb383 to f349c4b Compare April 8, 2025 13:16
@renovate renovate bot force-pushed the renovate/mongoose-7.x-lockfile branch from f349c4b to 5a133f1 Compare April 30, 2025 17:33
@renovate renovate bot changed the title fix(deps): update dependency mongoose to v7.8.6 fix(deps): update dependency mongoose to v7.8.7 Apr 30, 2025
@renovate renovate bot force-pushed the renovate/mongoose-7.x-lockfile branch from 5a133f1 to ecb0704 Compare June 22, 2025 13:09
@renovate renovate bot changed the title fix(deps): update dependency mongoose to v7.8.7 chore(deps): update dependency mongoose to v7.8.7 Sep 25, 2025
@renovate renovate bot force-pushed the renovate/mongoose-7.x-lockfile branch from ecb0704 to 1f247c7 Compare October 21, 2025 10:01
@renovate renovate bot force-pushed the renovate/mongoose-7.x-lockfile branch from 1f247c7 to 536332d Compare December 5, 2025 03:13
@renovate renovate bot changed the title chore(deps): update dependency mongoose to v7.8.7 chore(deps): update dependency mongoose to v7.8.8 Dec 5, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant