studio
studio copied to clipboard
Update dependency mongoose to v7.6.11
This PR contains the following updates:
| Package | Type | Update | Change |
|---|---|---|---|
| mongoose (source) | dependencies | minor | 7.4.3 -> 7.6.11 |
Release Notes
Automattic/mongoose (mongoose)
v7.6.11
===================
- 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
===================
- 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
==================
- 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
==================
- 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
==================
- 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
==================
- perf: avoid double-running setter logic when calling
push()#14120 #11380 - fix(populate): set populated docs in correct order when populating virtual underneath doc array with justOne #14105 #14018
- fix: bump mongodb driver -> 5.9.1 #14084 #13829 lorand-horvath
- types: allow defining document array using [{ prop: String }] syntax #14095 #13424
- types: correct types for when includeResultMetadata: true is set #14078 #13987 prathamVaidya
- types(query): base filters and projections off of RawDocType instead of DocType so autocomplete doesn't show populate #14118 #14077
- types: make property names show up in intellisense for UpdateQuery #14123 #14090
- types(model): support calling Model.validate() with pathsToSkip option #14088 #14003
- docs: remove "DEPRECATED" warning mistakenly added to read() tags param #13980
v7.6.5
==================
- fix: handle update validators and single nested doc with numeric paths #14066 #13977
- fix: handle recursive schema array in discriminator definition #14068 #14055
- fix: diffIndexes treats namespace error as empty #14048 #14029
- docs(migrating_to_7): add note about requiring new with ObjectId #14021 #14020
v7.6.4
==================
- 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
==================
- 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
==================
- 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
===================
- 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.0
==================
- feat: upgrade mongodb node driver -> 5.9.0 #13927 #13926 sanguineti
- fix: avoid CastError when passing different value of discriminator key in
$or#13938 #13906
v7.5.4
==================
- fix: avoid stripping out
idproperty when_idis set #13933 #13892 #13867 - fix(QueryCursor): avoid double-applying schema paths so you can include select: false fields with + projection using cursors #13932 #13773
- fix(query): allow deselecting discriminator key using - syntax #13929 #13760
- fix(query): handle $round in $expr as array #13928 #13881
- fix(document): call pre('validate') hooks when modifying a path underneath triply nested subdoc #13912 #13876
- fix(mongoose): correctly handle global applyPluginsToChildSchemas option #13911 #13887
- types: add insertMany array overload with options #13931 t1bb4r
- docs(compatibility): add Mongoose 7 support to compatibility matrix #13875
- docs: amend some awkward FAQ wording #13925 peteboere
v7.5.3
==================
- 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
==================
- fix(schema): handle number discriminator keys when using Schema.prototype.discriminator() #13858 #13788
- fix: ignore
idproperty when callingset()with bothidand_idspecified to avoididsetter 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
==================
- 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.pathsToSkipoption fortoObject()andtoJSON()#13798 RobertHunter-Pluto
v7.5.0
==================
- 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
overwriteoption 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
==================
- 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
==================
- 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
Configuration
📅 Schedule: Branch creation - "on the first day of the month" (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.
- [ ] If you want to rebase/retry this PR, check this box