Update dependency mongoose to v5.11.18 #32
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR contains the following updates:
5.10.5->5.11.185.7.36->5.10.3Release Notes
Automattic/mongoose
v5.11.18Compare Source
====================
disconnectedif connecting string failed to parse #9921dbevents deprecation warning ifuseUnifiedTopology = true#9930PopulatedDoctype to make it easier to define populated docs in interfaces #9818toObject()return type for backwards compatibility #9944anyfromdeleteX()andupdateX()query params and return values #9959 btdModel.create()for better autocomplete #9928>in API descriptions #9940v5.11.17Compare Source
====================
perDocumentLimitwhen multiple documents reference the same populated doc #9906SchemaTypeOptions#typeoptional again to allow alternative typeKeys #9927{ type: String }in schema definition when using SchemaDefinitionType generic #9911$*syntax for populating every entry in a map #9907Connection#transaction()promise resolves to a command result #9919v5.11.16Compare Source
====================
$functionoperator #9897v5.11.15Compare Source
====================
isSelectedas an path in a nested schema #9884 #9873 IslandRhythmsSchemaDefinitiongenerics when creating schema #9863 #9862 #9789Querya class, allow callingQuery#where()with object argument and with no arguments #9856Schema#pre()andSchema#post()with options and array of hooked function names #9844v5.11.14Compare Source
====================
justOnefrom parent when populating a POJO with a manually populated path #9833 IslandRhythmsdocumentIsSelectedsymbol #9841 IslandRhythmsDocument#remove()returns a promise, not a query #9826SchemaType#enumto TypeScript enum withrequired: true#9546v5.11.13Compare Source
====================
Connection#transaction()#9834 pnutmathQuery#options#rawResulttake precedence overnew+upsert#9816mongoose.Promise#9820Aggregate#replaceRoot()#9814Model.create()with a spread return a promise of array rather than single doc #9817toObjectfor populate virtuals #9822v5.11.12Compare Source
====================
dbas a document path #9798onOpen()ifautoCreate === false#9807findOneAndUpdate()andfindByIdAndUpdate()withrawResult = true#9803new: trueorreturnOriginal: falseto skip null check withfindOneAndUpdate()#9654v5.11.11Compare Source
====================
create()withundefinedas first argument and no callback #9765thisrefers toDocTypein schema methods with strict mode #9755Aggregate#addFields()#9774minandmaxto [number, string] and [Date, string] #9762Schema#methodsandSchema#statics#9717v5.11.10Compare Source
====================
populateoption forinsertMany()as a workaround for mongoose-autopopulate #9720arrayPathwhen casting to a non-array, avoid unnecessarily setting atomics #9588String#slice()call when creating a new array #9588lean.virtualsin place #9754Aggregate#project()#9763 vorticalboxnullas an enum value for schematypes #9746save()promise resolves to #9689v5.11.9Compare Source
===================
defaultsoption to subdocument arrays #9736lean()result type #9728idpaths with non-string values in TypeScript #9723createIndexes()andensureIndexes()with just callback #9706__vin LeanDocuments #9687Aggregate#append()#9714v5.11.8Compare Source
===================
toObject#9700createIndexes()andensureIndexes()#9706ValidateOpts.message#9697v5.11.7Compare Source
===================
get()with empty string returns undefined for mongoose-plugin-autoinc #9681isNewto false for documents that were successfully inserted byinsertManywithordered = falsewhen an error occurred #9677Document#idoptional so types that useidcan useModel<IMyType & Document>#9684v5.11.6Compare Source
===================
create()andfindOneAndReplace()#9676mongoose.model()andConnection#model()with model as generic param #9685 #9678 sahasayanv5.11.5Compare Source
===================
nullin maps of subdocs #9628validate#9667VirtualType#applyGetters()andapplySetters(),Schema#virtuals,Schema#childSchemas,Query#_mongooseOptions#9658idto LeanDocuments in case it is defined in the user's schema #9657upsertandorFail()#9654insertMany()more consistent #9662SchemaTypeOptsandConnectionOptionsaliases for backwards compatsort()fromlimitexample to avoid potential confusion #9584v5.11.4Compare Source
===================
Document#__vso documents have a Version by default #9652 sahasayansessionoption toSaveOptions#9642Schema#paths,Schema#static(obj),Embedded#schema,DocumentArray#schema, make Schema inherit from EventEmitter #9650FilterQuery#9649find(),findOne(),findById()#9648Document#parent()method because it conflicts with existing user code #9645Connection#dbproperty #9643tsconfig.jsonfile for intellisense #9611 alecgibsonv5.11.3Compare Source
===================
Document#_idso documents have an id by default #9632LeanDocumentwith arrays #9620ModelUpdateOptionsas alias forQueryOptionsfor backwards compat #9637v5.11.2Compare Source
===================
findById()function #9626 #9620_idfor Document, support creating Mongoose globals and accessing collection name #9618get()andset()#9616newandreturnOriginaloptions to QueryOptions, add missing model static properties #9627 #9616 #9615useCreateIndexin connection options #9621v5.11.1Compare Source
====================
disconnectedif connecting string failed to parse #9921dbevents deprecation warning ifuseUnifiedTopology = true#9930PopulatedDoctype to make it easier to define populated docs in interfaces #9818toObject()return type for backwards compatibility #9944anyfromdeleteX()andupdateX()query params and return values #9959 btdModel.create()for better autocomplete #9928>in API descriptions #9940v5.11.0Compare Source
===================
index.d.tsfile #8108localFieldandforeignFieldas arrays #6608getoption forSchema#virtual()#9343populateschematype option that sets default populate options #6029populate()in batch when usingbatchSize#9366 biomorgothoverwriteModelsoption to bypassOverwriteModelErrorglobally #9406deepEqual()on documents and arrays #9396enumvalidator in schema #9547 #9546 AbdelrahmanHafezshelloption for date format (ISODate) #9532 FlameFractalget(),set()#9375Document#$isValid(),isDirectSelected(),isSelected(),$isDefault()#9474minLengthandmaxLengthbehave the same asminlengthandmaxlength#8777 m-weeks$parent()as an alias forparent()for documents and subdocuments to avoid path name conflicts #9455v5.10.19Compare Source
====================
$typein query filters #9577v5.10.18Compare Source
====================
v5.10.17Compare Source
====================
v5.10.16Compare Source
====================
useDb()#9569offor array type definitions to be consistent with maps #9564v5.10.15Compare Source
====================
Array#toObject()returns a vanilla JavaScript array in Node.js 6+ #9540disconnect()stop Mongoose if it is trying to reconnect #9531Document#overwrite()correctly overwrites maps #9549incrementas a schema path name #9538partialFilterExpressionfor indexes in discriminator schemas #9542v5.10.14Compare Source
====================
$setOnInsert#9537documentandqueryonremovehooks to get just document middleware #9530 mustafaKamal-fev5.10.13Compare Source
====================
v5.10.12Compare Source
====================
startSession()#9515deleteOneanddeleteManytrigger middleware #9504ssldefaulting totruefor srv connection strings #9511v5.10.11Compare Source
====================
mongoose.connect()multiple times in parallel, make 2nd call wait for connection before resolving #9476save()persistMap#clear()#9493v5.10.10Compare Source
====================
$matchas the 2nd stage in pipeline rather than 1st #9487v5.10.9Compare Source
===================
autoCreateas a global option to be consistent withautoIndex#9466v5.10.8Compare Source
===================
mongoose.model()with schema from a different Mongoose module instance #9449reasonon cast errors that occur while init-ing a document #9448createCollection()not throw error when collection already exists to be consistent with v5.9 #9447v5.10.7Compare Source
===================
requiredcan use arrow functions #9435 AbdelrahmanHafezisSelected#9438Schema#clone()use parent Mongoose instance's Schema constructor #9426v5.10.6Compare Source
===================
options.perDocumentLimitoption same asperDocumentLimitwhen callingpopulate()#9418Renovate configuration
📅 Schedule: At any time (no schedule defined).
🚦 Automerge: Enabled.
♻️ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about these updates again.
This PR has been generated by WhiteSource Renovate. View repository job log here.