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.18
5.7.36
->5.10.3
Release Notes
Automattic/mongoose
v5.11.18
Compare Source
====================
disconnected
if connecting string failed to parse #9921db
events deprecation warning ifuseUnifiedTopology = true
#9930PopulatedDoc
type to make it easier to define populated docs in interfaces #9818toObject()
return type for backwards compatibility #9944any
fromdeleteX()
andupdateX()
query params and return values #9959 btdModel.create()
for better autocomplete #9928>
in API descriptions #9940v5.11.17
Compare Source
====================
perDocumentLimit
when multiple documents reference the same populated doc #9906SchemaTypeOptions#type
optional 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.16
Compare Source
====================
$function
operator #9897v5.11.15
Compare Source
====================
isSelected
as an path in a nested schema #9884 #9873 IslandRhythmsSchemaDefinition
generics when creating schema #9863 #9862 #9789Query
a 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.14
Compare Source
====================
justOne
from parent when populating a POJO with a manually populated path #9833 IslandRhythmsdocumentIsSelected
symbol #9841 IslandRhythmsDocument#remove()
returns a promise, not a query #9826SchemaType#enum
to TypeScript enum withrequired: true
#9546v5.11.13
Compare Source
====================
Connection#transaction()
#9834 pnutmathQuery#options#rawResult
take precedence overnew
+upsert
#9816mongoose.Promise
#9820Aggregate#replaceRoot()
#9814Model.create()
with a spread return a promise of array rather than single doc #9817toObject
for populate virtuals #9822v5.11.12
Compare Source
====================
db
as a document path #9798onOpen()
ifautoCreate === false
#9807findOneAndUpdate()
andfindByIdAndUpdate()
withrawResult = true
#9803new: true
orreturnOriginal: false
to skip null check withfindOneAndUpdate()
#9654v5.11.11
Compare Source
====================
create()
withundefined
as first argument and no callback #9765this
refers toDocType
in schema methods with strict mode #9755Aggregate#addFields()
#9774min
andmax
to [number, string] and [Date, string] #9762Schema#methods
andSchema#statics
#9717v5.11.10
Compare Source
====================
populate
option forinsertMany()
as a workaround for mongoose-autopopulate #9720arrayPath
when casting to a non-array, avoid unnecessarily setting atomics #9588String#slice()
call when creating a new array #9588lean.virtuals
in place #9754Aggregate#project()
#9763 vorticalboxnull
as an enum value for schematypes #9746save()
promise resolves to #9689v5.11.9
Compare Source
===================
defaults
option to subdocument arrays #9736lean()
result type #9728id
paths with non-string values in TypeScript #9723createIndexes()
andensureIndexes()
with just callback #9706__v
in LeanDocuments #9687Aggregate#append()
#9714v5.11.8
Compare Source
===================
toObject
#9700createIndexes()
andensureIndexes()
#9706ValidateOpts.message
#9697v5.11.7
Compare Source
===================
get()
with empty string returns undefined for mongoose-plugin-autoinc #9681isNew
to false for documents that were successfully inserted byinsertMany
withordered = false
when an error occurred #9677Document#id
optional so types that useid
can useModel<IMyType & Document>
#9684v5.11.6
Compare Source
===================
create()
andfindOneAndReplace()
#9676mongoose.model()
andConnection#model()
with model as generic param #9685 #9678 sahasayanv5.11.5
Compare Source
===================
null
in maps of subdocs #9628validate
#9667VirtualType#applyGetters()
andapplySetters()
,Schema#virtuals
,Schema#childSchemas
,Query#_mongooseOptions
#9658id
to LeanDocuments in case it is defined in the user's schema #9657upsert
andorFail()
#9654insertMany()
more consistent #9662SchemaTypeOpts
andConnectionOptions
aliases for backwards compatsort()
fromlimit
example to avoid potential confusion #9584v5.11.4
Compare Source
===================
Document#__v
so documents have a Version by default #9652 sahasayansession
option 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#db
property #9643tsconfig.json
file for intellisense #9611 alecgibsonv5.11.3
Compare Source
===================
Document#_id
so documents have an id by default #9632LeanDocument
with arrays #9620ModelUpdateOptions
as alias forQueryOptions
for backwards compat #9637v5.11.2
Compare Source
===================
findById()
function #9626 #9620_id
for Document, support creating Mongoose globals and accessing collection name #9618get()
andset()
#9616new
andreturnOriginal
options to QueryOptions, add missing model static properties #9627 #9616 #9615useCreateIndex
in connection options #9621v5.11.1
Compare Source
====================
disconnected
if connecting string failed to parse #9921db
events deprecation warning ifuseUnifiedTopology = true
#9930PopulatedDoc
type to make it easier to define populated docs in interfaces #9818toObject()
return type for backwards compatibility #9944any
fromdeleteX()
andupdateX()
query params and return values #9959 btdModel.create()
for better autocomplete #9928>
in API descriptions #9940v5.11.0
Compare Source
===================
index.d.ts
file #8108localField
andforeignField
as arrays #6608get
option forSchema#virtual()
#9343populate
schematype option that sets default populate options #6029populate()
in batch when usingbatchSize
#9366 biomorgothoverwriteModels
option to bypassOverwriteModelError
globally #9406deepEqual()
on documents and arrays #9396enum
validator in schema #9547 #9546 AbdelrahmanHafezshell
option for date format (ISODate) #9532 FlameFractalget()
,set()
#9375Document#$isValid()
,isDirectSelected()
,isSelected()
,$isDefault()
#9474minLength
andmaxLength
behave the same asminlength
andmaxlength
#8777 m-weeks$parent()
as an alias forparent()
for documents and subdocuments to avoid path name conflicts #9455v5.10.19
Compare Source
====================
$type
in query filters #9577v5.10.18
Compare Source
====================
v5.10.17
Compare Source
====================
v5.10.16
Compare Source
====================
useDb()
#9569of
for array type definitions to be consistent with maps #9564v5.10.15
Compare 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 #9549increment
as a schema path name #9538partialFilterExpression
for indexes in discriminator schemas #9542v5.10.14
Compare Source
====================
$setOnInsert
#9537document
andquery
onremove
hooks to get just document middleware #9530 mustafaKamal-fev5.10.13
Compare Source
====================
v5.10.12
Compare Source
====================
startSession()
#9515deleteOne
anddeleteMany
trigger middleware #9504ssl
defaulting totrue
for srv connection strings #9511v5.10.11
Compare Source
====================
mongoose.connect()
multiple times in parallel, make 2nd call wait for connection before resolving #9476save()
persistMap#clear()
#9493v5.10.10
Compare Source
====================
$match
as the 2nd stage in pipeline rather than 1st #9487v5.10.9
Compare Source
===================
autoCreate
as a global option to be consistent withautoIndex
#9466v5.10.8
Compare Source
===================
mongoose.model()
with schema from a different Mongoose module instance #9449reason
on 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.7
Compare Source
===================
required
can use arrow functions #9435 AbdelrahmanHafezisSelected
#9438Schema#clone()
use parent Mongoose instance's Schema constructor #9426v5.10.6
Compare Source
===================
options.perDocumentLimit
option same asperDocumentLimit
when 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.